<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux and Open Source Blog &#187; applications/software</title>
	<atom:link href="http://linewbie.com/category/applications-software/feed" rel="self" type="application/rss+xml" />
	<link>http://linewbie.com</link>
	<description>News, Reviews, Thoughts and Trends in Linux and Open Source World.</description>
	<lastBuildDate>Sat, 04 Feb 2012 19:07:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To Install Native Spotify Linux Client In Ubuntu &#8211; HOWTO</title>
		<link>http://linewbie.com/2011/12/how-to-install-native-spotify-linux-client-in-ubuntu-howto.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-native-spotify-linux-client-in-ubuntu-howto</link>
		<comments>http://linewbie.com/2011/12/how-to-install-native-spotify-linux-client-in-ubuntu-howto.html#comments</comments>
		<pubDate>Thu, 15 Dec 2011 20:12:57 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[multimedia]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/?p=523</guid>
		<description><![CDATA[Spotify is a music streaming service that provide a client which in turn supports Microsoft Glass windows, Mac OS A, Linux as well as cellular phones such as iOS, Android mobile phone, BlackBerry, Windows Portable, Windows Phone, S60 (Symbian), webOS &#8230; <a href="http://linewbie.com/2011/12/how-to-install-native-spotify-linux-client-in-ubuntu-howto.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Spotify is a music streaming service that provide a client which in turn supports Microsoft Glass windows, Mac OS A, Linux as well as cellular phones such as iOS, Android mobile phone, BlackBerry, Windows Portable, Windows Phone, S60 (Symbian), webOS plus much more. The service is merely available in a number of countries for currently, such as US, UK, Spain, Sweden and more &#8211; investigate Spotify website have a look at.</p>
<p>The (standard) native Spotify Linux buyer got support totally free accounts recently. This is one way to install the idea on Ubuntu along with fix some bugs including not having the capacity to play local tunes in Ubuntu 11. 10 Oneiric Ocelot.</p>
<p>You should be aware that Spotify for Linux is often a preview release and is also currently unsupported therefore you may encounter troubles!<br />
<span id="more-523"></span></p>
<p>Install the ancient Linux Spotify buyer under Ubuntu</p>
<p>1. Add the Spotify repository (are going to be used to deploy Spotify and stay up-to-date with the most up-to-date Spotify versions).</p>
<p>Launch Software Sources with all the following command:</p>
<p>gksu &#8211;desktop /usr/share/applications/software-properties-gtk.desktop /usr/bin/software-properties-gtk</p>
<p>2. Under Software Sources, switch to the &#8220;Other Software&#8221; tab, click &#8220;Add&#8221; and paste the following line:</p>
<p>deb http://repository.spotify.com stable non-free</p>
<p>As soon as you do this, two repository lines are in reality added and the next one (regarding source code) will display one when running &#8220;sudo apt-get update&#8221;, thus remove this series:</p>
<p>http://repository.spotify.com stable non-free (Source Code)</p>
<p>from the same &#8220;Other Software&#8221; tab in Software Sources. Once you&#8217;re done, close the Software Sources window.</p>
<p>3. Import the Spotify repository key and install Spotify for Linux:</p>
<p>sudo apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys 4E9CFF4E<br />
sudo apt-get update<br />
sudo apt-get install spotify-client-qt</p>
<p>Spotify fixes for Ubuntu</p>
<p>Spotify has been installed, but if you are using Ubuntu 11.10 Oneiric Ocelot (or newer), you can&#8217;t play local music, or at least some file types don&#8217;t work and you&#8217;ll get a sound decoder error:</p>
<p>    &#8220;There is a problem with the sound decoder. Spotify can&#8217;t play music&#8221;</p>
<p>This may even occur for some Spotify tracks.</p>
<p>To fix this, you need to install libavutil50, libavcodec52 and libavformat52 from the Ubuntu 11.04 Natty Narwhal repository. To make it easier (thanks to yugnip!), you can get all 3 from here:</p>
<p>    32bit<br />
    64bit</p>
<p>Download the .debs above in a new folder, then use the terminal to navigate to it (&#8220;cd /path/to/folder&#8221;) and run:</p>
<p>sudo dpkg -i *.deb</p>
<p>Another problem is that Spotify for Linux doesn&#8217;t show any artwork in the Ubuntu Sound Menu, at least in Ubuntu 11.10. To fix this, use the command below:</p>
<p>mkdir -p ~/.cache/indicators/sound/album-art-cache</p>
<p>Unfortunately I didn&#8217;t found a fix for the out of place &#8220;Upgrade&#8221; button.</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2011/12/how-to-install-native-spotify-linux-client-in-ubuntu-howto.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to force Skype to use Alsa on Linux &#8211; howto tip</title>
		<link>http://linewbie.com/2011/12/how-to-force-skype-to-use-alsa-on-linux-howto-tip.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-force-skype-to-use-alsa-on-linux-howto-tip</link>
		<comments>http://linewbie.com/2011/12/how-to-force-skype-to-use-alsa-on-linux-howto-tip.html#comments</comments>
		<pubDate>Mon, 12 Dec 2011 16:49:42 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[audio/video/pics]]></category>
		<category><![CDATA[multimedia]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/?p=499</guid>
		<description><![CDATA[Want it or not Skype can be a popular software application. In fact it really is so popular it is the only piece regarding voice communication software several my friends use. Because of this We have an account an put &#8230; <a href="http://linewbie.com/2011/12/how-to-force-skype-to-use-alsa-on-linux-howto-tip.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Want it or not Skype can be a popular software application. In fact it really is so popular it is the only piece regarding voice communication software several my friends use. Because of this We have an account an put it to use on my Bodhi system once in a while (at least it&#8217;s got a native : if poor : Linux client and I need not run it by means of Wine). In case an individual didn&#8217;t know : Bodhi ships together with just the Alsa sound server automagically (there are a variety of reasons because of this &#8211; none of which My goal is to get into the following) and thankfully Skype installs and also works perfectly great with Alsa : until pulse audio appears that is.<br />
<span id="more-499"></span><br />
It seems one thing I installed not too long ago drug pulse audio in from it as a dependency &#8211; this might be fine and also dandy except for the fact my Skype audio tracks (input and also output) 100% stopped with the addition of pulse audio to be able to my system. Apparently the creators of Skype (inside their infinite wisdom) caused it to be so that when Skype is introduced while pulse audio tracks is installed Skype use pulse (and only pulse) minus the option to change returning to Alsa. As I stated earlier my Skype audio tracks was non-functional beneath pulse (for whatever reason) so I sought after a method regarding forcing Skype to utilize Alsa and never having to remove pulse audio tracks from my method.</p>
<p>The Solution :<br />
To start, you should close Skype and kill the heart beat audio server. To achieve this in one fast command open any terminal and work</p>
<p><code>killall skype &#038;&#038; killall pulseaudio</code></p>
<p>Next you should tell your heart beat audio server never to auto launch alone (which it can by default). To achieve this we simply must add one configuration setting with a file. To try this run the control:</p>
<p><code>nano ~/. pulse/client. conf</code></p>
<p>Inside the text file which is opened paste these line:</p>
<p><code>autospawn = no</code></p>
<p>Save and shut the file (ctrl+x when working with nano), launch Skype and you should be good to look.</p>
<p>Hope this will save you someone the 20 moments I spent running around Google to locate this information.</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2011/12/how-to-force-skype-to-use-alsa-on-linux-howto-tip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install VMware Server On OpenSUSE Linux 10.3</title>
		<link>http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-vmware-server-on-opensuse-linux-103</link>
		<comments>http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html#comments</comments>
		<pubDate>Thu, 27 Mar 2008 12:55:51 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html</guid>
		<description><![CDATA[bold writing are command that you need to enter red letting are command that you need to issue as root click on Computer &#62; More Applications &#62; YaST Put in root password for YaST Scroll down until you see Software &#8230; <a href="http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>bold writing are command that you need to enter</strong></p>
<p style="margin-bottom: 0in"><font color="#ff0000">red letting are command that you need to issue as root</font></p>
<ol>
<li>
<p style="margin-bottom: 0in">click on Computer &gt; More 	Applications &gt; YaST</p>
</li>
<li>
<p style="margin-bottom: 0in">Put in root password for YaST</p>
</li>
<li>
<p style="margin-bottom: 0in">Scroll down until you see Software 	Management and single click on it</p>
</li>
<li>
<p style="margin-bottom: 0in">Check for the following software. 	If you don&#8217;t have it installed, install it</p>
<ol>
<li>
<p style="margin-bottom: 0in">kernel-source</p>
</li>
<li>
<p style="margin-bottom: 0in">gcc</p>
</li>
<li>
<p style="margin-bottom: 0in">gcc-c++</p>
</li>
<li>
<p style="margin-bottom: 0in">make (This is most likely already 		installed, but just to double check)</p>
</li>
</ol>
</li>
<p><span id="more-464"></span></p>
<li>
<p style="margin-bottom: 0in">Once you have installed that 	software, lets head over to the command line. Right click on the 	desktop and select â€œopen terminalâ€</p>
</li>
<li>
<p style="margin-bottom: 0in">Once you get into the terminal, 	you want to log in as a super user or root. You can do this by using 	the su command</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><a href="mailto:clmowers@linux-box"><font color="#000000"><span>clmowers@linux-box</span></font></a><span>:~&gt;</span><strong> 				SU</strong>Password:<font color="#ff0000"><strong>linux-box:/home/clmowers #</strong></font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">Next you want 	to run the following command. This will check for the needed 	software and it will also show you the kernel modules that are 	installed. You <strong>MUST </strong>have the same kernel numbers though out, 	or you will have issues later down the road</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%">rpm -qa kernel* gcc* make</td>
</tr>
</table>
<p style="margin-bottom: 0in">It will look like 	this when the command is run</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers #</font> <font color="#000000"><strong>rpm 				-qa kernel* gcc* make </strong></font>gcc-c++-4.2-24make-3.81-66kernel-source-<font color="#280099"><strong>2.6.22.17-0.1 </strong></font>gcc42-c++-4.2.1_20070724-17</p>
<p>kernel-default-<font color="#280099"><strong>2.6.22.17-0.1 </strong></font></p>
<p>gcc-4.2-24</p>
<p>gcc42-4.2.1_20070724-17</td>
</tr>
</table>
<p style="margin-bottom: 0in">Notice that both 	of the kernels are the same. If these numbers are diffent then you 	need to run the online updates to get the lastest ones and to make 	sure everything matches. ***Just remember that these numbers change, 	This was the latest kernel when I wrote this, yours might be 	different from mine.</p>
</li>
<li>
<p style="margin-bottom: 0in">OK, lets move 	on. Next we want to change the directory to /usr/scr/linux. We can 	do that by this command</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers #</font> <strong>cd 				/usr/src/linux</strong></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">next we want 	to issue these commands. Don&#8217;t worry, we are almost done in the 	command line for the time being.</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers # </font><font color="#000000"> 				</font><font color="#000000"><strong>make mrproper; make cloneconfig; 				make modules_prepare</strong></font><font color="#000000">You will notice that it is done when you 				get back to this line</font><font color="#ff0000">linux-box:/home/clmowers #</font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in"> YEA!!! The 	moment we all have been waiting for, installing vmware server. But 	we are not done yet. Once vmware server is installed we will need to 	configure it. Then you can start adding all the VM that your heart 	desires.</p>
</li>
<li>
<p style="margin-bottom: 0in">Next you want 	to go to where you have downloaded the file and right click and 	select install software</p>
</li>
<li>
<p style="margin-bottom: 0in">Once the 	windows closes we are ready to configure it. I know I know, but we 	are almost done. Just 2 more minutes.</p>
</li>
<li>
<p style="margin-bottom: 0in">open up a new 	terminal window (or open the one you already had) and issue this 	command</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/home/clmowers # </font><font color="#000000"> 				</font><font color="#000000"><strong>cd /usr/bin</strong></font><font color="#ff0000">linux-box:/usr/bin 				#</font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">This will 	bring you to the /usr/bin directory. Next we want to run the pl 	script the vmware was so kind of to provide us. This will let us 	configure the server</p>
<table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="100%">
<tr>
<td valign="top" width="100%"><font color="#ff0000">linux-box:/usr/bin 				# </font><font color="#000000"> </font><font color="#000000"><strong>vmware-config.pl</strong></font></td>
</tr>
</table>
</li>
<li>
<p style="margin-bottom: 0in">We will start 	out by reading the EULA. Hit space or enter to go through the 	agreement. Once you are done reading hit Q and then type yes. Now 	what I did was just accept all the defaults. This will give you a 	very good install of vmware. My only suggestion would be to create a 	folder under your /home/username/ directory called vms. When you get 	to the question asking you where you want to have your virutual 	machine saved, type in that location.</p>
</li>
<li>
<p style="margin-bottom: 0in">You will be 	ask for your license key, so make sure that you have one. Type it in 	and press eneter.</p>
</li>
</ol>
<p style="margin-bottom: 0in">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/03/how-to-install-vmware-server-on-opensuse-linux-103.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install Ruby On Rails and getting started</title>
		<link>http://linewbie.com/2008/01/install-ruby-on-rails-and-getting-started.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-ruby-on-rails-and-getting-started</link>
		<comments>http://linewbie.com/2008/01/install-ruby-on-rails-and-getting-started.html#comments</comments>
		<pubDate>Wed, 30 Jan 2008 05:52:11 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/install-ruby-on-rails-and-getting-started.html</guid>
		<description><![CDATA[Getting Started With Ruby On Rails Installing Ruby on Rails (RoR) on windows, OSX and Linux. Generally there are 3 installations: OSX, Windows and Linux, and Linux install is the most easy one. Windows: Go to http://www.rubyonrails.org/, and download the &#8230; <a href="http://linewbie.com/2008/01/install-ruby-on-rails-and-getting-started.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>Getting Started With Ruby On Rails</h3>
<p>Installing Ruby on Rails (RoR) on windows, OSX and Linux. Generally there are 3 installations: OSX, Windows and Linux, and Linux install is the most easy one.</p>
<h3>Windows:</h3>
<p>Go to <a href="http://www.rubyonrails.org/" target="_blank">http://www.rubyonrails.org/</a>, and download the package containing gems (windows installer).</p>
<p>Install the package.</p>
<p>Update the gem system via:</p>
<p class="command">gem update &#8211;system</p>
<p>Update installed gems via:</p>
<p class="command">gem update</p>
<p>When this is done install the relevant gems. I would suggest the following as a minimum:<br />
*rails (for the framework)<br />
Please note, that rails 2.02 is the newest version, you can install an older version via</p>
<p class="command">gem install v1.2.6 rails</p>
<p>*mysql (for database assess)<br />
*mongrel (webserver better when webrick)</p>
<p>When asked for the version you want to use, choose the newst version, that has win32 in the option.</p>
<h3>OSX 10.4 and 10.5</h3>
<p>Go to <a href="http://www.macports.org/" target="_blank">http://www.macports.org/</a> and download the correct version of the file (tiger/leopard).</p>
<p>Read through the installation guide: <a href="http://www.macports.org/install.php" target="_blank">http://www.macports.org/install.php</a></p>
<p>Quick guide:<br />
Install the correct xcode for your system.<br />
Install the macports program (this can take a little while)<br />
When done, do:</p>
<p class="command">sudo port install ruby<br />
sudo port install rb-gems (enabling gems under ruby)<br />
sudo gem install rails (framework)<br />
sudo port install rb-mysql (mysql for use under RoR)<br />
sudo gem install mongrel (webserver)<br />
sudo port install subversion (for easy install for remote plugins)</p>
<h3>Linux (Ubuntu like / Debian based)</h3>
<p class="command">sudo apt-get update &amp;&amp; sudo apt-get upgrade (getting newst list, and updateing software before continuing).<br />
sudo apt-get install ruby subversion mysql libmysql-ruby1.8</p>
<p class="command">sudo gem install rails<br />
sudo gem install mongrel</p>
<p>And you should be set to go.</p>
<p>IDE for use with RoR:<br />
Textmate (OSX), has very poor subversion integration, but good RoR integration<br />
Not free<br />
Eclipse (good integration, via plugins)<br />
<a href="http://www.eclipse.org/" target="_blank">http://www.eclipse.org/</a> download plugins via Aptana website, for RoR support.<br />
Free</p>
<p>Aptana (good integration via plugins) <a href="http://www.aptana.com/" target="_blank">http://www.aptana.com/</a><br />
complete IDE, eclipse based. Free<br />
IDEA (good integration via plugins)<br />
Complete IDE suite, with great integration of subversion, mysql and even jira for bugtracking.<br />
Professional, but expensive.</p>
<p>Remeber to point your IDE to where your RoR / rails is installed for best integration:<br />
Windows most often: <span class="system">c:\ruby\bin</span><br />
OSX: <span class="system">/opt/local/</span><br />
Linux: <span class="system">/usr/bin/ruby</span></p>
<h3>Errors:</h3>
<p>Linux:</p>
<p class="command">sudo gem update &#8211;system</p>
<p>Which introduced this error:</p>
<p class="system">/usr/bin/gem:23: uninitialized constant Gem::GemRunner(NameError)</p>
<p>whenever I tried to run rubygems.  On the <a href="http://railsforum.com/" target="_blank">rails forum</a>, I found <a href="http://railsforum.com/viewtopic.php?pid=48963" target="_blank">a fix for it!</a>. Simply add the line to the file <span class="system">/usr/bin/gem</span> (may be different on a mac):</p>
<pre>require 'rubygems/gem_runner'</pre>
<p>after</p>
<pre>require 'rubygems'</pre>
<p>Source: <a href="http://www.nickpeters.net/2007/12/31/fix-for-uninitialized-constant-gemgemrunner-nameerror/" target="_blank">http://www.nickpeters.net/2007/12/31/fix-for-uninitialized-constant-gemgemrunner-nameerror/</a></p>
<p>This error when installing gems:</p>
<p class="system">extconf.rb:1:in `requireâ€™: no such file to loadâ€”mkmf (LoadError)</p>
<p>from extconf.rb:1.</p>
<p>Do:</p>
<p class="command">sudo apt-get install ruby1.8-dev</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/install-ruby-on-rails-and-getting-started.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install and Configure TrueCrypt With GUI On Ubuntu 7.10</title>
		<link>http://linewbie.com/2008/01/install-and-configure-truecrypt-with-gui-on-ubuntu-710.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-and-configure-truecrypt-with-gui-on-ubuntu-710</link>
		<comments>http://linewbie.com/2008/01/install-and-configure-truecrypt-with-gui-on-ubuntu-710.html#comments</comments>
		<pubDate>Mon, 21 Jan 2008 03:18:49 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[debian/ubuntu based]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[truecrypt]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 7.10]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/install-and-configure-truecrypt-with-gui-on-ubuntu-710.html</guid>
		<description><![CDATA[Version 1.0 Author: Oliver Meyer &#60;o [dot] meyer [at] projektfarm [dot] de&#62; Last edited 12/18/2007 This document describes how to set up TrueCrypt with GUI on Ubuntu 7.10. TrueCrypt is a free open-source encryption software for desktop usage. This howto &#8230; <a href="http://linewbie.com/2008/01/install-and-configure-truecrypt-with-gui-on-ubuntu-710.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Version 1.0<br />
Author: Oliver Meyer &lt;o [dot] meyer [at] projektfarm [dot] de&gt;<br />
Last edited 12/18/2007</p>
<p>This document describes how to set up TrueCrypt with GUI on Ubuntu 7.10. TrueCrypt is a free open-source encryption software for desktop usage.</p>
<p>This howto is a practical guide without any warranty &#8211; it doesn&#8217;t cover the theoretical backgrounds. There are many ways to set up such a system &#8211; this is the way I chose.</p>
<p><span id="more-451"></span></p>
<h3>1 Preparation</h3>
<p>Set up a standard Ubuntu 7.10 system and update it.</p>
<h3>2 Needed Packages</h3>
<p>First we install some needed packages with the synaptic package manager.</p>
<ul>
<li>sun-java6-jre</li>
<li>python-pexpect</li>
</ul>
<p>You&#8217;ll see this window during the installation &#8211; mark the corresponding checkbox and proceed if you agree with the license agreement.</p>
<p><a href="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/big/java.jpg" class="thickbox"><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/java.jpg" style="border: medium none " /><img src="http://images.howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></p>
<p></a><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Afterwards check if all went well &#8211; open a terminal and enter.</p>
<p class="command">java -version</p>
<p>The output should look like this:</p>
<p class="system">java version &#8220;1.6.0_03&#8243;<br />
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)<br />
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)</p>
<h3>3 Truecrypt</h3>
<h4>3.1 Installation</h4>
<p>Open <a href="http://www.truecrypt.org/downloads.php" title="http://www.truecrypt.org/downloads.php" target="_blank">http://www.truecrypt.org/downloads.php</a> within your browser and download the latest stable version for Ubuntu 7.10 (.tar.gz-file containing the .deb-package).</p>
<p><a href="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/big/tc1.jpg" class="thickbox"><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc1.jpg" style="border: medium none " /><img src="http://images.howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></p>
<p></a><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc2.jpg" style="border: medium none " /></p>
<p>Afterwards unpack the .tar.gz-file, &#8230;</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc3.jpg" style="border: medium none " /></p>
<p>&#8230; switch to the folder with the unpacked files and install the .deb-package with the GDebi package installer (simply double click on the package). Click on &#8220;<span class="system">Install Package</span>&#8221; to start the installation.</p>
<p><a href="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/big/tc4.jpg" class="thickbox"><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc4.jpg" style="border: medium none " /><img src="http://images.howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></p>
<p></a><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Enter the root password.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc5.jpg" style="border: medium none " /></p>
<p>The package and its dependencies are being installed.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc6.jpg" style="border: medium none " /></p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc7.jpg" style="border: medium none " /></p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tc8.jpg" style="border: medium none " /></p>
<h4>3.2 System Configuration</h4>
<p>Please note, that the following steps (3.2.1 &#8211; 3.2.3) can be done automatically by the tcgui installer (step 4). Proceed if you have problems with the tcgui-installer or want to configure the system manually in the first place &#8211; otherwise go ahead with step 4.</p>
<h4>3.2.1 Users &amp; Groups</h4>
<p>We have to add the group &#8220;<span class="system">truecrypt</span>&#8221; to the system and afterwards we add the root-account and our user-account to it. The settings for users and groups are available in the gnome system menu.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/ug1.jpg" style="border: medium none " /></p>
<p>Enter the root password.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/ug2.jpg" style="border: medium none " /></p>
<p>Click on &#8220;<span class="system">Manage Groups</span>&#8220;.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/ug3.jpg" style="border: medium none " /></p>
<p>Click on &#8220;<span class="system">Add Group</span>&#8220;.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/ug4.jpg" style="border: medium none " /></p>
<p>Insert &#8220;<span class="system">truecrypt</span>&#8221; (without the quotes) as name for the new group, mark the checkbox next to the root and your username and click on &#8220;<span class="system">OK</span>&#8220;.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/ug5.jpg" style="border: medium none " /></p>
<h4>3.2.2 Sudo</h4>
<p>Next we configure sudo in order that TrueCrypt is useable without a password query &#8211; open a terminal and enter:</p>
<p class="command">sudo visudo</p>
<p>Add the following line:</p>
<p><span class="system">%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt</span></p>
<p>It should look like this:</p>
<pre># /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
# Defaults
Defaults        !lecture,tty_tickets,!fqdn
# Uncomment to allow members of group sudo to not need a password
# %sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root    ALL=(ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%truecrypt ALL=(root) NOPASSWD:/usr/bin/truecrypt</pre>
<p>To save the changes press CTRL+O (STRG+O on a german keyboard) and hit enter. Close the editor via CTRL+X (STRG+X on a german keyboard).</p>
<h4>3.2.3 TrueCrypt Group</h4>
<p>As a last resort we have to assign TrueCrypt itself to the new group that we created at step 3.2.1. Open terminal and enter:</p>
<p class="command">sudo chgrp truecrypt /usr/bin/truecrypt</p>
<p>Afterwards we check if all went well &#8211; enter:</p>
<p class="command">truecrypt -l</p>
<p>If you&#8217;re NOT asked for a system password and the output looks like this &#8230;</p>
<p class="system">No volumes mapped</p>
<p>&#8230; all is fine.</p>
<h3>4 TrueCrypt GUI (tcgui)</h3>
<p>Tcgui provides a GUI that is similar to the windows GUI for truecrypt. It&#8217;s licensed unter the GPL.</p>
<h4>4.1 Download</h4>
<p>Open <a href="http://tcgui.tc.funpic.de/en/download.htm" title="http://tcgui.tc.funpic.de/en/download.htm" target="_blank">http://tcgui.tc.funpic.de/en/download.htm</a> (<a href="http://tcgui.tc.funpic.de/download.htm" title="http://tcgui.tc.funpic.de/download.htm" target="_blank">http://tcgui.tc.funpic.de/download.htm</a> for German users) within your browser and download the latest version (When I was writing this howto the latest version was 0.4).</p>
<p><a href="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/big/tcgui1.jpg" class="thickbox"><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tcgui1.jpg" style="border: medium none " /><img src="http://images.howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></p>
<p></a><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tcgui2.jpg" style="border: medium none " /></p>
<p>Afterwards unpack the file.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/tcgui3.jpg" style="border: medium none " /></p>
<h4>4.2 Installation</h4>
<p>Open a terminal, switch to the unpacked files and run the installer.</p>
<p class="command">cd Desktop/tcgui-0.4/<br />
sudo bash install.sh $USER</p>
<p>Note: Don&#8217;t replace $USER with your username &#8211; simply copy &amp; paste the line.</p>
<p>Choose your language (german or english) and answer the following questions with no (n) &#8211; unless you haven&#8217;t realized step 3.2.1 till 3.2.3. After the installation finished you have to log out and back in to take the changes effect.</p>
<h4>4.3 Access The GUI</h4>
<p>The TrueCrypt GUI is available in the gnome applications menu.</p>
<p><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/access1.jpg" style="border: medium none " /></p>
<p>Click on &#8220;<span class="system">Yes</span>&#8221; if you agree with the warranty agreement.</p>
<p><a href="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/big/access2.jpg" class="thickbox"><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/access2.jpg" style="border: medium none " /><img src="http://images.howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></p>
<p></a><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>The GUI appears &#8211; make yourself familiar with it.</p>
<p><a href="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/big/access3.jpg" class="thickbox"><img src="http://images.howtoforge.com/images/truecrypt_on_ubuntu_710/access3.jpg" style="border: medium none " /><img src="http://images.howtoforge.com/images/click_to_enlarge.png" alt="Click to enlarge" border="0" height="12" width="100" /></p>
<p></a><noscript style="font-size: 7pt">(JavaScript must be enabled in your browser to view the large image as an image overlay.)</noscript></p>
<p>Note: Please have a look at the readme in the tcgui-folder (on your desktop). Which functions are working without problems and which not is described at the end of the file &#8211; so you should read it before you you&#8217;re playing around with the GUI <img src='http://linewbie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4>4.4 Deinstallation</h4>
<p>If you want to deinstall the TrueCrypt GUI open a terminal and enter:</p>
<p class="command">sudo bash /usr/share/tcgui/uninstall.sh</p>
<p>Note: The group &#8220;<span class="system">truecrypt</span>&#8221; will not be deleted and the changes in the sudo configuration will not be restored.</p>
<h3>5 Links</h3>
<p>TrueCrypt: <a href="http://www.truecrypt.org/" title="http://www.truecrypt.org/" target="_blank">http://www.truecrypt.org/</a><br />
TrueCrypt License: <a href="http://www.truecrypt.org/license.php" title="http://www.truecrypt.org/license.php" target="_blank">http://www.truecrypt.org/license.php</a><br />
TrueCrypt Linux manpage: <a href="http://www.truecrypt.org/docs/linux-manpage.php" title="http://www.truecrypt.org/docs/linux-manpage.php" target="_blank">http://www.truecrypt.org/docs/linux-manpage.php</a><br />
TrueCrypt GUI (en): <a href="http://tcgui.tc.funpic.de/en/index.htm" title="http://tcgui.tc.funpic.de/en/index.htm" target="_blank">http://tcgui.tc.funpic.de/en/index.htm</a><br />
TrueCrypt GUI (de): <a href="http://tcgui.tc.funpic.de/index.htm" title="http://tcgui.tc.funpic.de/index.htm" target="_blank">http://tcgui.tc.funpic.de/index.htm</a><br />
Ubuntu: <a href="http://www.ubuntu.com/" title="http://www.ubuntu.com/" target="_blank">http://www.ubuntu.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/install-and-configure-truecrypt-with-gui-on-ubuntu-710.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intrusion Detection: Snort, Base, MySQL, and Apache2 On Ubuntu 7.10 (Gutsy Gibbon)</title>
		<link>http://linewbie.com/2008/01/intrusion-detection-snort-base-mysql-and-apache2-on-ubuntu-710-gutsy-gibbon-2.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=intrusion-detection-snort-base-mysql-and-apache2-on-ubuntu-710-gutsy-gibbon-2</link>
		<comments>http://linewbie.com/2008/01/intrusion-detection-snort-base-mysql-and-apache2-on-ubuntu-710-gutsy-gibbon-2.html#comments</comments>
		<pubDate>Thu, 17 Jan 2008 03:12:24 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howtoforge]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[base]]></category>
		<category><![CDATA[intrusion detection]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[snort]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/intrusion-detection-snort-base-mysql-and-apache2-on-ubuntu-710-gutsy-gibbon-2.html</guid>
		<description><![CDATA[This tutorial is based on another howto written by DevilMan, however I didn&#8217;t like the idea of manually compiling every package or the use of a GUI to get the software installed. This howto will work on a Gutsy Server &#8230; <a href="http://linewbie.com/2008/01/intrusion-detection-snort-base-mysql-and-apache2-on-ubuntu-710-gutsy-gibbon-2.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This tutorial is based on <a href="http://howtoforge.com/intrusion-detection-with-snort-mysql-apache2-on-ubuntu-7.10" target="_blank">another howto</a> written by <a href="http://howtoforge.com/forums/member.php?u=27065" target="_blank">DevilMan</a>, however I didn&#8217;t like the idea of manually compiling every package or the use of a GUI to get the software installed. This howto will work on a Gutsy Server or Gutsy desktop. With that said some of this howto is a direct copy from the original.</p>
<p>In this tutorial I will describe how to install and configure Snort (an intrusion detection system (IDS)) from source, BASE (Basic Analysis and Security Engine), MySQL, and Apache2 on Ubuntu 7.10 (Gutsy Gibbon). Snort will assist you in monitoring your network and alert you about possible threats. Snort will output its log files to a MySQL database which BASE will use to display a graphical interface in a web browser.</p>
<p><span id="more-450"></span></p>
<h3>1. Gain root privileges</h3>
<p>It is easiest to do this install as root user.</p>
<p class="command">sudo su -</p>
<h3>2. Install some packages</h3>
<p>The following will install all the required packages to make this setup work:</p>
<p class="command">apt-get install libpcap0.8-dev libmysqlclient15-dev mysql-client-5.0 mysql-server-5.0 bison flex apache2 libapache2-mod-php5 php5-gd php5-mysql libphp-adodb php-pear libc6-dev g++ gcc pcregrep</p>
<h3>3. Get and compile snort</h3>
<p>The Snort package in the Gutsy repo&#8217;s are out of date. So I prefered to download the most current and install that. This is the only thing we will compile from scratch.</p>
<p>The latest version of snort at the time of writing is 2.8.0.1</p>
<p>First let&#8217;s go to a working directory:</p>
<p class="command">cd /usr/src/</p>
<p>Open a web browser and navigate to <a href="http://www.snort.org/dl" target="_blank">http://www.snort.org/dl</a> right click on the most recent release and copy link location.</p>
<h4>a. Download snort and snort rules</h4>
<p class="command">wget http://www.snort.org/dl/current/snort-2.8.0.1.tar.gz</p>
<p>There are a couple options for rules. The following will download the public rules, however with a quick registration at the snort site you can get more current rules. Your choice but the next command is run the same way with the appropriate URL:</p>
<p class="command">wget http://snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz</p>
<h4>b. Unpack and get them ready for compile</h4>
<p class="command">tar zxvf snort-2.8.0.1.tar.gz<br />
cd snort-2.8.0.1<br />
tar zxvf ../snortrules-pr-2.4.tar.gz</p>
<h4>c. Now compile them</h4>
<p class="command">./configure -enable-dynamicplugin &#8211;with-mysql<br />
make<br />
make install</p>
<p>Keep this directory handy as you can simply run</p>
<p class="command">make uninstall</p>
<p>To uninstall snort later if you choose</p>
<h4>d. Move things into position</h4>
<p>We now need to move the rules and config for snort into position</p>
<p class="command">mkdir /etc/snort /etc/snort/rules /var/log/snort<br />
cd /usr/src/snort-2.8.0.1/etc<br />
cp * /etc/snort/<br />
cd ../rules<br />
cp * /etc/snort/rules</p>
<h3>4. Configure Snort</h3>
<p>We need to modify the snort.conf file to suite our needs.</p>
<p>Open <span class="system">/etc/snort/snort.conf</span> with your favorite text editor (nano, vi, vim, etc.).</p>
<p class="command"># vi /etc/snort/snort.conf</p>
<p>Change &#8220;<strong>var HOME_NET any</strong>&#8221; to &#8220;<strong>var HOME_NET 192.168.1.0/24</strong>&#8221; (your home network may differ from 192.168.1.0)<br />
Change &#8220;<strong>var EXTERNAL_NET any</strong>&#8221; to &#8220;v<strong>ar EXTERNAL_NET !$HOME_NET</strong>&#8221; (this is stating everything except HOME_NET is external)<br />
Change &#8220;<strong>var RULE_PATE ../rules</strong>&#8221; to &#8220;<strong>var RULE_PATH /etc/snort/rules</strong>&#8221;</p>
<p>Scroll down the list to the section with &#8220;<strong># output database: log, mysql, user=</strong>&#8220;, remove the &#8220;<strong>#</strong>&#8221; from in front of this line.<br />
Change the &#8220;<strong>user=root</strong>&#8221; to &#8220;<strong>user=snort&#8221;</strong>, change the &#8220;<strong>password=password</strong>&#8221; to &#8220;<strong>password=snort_password</strong>&#8220;, &#8220;<strong>dbname=snort</strong>&#8221;<br />
Make note of the username, password, and dbname. You will need this information when we set up the Mysql db.<br />
Save and quit.</p>
<h3>5. Setup the Mysql database.</h3>
<p>Log into the mysql server.</p>
<p class="command"># mysql -u root -p</p>
<p>Create the snort database. Make sure you change the &#8216;snort_password&#8217; to something else!</p>
<p class="command">mysql&gt; create database snort;<br />
grant all privileges on snort.* to &#8216;snort&#8217;@'localhost&#8217; identified by &#8216;snort_password&#8217;; mysql&gt; exit</p>
<p>We will use the snort schema for the layout of the database.</p>
<p class="command"># mysql -D snort -u snort -p &lt; /usr/src/snort-2.8.0.1/schemas/create_mysql</p>
<p><strong>NOTE:</strong> Use your snort DB user password when prompted.</p>
<h3>6. Time to test Snort</h3>
<p>In the terminal type:</p>
<p class="command"># snort -c /etc/snort/snort.conf</p>
<p>If everything went well you should see an ascii pig.</p>
<p>To end the test hit <span class="system">ctrl + c</span>.</p>
<p><strong>NOTE:</strong> If you get errors you may want to try commenting out lines 97,98 and 452 of <span class="system">/etc/snort/rules/web-misc.rules</span>.  This was an issue in the past but doesn&#8217;t seem to be anymore.</p>
<h3>7. Get and install BASE</h3>
<p>Open a web browser and go to <a href="http://sourceforge.net/project/showfiles.php?group_id=103348" target="_blank">http://sourceforge.net/project/showfiles.php?group_id=103348</a>.</p>
<p>Click on download then right click on the newest tar.gz package and select copy link (at the time of writing this is base-1.3.9).</p>
<p>In the terminal type:</p>
<p class="command">cd<br />
wget http://easynews.dl.sourceforge.net/sourceforge/secureideas/base-1.3.9.tar.gz</p>
<p>Now go to your web document root (by default this is /var/www), unpack the tarball and set the permissions needed to configure BASE:</p>
<p class="command">cd /var/www/<br />
tar zxvf ~/base-1.3.9.tar.gz cd .. chmod 757 base-1.3.9</p>
<p>We want to make sure that a couple of Pear modules are activated:</p>
<p class="command">pear install Image_Color<br />
pear install Image_Canvas-alpha<br />
pear install Image_Graph-alpha</p>
<h3>8. Set up BASE</h3>
<p>Open a web browser and navigate to <span class="system">http://YOUR.IP.ADDRESS/base-1.3.9/setup</span>.</p>
<p>Click continue on the first page.</p>
<ul>
<li> Step 1 of 5: Enter the path to ADODB.<br />
This is <span class="system">/usr/share/php/adodb</span>.</li>
<li> Step 2 of 5:<br />
Database type = <span class="system">MySQL</span>, Database name = <span class="system">snort</span>, Database Host = <span class="system">localhost</span>, Database username = <span class="system">snort</span>, Database Password = <span class="system">snort_password</span></li>
<li>Step 3 of 5: If you want to use authentication enter a username and password here and check the box.</li>
<li>Step 4 of 5: Click on <span class="system">Create BASE AG</span>.</li>
<li>Step 5 of 5: once step 4 is done at the bottom click on <span class="system">Now continue to step 5.</span></li>
</ul>
<p>Bookmark this page.</p>
<p>Change the permissions back on the <span class="system">/var/www/base-1.3.9</span> folder.</p>
<p class="command"># chmod 755 /var/www/base-1.3.9</p>
<h3>We are done. Congrats!!!</h3>
<p>To start Snort in the terminal type (make sure you change eth0 to the right interface for your machine:</p>
<p class="command"># snort -c /etc/snort/snort.conf -i eth0 -D</p>
<p>This starts snort using eth0 interface in a daemon mode.</p>
<p>To make sure it is running you can check with the following command:</p>
<p class="command"># ps aux | grep snort</p>
<p>If it&#8217;s running you will see an entry similar to <span class="system">snort -c /etc/snort/snort.conf -i eth0 -D</span>.</p>
<p>If you would like to learn how to write your own Snort rules there is a guide at <a href="http://www.snort.org/docs/snort_manual/node16.html" target="_blank">http://www.snort.org/docs/snort_manual/node16.html</a>.<br />
Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/intrusion-detection-snort-base-mysql-and-apache2-on-ubuntu-710-gutsy-gibbon-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Secure Linux laptops for maximum security</title>
		<link>http://linewbie.com/2008/01/how-to-secure-linux-laptops-for-maximum-security.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-secure-linux-laptops-for-maximum-security</link>
		<comments>http://linewbie.com/2008/01/how-to-secure-linux-laptops-for-maximum-security.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 10:00:42 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[desktop & laptop pc]]></category>
		<category><![CDATA[linux.com]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[laptops]]></category>
		<category><![CDATA[linux laptops]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/how-to-secure-linux-laptops-for-maximum-security.html</guid>
		<description><![CDATA[Laptop and notebooks are being stolen at an ever-increasing rate. In 2004, Safeware Insurance which sells computer insurance, estimated 600,000 laptop and notebooks a year were being stolen. In 2006 an estimated 750,000 were being swiped, according to Absolute Software &#8230; <a href="http://linewbie.com/2008/01/how-to-secure-linux-laptops-for-maximum-security.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="xar-clearleft">Laptop and notebooks are being stolen at an ever-increasing rate. In 2004, <a href="http://www.safeware.com/">Safeware Insurance</a> which sells computer insurance, estimated 600,000 laptop and notebooks a year were being stolen. In 2006 an estimated 750,000 were being swiped, according to <a href="http://www.absolute.com/">Absolute Software</a> a company that makes computer tracking products &#8212; and does not support Linux. <a href="http://www.lojackforlaptops.com/why-you-need-lojack-for-laptops.asp">LoJack For Laptops</a>, another computer tracing company &#8212; which also does not support Linux &#8212; says FBI statistics show 2 million laptop and notebook computers were stolen in the US in a recent year. While the figures may not agree in detail, they all show that laptop and notebook theft is a major problem &#8212; and if you&#8217;re not careful, your Linux laptop might be next.</p>
<p id="featurecontent" class="xar-align-left">While you can find dozens of products to secure Windows laptops, security products for Linux laptops are scarcer &#8212; but they do exist. We found a range of products and fixes ranging from security patches for the operating system to encryption to the equivalent of computer bicycle locks which can help keep your Linux laptop or notebook safe.</p>
<p><span id="more-445"></span></p>
<p>Before we get to how to protect yourself, you need to accept a depressing statistic. According to the FBI, 97% of stolen computers are never recovered. While you can do things to better your odds (see the sidebar) you pretty much have to accept the fact that when your notebook disappears, it&#8217;s gone and so is everything that was on it.</p>
<p>There are three problems with having a computer stolen: the loss of the machine, the loss of the information on it, and the possible security breach if that information includes sensitive information or client data. Each of those problems requires a different approach.</p>
<h4>Insurance</h4>
<p>The economic loss is the easiest to deal with. Insure your system.</p>
<p>If you have homeowners or renters&#8217; insurance, you may already be covered. If not, you can usually get a policy rider to cover your computers, including your laptop. This is usually the cheapest way to do it, but you may not like the terms and conditions. For example, there is likely to be a hefty deductible.</p>
<p>You can also insure through a specialist company like Safeware. Such policies are usually more expensive than a rider on your homeowner&#8217;s policy, but they tend to be more flexible. For example most specialist companies will allow you to insure your laptop for enough to completely cover replacement.</p>
<p>Be sure you understand just what you are getting. You need to make sure your computer is covered when you&#8217;re away from home. Also, make sure you&#8217;re covered for the <em>current replacement value</em> of your machine rather than something like the cash value, which is typically much lower.</p>
<p>The cost will depend on the value of your computer. Some homeowners&#8217; policies automatically include several thousand dollars in computer coverage for free. A rider or a special policy will probably cost in the neighborhood of $100 to $200 a year.</p>
<h4>Protecting your work</h4>
<p>If you&#8217;re doing important work on your system, you want to get your data back even if you never see the computer again. One way to do that is to make frequent backups of your critical files to a device that isn&#8217;t left connected to the computer. This can be an external hard drive or, more conveniently, a USB thumb drive.</p>
<p>Another approach is to do your non-confidential work on Web applications such as the Google Docs word processor. Google then stores the information no matter what happens to your computer. (Of course this assumes you&#8217;ve properly secured your computer against Wi-Fi threats and such &#8212; but if you haven&#8217;t, you&#8217;ve got bigger problems.)</p>
<p>And of course you can just email your work to yourself at frequent intervals. If you want more security you can encrypt the emails before sending them.</p>
<h4>Encrypt your disk</h4>
<p>Encrypting your system doesn&#8217;t prevent someone from stealing your laptop, but it will prevent anyone from getting at the information on the system.</p>
<p>The actual risk that a thief will try to get at the information on your computer is pretty small. Although there are hundreds of thousands of laptops stolen each year, there are few cases reported in the news where the information on them was used by the bad guys. Mostly laptop thieves want to resell the hardware as quickly as possible and don&#8217;t care about the information.</p>
<p>Encrypting your disk is easy and cheap enough that there&#8217;s no reason to risk misuse of your data, even with a purely personal machine, where you may store passwords, credit card numbers and other personal information. Of course in the business case you have to be able to prove that thieves can&#8217;t get at the data. If you can&#8217;t definitely prove it, you&#8217;re probably in trouble. If the stolen laptop has customer information, such as Social Security numbers, on it, your whole company has a problem and you may show up in the news.</p>
<h4>Encryption alternatives</h4>
<p>When it comes to disk encryption there are two approaches. One is to encrypt only part of the information on the disk. The other is to encrypt everything.</p>
<p>While you can encrypt files or folders individually, you&#8217;re much more secure if you encrypt the entire disk. If the operating system is available, the attack surface is enormously increased. Not only are there unobvious vulnerabilities, such as files in the print spool, but there are more possibilities for getting around the file encryption.</p>
<p>One common method of full disk encryption allows the computer to begin to boot and then prompts for a user name and a password to complete the boot. This is convenient, which is why it&#8217;s common, but it does involve a certain amount of exposure since it uses the system&#8217;s boot routine.</p>
<p class="sidebar"><strong>Physical security</strong></p>
<p>Linux will not keep your laptop from being stolen. You have to do that without help from the operating system. Here are some tools that can help.</p>
<p><strong>Record it</strong> &#8212; Make a record of your computer&#8217;s serial number, exact specifications, etc. write it down, and keep it in a safe place, preferably with your sales receipt. That means don&#8217;t keep it on the computer and <em>don&#8217;t keep it in the computer case!</em></p>
<p><strong>Paint it</strong> &#8212; Mark your computer and its carrying case with a design that&#8217;s big, bright, unique and obvious. Subtle is right out. You want something that can be seen from across the room.</p>
<p>Warpaint on your computer does two things. First, it helps to uniquely identify it, which makes it harder for a thief to steal it unobtrusively. It&#8217;s also harder to sell a conspicuously marked system on eBay.</p>
<p><strong>Engrave it</strong> &#8212; Engrave your name and some identifying number prominently on the case, either inside or outside. This not only reduces the value to a thief, it increases the chances you&#8217;ll get the computer back.</p>
<p>An alternative to engraving your laptop yourself is to attach a security plate. For about $25, Stoptheft will sell you <a href="http://www.stoptheft.com/site/products_security_plate.php">an official-looking barcoded aluminum plate</a> that leaves the words &#8220;Stolen computer&#8221; and a phone number on the case even if it&#8217;s pried off. The bar code can also help you get the machine back if it is stolen.</p>
<p><strong>Guard it</strong> &#8212; Never leave your laptop unattended unless it is secured with a lock. Even then, try not to leave it alone. Taking a computer to the bathroom with you is annoying, but not nearly as bad as coming back and finding it gone.</p>
<p><strong>Lock it</strong> &#8212; Most computers have a Kensington connection (named after the vendor that popularized it) for a lock. Computer cable locks usually cost between $20 and $50 and work like a bicycle cable lock.</p>
<p><strong>Alarm it</strong> &#8212; In addition to locking cables, you can use an alarm that will sound if the laptop is moved. For example, Targus&#8217;s DEFCON 1 uses an alarm attached to the locking cable. If the cable is cut or the system is moved, it activates a motion sensor alarm that sounds off at 95 dB.</p>
<p><strong>Hide it</strong> &#8212; Leaving a laptop on the seat of a car is asking for trouble; put it in the trunk or covered security compartment. And don&#8217;t leave your computer on your desk in a dorm room or office. Put it in a drawer and, if possible, lock the drawer.</p>
<p>Finally, remember that laptops aren&#8217;t status symbols anymore. A fancy computer bag may be convenient, but it tells everyone what you&#8217;re carrying. An attache case or portfolio is less conspicuous. One young lady of my acquaintance, who is into anime, carries her laptop in a Hello Kitty diaper bag. It&#8217;s colorful and waterproof, and no one is likely to steal a diaper bag.</p>
<p>An alternative method, using a USB flash drive, is described in our <a href="http://www.linux.com/base/ldp/howto/Disk-Encryption-HOWTO/introduction.html">disk encryption HOWTO</a>. This uses a USB flash drive holding GRUB, a minimal kernel and an initrd. The setup has just enough brains to ask for a password, set up the encryption mechanism and mount it. After mounting the device resumes the boot process from the encrypted disk.</p>
<p>The most common way to set up an encrypted Linux system is to establish a small partition to handle booting and encrypt everything else on the disk. This is more secure than file-level encryption, but it still exposes the boot partition to crackers. How much of a problem that presents is somewhat controversial. Some people think the added risk is negligible or non-existent, while others believe it poses a significant additional risk beyond true full disk encryption.</p>
<p>If you want stronger encryption than that you can use a utility that requires a separate key before you can even start booting.</p>
<p>A number of products let you encrypt only specific files, directories, and such. For example <a href="http://www.saout.de/misc/dm-crypt/">dm-crypt</a> uses the device-mapper built into the Linux 2.6 kernel as a basis for block-level encryption. Device-mapper creates virtual block devices on physical virtual devices such as disks, and dm-crypt uses that ability to encrypt just about any kind of block you want encrypted.</p>
<p>Dm-crypt lets you pick the encoding method from among several symmetrical ciphers, as well as the key length, and then create a device in /dev. Writes and reads to the new device are then automatically encrypted and decrypted.</p>
<p><a href="http://www.truecrypt.org/">TrueCrypt</a> creates encrypted devices, such as disk volumes, and encrypts and decrypts them on the fly without user intervention. Versions of TrueCrypt earlier than v4.1 suffer from the same vulnerability as older 2.6 kernels.</p>
<p>Of course, encryption implies keys, and those in turn imply key management. You need to be able to get into your system even if you lose a key. Needless to say, you don&#8217;t keep a physical key with your computer. One common practice is to put a memory stick containing the key on your (physical) key chain. If you use a disk to hold your key you can stick the disk in your pocket or purse. Don&#8217;t put it in your laptop case and always take it with you if you leave your machine.</p>
<h4>Find your stolen system</h4>
<p>If your system is stolen, you may be able to find it again if the thief connects to the Internet. There are a couple of products for Windows that do this, but none for Linux.</p>
<p>However, you can <a href="http://www.arsgeek.com/?p=1612">set up your own tracking system</a> using a dynamic DNS provider, such as <a href="https://www.dyndns.com/">DynDNS</a>, and setting up a client to keep track of the computer&#8217;s actual IP address. If your computer is stolen, you can can look for your DNS entry with ping. If you find it online, you can use traceroute or something similar to find the gateway your computer is using. Then you can contact the police and the thief&#8217;s ISP to get your computer back.</p>
<p>(Of course this technique is not foolproof. If the thief reformats the hard disk, you&#8217;re out of luck. Unfortunately a lot of thieves, or their fences, do reformat disks as a matter of course. Still, implementing this system simple enough to do and can work against an unsophisticated crook.)</p>
<h4>Compliance policy issues</h4>
<p>Increasingly, security is about compliance with various laws and regulations. HIPPA, Sarbanes-Oxley, and a host of others mandate that data be protected. More than that, most of these mandates require that companies be able to <em>prove</em> the data is protected.</p>
<p>Where this gets sticky for Linux is that to meet those requirements, many companies mandate that only approved products be used for security. Since the approved lists are typically Windows-centric, it can be hard for Linux users to get products for their laptops approved.</p>
<p>There are two ways for Linux users to deal with the situation. Either check and see if your company&#8217;s chosen security products come in a Linux version or get your security people to agree to let you use a Linux product.</p>
<p>A surprising number of security companies do offer Linux versions of their products, more than laptop Linux&#8217; market penetration actually warrants. For instance, Check Point Software Technologies specializes in data protection with emphasis on big enterprises, and most of its business is focused solidly on Windows. Yet Check Point&#8217;s full disk encryption software also supports Linux. The reason, ironically, is that Check Point aims its business at large enterprises, in which a certain number of non-Windows laptops, running, say, Linux, need to be protected.</p>
<p>Alternatively, you can try to convince the IT security people that there are products available for Linux that offer equivalent levels of security, but this can be a long, hard slog.</p>
<h4>And finally</h4>
<p>Keep in mind that most of these methods are not foolproof. If a thief has your computer, technical knowledge, and persistence, it is hard to keep the information secure. But few thieves have the knowledge, equipment, or interest to break into a well-protected system.</p>
<p>The only truly foolproof security method is to not have sensitive data on your laptop or notebook in the first place.</p>
<p>How much protection is enough? Ultimately you have to decide.</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/how-to-secure-linux-laptops-for-maximum-security.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install and Set Up Subversion And Trac As Virtual Hosts On An Ubuntu Linux Server</title>
		<link>http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server</link>
		<comments>http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html#comments</comments>
		<pubDate>Sat, 12 Jan 2008 09:06:11 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Trac]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html</guid>
		<description><![CDATA[This howto outlines the process by which one can set up the Subversion version control system, and have it work in tandem with Trac, the project manager for software development projects, on a server running Ubuntu (or possibly Debian). It &#8230; <a href="http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This howto outlines the process by which one can set up the <a href="http://subversion.tigris.org/" target="_blank">Subversion</a> version control system, and have it work in tandem with <a href="http://trac.edgewall.org/" target="_blank">Trac</a>, the project manager for software development projects, on a server running Ubuntu (or possibly Debian). It is brought to you by <a href="http://www.openject.com/" target="_blank">Openject Consulting</a>.</p>
<h3>Setting up Subversion</h3>
<p>For detailed information on this, including alternate setups, have a look at <a href="http://svnbook.red-bean.com/nightly/en/index.html" target="_blank">Version Control with Subversion</a>.</p>
<p><span id="more-442"></span></p>
<ol>
<li>
<dl>
<dt>Install the required packages.</dt>
<dd class="command">sudo aptitude install enscript libapache2-mod-python python-docutils trac db4.3-util libapache2-svn subversion-tools</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a virtual host directory for SVN. We&#8217;ll use /var/local/svn instead of /var/www so that Subversion instances don&#8217;t clog up the directory of web root directories.</dt>
<dd class="command">sudo mkdir -p /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a development group, and add the web user to it.</dt>
<dd class="command">sudo addgroup example; sudo adduser www-data example</dd>
</dl>
</li>
<li>
<dl>
<dt>Add users to the development group.  These are persons that need access to the repository.</dt>
<dd>
<ol>
<li class="command">sudo adduser username1 example</li>
<li class="command">sudo adduser username2 example</li>
<li class="command">sudo adduser username3 example</li>
</ol>
</dd>
</dl>
</li>
<li>
<dl>
<dt>Set the proper permissions.</dt>
<dd class="command">sudo chmod 2770 /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set up the repository.</dt>
<dd class="command">sudo svnadmin create /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Clear the current password file. By default it&#8217;s for the svnserve protocol, but we&#8217;ll be using HTTPS (or just HTTP). We&#8217;ll be adding users to this file later in the process.</dt>
<dd class="command">sudo rm /var/local/svn/svn.example.com/conf/passwd<br />
sudo touch /var/local/svn/svn.example.com/conf/passwd</dd>
</dl>
</li>
<li>
<dl>
<dt>Allow the group to write to the repository.</dt>
<dd class="command">sudo chmod -R g+w /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set proper file ownership.</dt>
<dd class="command">sudo chown -R www-data:example /var/local/svn/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set the repository access permissions.  Information on how to do this can be found in the <a href="http://svnbook.red-bean.com/nightly/en/svn.serverconfig.pathbasedauthz.html" target="_blank">Path-Based Authorization</a> section of <a href="http://svnbook.red-bean.com/nightly/en/index.html" target="_blank">Version Control with Subversion</a>.</dt>
<dd class="command">sudo vi /var/local/svn/svn.example.com/conf/authz</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a directory for the log files.</dt>
<dd class="command">sudo mkdir /var/log/apache2/svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Add the site to the log rotation list.</dt>
<dd class="command">sudo vi /etc/logrotate.d/apache2</dd>
</dl>
</li>
<li>
<dl>
<dt>Configure the virtual host&#8230;</dt>
<dd class="command">sudo vi /etc/apache2/sites-available/svn.example.com</dd>
<dt>&#8230;with the following data.  If you don&#8217;t care about SSL, you can ignore the SSL options and run this on port 80.</dt>
<dd>
<pre>&lt;VirtualHost [server's IP address]:443&gt;
  ServerName svn.example.com
  &lt;Location /&gt;
    DAV svn
    AuthType Basic
    AuthName "svn.example.com"
    AuthUserFile /var/local/svn/svn.example.com/conf/passwd
    AuthzSVNAccessFile /var/local/svn/svn.example.com/conf/authz
    SVNPath /var/local/svn/svn.example.com
    Require valid-user
  &lt;/Location&gt;
  CustomLog /var/log/apache2/svn.example.com/access.log combined
  ErrorLog /var/log/apache2/svn.example.com/error.log
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/apache.pem
# Add this once there is a real (non self-signed) certificate.
#  SSLCertificateKeyFile /etc/apache2/ssl/server.key
&lt;/VirtualHost&gt;
&lt;VirtualHost [server's IP address]:80&gt;
  ServerName svn.example.com
  Redirect / https://svn.example.com/
&lt;/VirtualHost&gt;</pre>
</dd>
<dt>Reference:</dt>
<dd>/etc/apache2/mods-enabled/dav_svn.conf</dd>
</dl>
</li>
<li>
<dl>
<dt>Enable the subversion virtual host.</dt>
<dd class="command">sudo a2ensite svn.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Create user/password combinations.</dt>
<dd class="command">htpasswd /var/local/svn/svn.example.com/conf/passwd username</dd>
</dl>
</li>
<li>
<dl>
<dt>Restart the web server.</dt>
<dd class="command">sudo /etc/init.d/apache2 restart</dd>
</dl>
</li>
<li>
<dl>
<dt>If you&#8217;re going to have users working locally, set up svnwrap.  (See the man page for details.)</dt>
<dd class="command">sudo ln -s /usr/bin/svnwrap /usr/local/bin/svn</dd>
</dl>
</li>
</ol>
<h3>Setting up Trac</h3>
<ol>
<li>
<dl>
<dt>Create the web directory.  We&#8217;ll use /var/local/trac instead of /var/www so as not to clog up the directory of webroots.</dt>
<dd class="command">sudo mkdir /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Set the proper permissions.</dt>
<dd class="command">sudo chmod 2770 /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a Trac instance.</dt>
<dd class="command">sudo trac-admin /var/local/trac/trac.example.com initenv</dd>
</dl>
</li>
<li>
<dl>
<dt>Set proper ownership on the web directory.</dt>
<dd class="command">sudo chown -R www-data:example /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Allow the group to write to the repository.</dt>
<dd class="command">sudo chmod -R g+w /var/local/trac/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Configure it.</dt>
<dd class="command">sudo vi /var/local/trac/trac.example.com/conf/trac.ini</dd>
</dl>
</li>
<li>
<dl>
<dt>Create a directory for the log files.</dt>
<dd class="command">sudo mkdir /var/log/apache2/trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Add the site to the log rotation list.</dt>
<dd class="command">sudo vi /etc/logrotate.d/apache2</dd>
</dl>
</li>
<li>
<dl>
<dt>Configure the virtual host&#8230;</dt>
<dd class="command">sudo vi /etc/apache2/sites-available/trac.example.com</dd>
<dt>&#8230;with the following data.  If you don&#8217;t care about SSL, you can skip the SSL options and run this on port 80.</dt>
<dd>
<pre># Trac Configuration
&lt;VirtualHost [server's IP address]:80&gt;
  ServerName trac.example.com
  Redirect / https://trac.example.com/
&lt;/VirtualHost&gt;
&lt;VirtualHost [server's IP address]:443&gt;
  ServerName trac.example.com
  DocumentRoot /var/local/trac/trac.example.com/
  Alias /trac/ /usr/share/trac/htdocs
  &lt;Directory "/usr/share/trac/htdocs/"&gt;
      Options Indexes MultiViews
      AllowOverride None
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  &lt;Location /&gt;
      SetHandler mod_python
      PythonHandler trac.web.modpython_frontend
      PythonInterpreter main_interpreter
      PythonOption TracEnv /var/local/trac/trac.example.com/
      PythonOption TracUriRoot /
      AuthType Basic
      AuthName "trac.example.com"
      # Use the SVN password file.
      AuthUserFile /var/local/svn/svn.example.com/conf/passwd
      Require valid-user
  &lt;/Location&gt;
  CustomLog /var/log/apache2/trac.example.com/access.log combined
  ErrorLog /var/log/apache2/trac.example.com/error.log
  SSLEngine on
  SSLCertificateFile /etc/apache2/ssl/apache.pem
# Add this once there is a real (non self-signed) certificate.
#  SSLCertificateKeyFile /etc/apache2/ssl/server.key
&lt;/VirtualHost&gt;</pre>
</dd>
<dt>Reference:</dt>
<dd><a href="http://trac.edgewall.org/wiki/TracOnUbuntu" target="_blank">http://trac.edgewall.org/wiki/TracOnUbuntu</a></dd>
</dl>
</li>
<li>
<dl>
<dt>Enable the Trac virtual host.</dt>
<dd class="command">sudo a2ensite trac.example.com</dd>
</dl>
</li>
<li>
<dl>
<dt>Restart the web server.</dt>
<dd class="command">sudo /etc/init.d/apache2 restart</dd>
</dl>
</li>
</ol>
<p>The last thing to do is add the subdomains &#8220;svn&#8221; and &#8220;trac&#8221; to the DNS configuration for your domain. Once this is done, Subversion and Trac will be integrated into your server environment, and will be accessible from the web.</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/install-and-set-up-subversion-and-trac-as-virtual-hosts-on-an-ubuntu-linux-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nice and Useful OpenOffice.org extensions</title>
		<link>http://linewbie.com/2008/01/nice-and-useful-openofficeorg-extensions.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nice-and-useful-openofficeorg-extensions</link>
		<comments>http://linewbie.com/2008/01/nice-and-useful-openofficeorg-extensions.html#comments</comments>
		<pubDate>Fri, 11 Jan 2008 09:10:44 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[office suites]]></category>
		<category><![CDATA[openoffice]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/nice-and-useful-openofficeorg-extensions.html</guid>
		<description><![CDATA[Apparently, the only thing that stopped developers from creating useful OpenOffice.org extensions was the lack of a place to publish them. With the launch of the OpenOffice.org Extension Repository, the number of extensions listed there has shot up, and there &#8230; <a href="http://linewbie.com/2008/01/nice-and-useful-openofficeorg-extensions.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="xar-clearleft">Apparently, the only thing that stopped developers from creating useful OpenOffice.org extensions was the lack of a place to publish them. With the launch of the <a href="http://extensions.services.openoffice.org/">OpenOffice.org Extension Repository</a>, the number of extensions listed there has shot up, and there are no signs of a slowdown. Although quantity doesn&#8217;t always mean quality, the repository already offers a few nifty extensions that can expand the functionality of OpenOffice.org and make your work more efficient.</p>
<p id="featurecontent" class="xar-align-left">
<h4>Bookmarks Menu</h4>
<p><img src="http://linux.com/var/uploads/Image/stock/logo-extension-series.png" style="width: 125px; height: 100px; position: relative; margin-left: 0pt" alt=" " align="left" height="100" width="125" />On the face of it, the <a href="http://extensions.services.openoffice.org/project/bookmarksmenu">Bookmarks Menu</a> just adds bookmarks to documents, but dig deeper and you&#8217;ll discover that this extension can do much more. Once you&#8217;ve installed the Bookmarks Menu, it appears only in the Tools -&gt; Add-Ons menu. To add the Bookmarks menu to the main toolbar, choose the Bookmark Menu item and press OK. By default, the menu contains two items: Bookmark This Document and Edit Bookmarks. The former allows you to quickly bookmark the currently opened document, so you don&#8217;t have to navigate to the desired document every time you want to open it. Of course, you can use the Recent Documents feature to do that, but it has some limitations: it can hold only up to 10 entries and you can&#8217;t sort the entries. More importantly, the Bookmarks Menu can bookmark not only documents but also macros and shell commands, and you can do this in just a few clicks.</p>
<p><span id="more-443"></span></p>
<p>To bookmark, for example, an often-used macro, choose Edit Bookmarks and press the New button. Give the bookmark a name, select Macro from the Type drop-down list, press the Open button, and select the macro you want. Press OK to save the new bookmark, and you are done. In fact, it takes longer to explain how this works than actually bookmarking a macro.</p>
<p>The extension&#8217;s ability to bookmark shell commands can come in even more handy, since it allows you to create bookmarks that send commands to external applications. For example, you can create a bookmark that opens your favorite Web site in the default browser. To do this, choose Edit Bookmarks, press New, and give the new entry a name. Select the ShellCommand item from the Type drop-down menu, and type the Web address into the Arguments list. Then type firefox (or another browser) into the Url field, press OK to save the bookmark, and you are done.</p>
<p>By using the Menu button in the Edit Bookmarks window you can also export your shell commands and settings, which can be useful if you are using the extension on several machines.</p>
<h4>OpenOffice.org2GoogleDocs</h4>
<p>No prizes for guessing what <a href="http://extensions.services.openoffice.org/project/ooo2gd">OpenOffice.org2GoogleDocs</a> does. Once installed, the extension adds a menu in the main toolbar that allows you to easily exchange documents between OpenOffice.org and Google Docs. The upload part of the extension supports not only ODT documents, but also SXW, DOC, and spreadsheets in ODS, XLS, and CVS formats, as well as PPT presentations. The download part of the OpenOffice.org2GoogleDocs extension is still under heavy development, and right now it can only import Google Docs documents as plain text files.</p>
<h4>Code Formatter</h4>
<p>If your Writer documents contain a lot of code, and you want to make it look pretty by adding syntax color, the <a href="http://extensions.services.openoffice.org/project/CodeFormatter">Code Formatter</a> extension can help you. The current version supports C++, Java, and OpenOffice.org Basic syntax only, but the extension comes with a detailed description of how it works, so you can add other languages yourself.</p>
<p>To apply syntax color to a code block, you have to apply the _OOoComputerCode paragraph to it and then run an appropriate macro (e.g. MacroFormatterADP -&gt; Basic -&gt; FMT_ColorCodeCurrentBasic for OpenOffice.org Basic code). Unfortunately, the extension doesn&#8217;t add a dedicated menu, so you have to manually select the coloring macro. Alternatively, you can use the Bookmarks Menu to create bookmarks for the Code Formatter macros.</p>
<h4>OOoSVN</h4>
<p>The idea of using Subversion for document versioning is nothing new, but <a href="http://extensions.services.openoffice.org/project/OOoSVN">OOoSVN</a> allows you to use the system right from within OpenOffice.org, hiding Subversion&#8217;s complexity behind a few easy-to-use commands. Before you can make use of OOoSVN, you have to install Subversion on your machine, but most mainstream Linux distributions have Subversion in their repositories. During the first run, OOoSVN sets up a repository for your documents and moves the currently opened document into it. Using commands available under the SVN menu in OpenOffice.org, you can commit changes, revert the document to a previous version, and graphically browse the document&#8217;s versions. OOoSVN even allows you to compare two versions of the document using OpenOffice.org&#8217;s Compare feature.</p>
<h4>mOOo Impress Controller</h4>
<p>If you&#8217;ve got a Bluetooth-enabled mobile phone, why not use it for something fancy and useful like controlling Impress presentations? <a href="http://extensions.services.openoffice.org/project/moooic">mOOo Impress controller</a> allows you to do just that. It consists of an OpenOffice.org extension for the desktop and a Java-based client that must be installed on the mobile phone. The client&#8217;s functionality is rather limited: using it, you can launch the presentation and move between slides. On the other hand, its simplicity has one major advantage: with only three functions, you are less likely to do something wrong during the presentation.</p>
<p>Once you&#8217;ve installed the Java client on your mobile phone and extension in OpenOffice.org, open a presentation and launch the mobile client. In OpenOffice.org, choose mOOo Menu -&gt; Select Device and press the Search button. Select your mobile phone from the list of found devices, and press OK. Choose mOOo Menu-&gt; On, and you are ready to control your presentation from the mobile phone. To close the connection, choose again mOOo -&gt; On.</p>
<p>Speaking of presentations, there is another nifty extension you might want to give a try. <a href="http://extensions.services.openoffice.org/project/PresentationMinimizer">Sun Presentation Minimizer</a> can shrink an Impress file to a fraction of its original size, which can come in handy if you need to email a presentation to colleagues. Interestingly, the tool can handle not only the native ODP files but also Microsoft Office PPT presentations.</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/nice-and-useful-openofficeorg-extensions.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Howto &#8211; Securing Joomla! installations</title>
		<link>http://linewbie.com/2008/01/howto-securing-joomla-installations.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=howto-securing-joomla-installations</link>
		<comments>http://linewbie.com/2008/01/howto-securing-joomla-installations.html#comments</comments>
		<pubDate>Fri, 04 Jan 2008 02:48:23 +0000</pubDate>
		<dc:creator>Linewbie.com</dc:creator>
				<category><![CDATA[applications/software]]></category>
		<category><![CDATA[cms/portals]]></category>
		<category><![CDATA[guides]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.linewbie.com/2008/01/howto-securing-joomla-installations.html</guid>
		<description><![CDATA[Joomla! is a well-known content management system, mature enough to be used by thousands of amateur and professional Web portals. Installation is a breeze and consists of six click-next steps. However, a default Joomla! installation is not necessarily a secure &#8230; <a href="http://linewbie.com/2008/01/howto-securing-joomla-installations.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="xar-clearleft"><a href="http://www.joomla.org/">Joomla!</a> is a well-known content management system, mature enough to be used by thousands of amateur and professional Web portals. Installation is a breeze and consists of six click-next steps. However, a default Joomla! installation is not necessarily a secure one, so let&#8217;s see how we can protect our portal from potential attackers.</p>
<p id="featurecontent" class="xar-align-left">The first rule of security when it comes to Joomla! is &#8220;update frequently,&#8221; because whenever a new version comes out, it usually comprises several user-reported bug and security fixes. If your host allows it, use PHP5 instead of PHP4, because it&#8217;s more advanced and offers better security.</p>
<p>Once your site is ready to be launched, make sure to set your configuration.php file to read-only &#8212; a critical step that most users neglect. Change file and directory permissions &#8212; <code>chmod 644</code> for files and <code>chmod 755</code> for folders &#8212; but be sure to keep temporary and cache directories writable, lest you get a site error.</p>
<p><span id="more-437"></span></p>
<p>Bear in mind that special folders used by Joomla! modules and components that deal with files are also writable. An image manipulation component that cannot upload files is useless. Within the Joomla! administration Panel go to Site -&gt; Global Configuration, and choose the Server tab. Activate CHMOD new files to 0644 and CHMOD new directories to 0755 then apply the settings.</p>
<p>Don&#8217;t forget to delete your installation folder from Joomla!&#8217;s root once the install is finished; you will not be able to access your site with the directory still present in your server root. Change the administrator&#8217;s username from admin to something less obvious and be sure to use a good, long, hard-to-remember password. A good rule of thumb is to use a combination of lowercase and uppercase letters and numbers, at least eight characters long. Don&#8217;t write it down and don&#8217;t use it as a password anywhere else.</p>
<p>An important step in securing Joomla! is to create and configure an .htaccess file in the root of the site which decides access permissions for special directories and mod_rewrite settings, among other things. The contents of this file may vary depending on the options your hosting server provides and the components and modules you might use.</p>
<p>After a default Joomla! install, you&#8217;ll probably see the following message when you visit the back end administration panel: &#8220;PHP register_globals setting is &#8216;ON&#8217; instead of &#8216;OFF&#8217;.&#8221; This means that Environment, GET, POST, Cookie, and Server variables are registered as global variables. If you turn register_globals off, you can prevent variable injection attacks. You&#8217;ll have to edit your php.ini file &#8212; but there&#8217;s a catch. Most hosting providers don&#8217;t allow direct access to the main php.ini file. You can work around the problem by creating a php.ini file in the root directory of the site and put your lines there. In some cases it might take up to an hour for the settings to be read by the provider&#8217;s servers, so be patient. Once you&#8217;ve done this, insert one of the following lines, depending on the PHP version the server is running (PHP 5 or PHP 4 respectively):</p>
<pre>php_value register_globals off</pre>
<p>or</p>
<pre>register_globals = 0</pre>
<p>There&#8217;s more you can do to further harden the php.ini file. To make <a href="http://en.wikipedia.org/wiki/SQL_injection">SQL inject attacks</a> bounce, put the following two lines in your php.ini file:</p>
<pre>
<p class="code">allow_url_fopen = OFF
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open</pre>
<p>The first line disables URL-aware fopen wrappers that enable accessing URL object like files. The second one disables a lot of PHP functions:</p>
<ul>
<li><em>shows_source</em> &#8212; an alias of highlight_file() which provides syntax highlighting for files;</li>
<li><em>system</em> &#8212; allows execution of external programs;</li>
<li><em>shell_exec</em> &#8212; allow execution of commands via a shell;</li>
<li><em>exec</em> &#8212; allow execution of commands;</li>
<li><em>passthru</em> &#8212; similar to the exec() function, allows execution of commands;</li>
<li><em>phpinfo</em> &#8212; outputs PHP information that could be used by potential intruders;</li>
<li><em>popen</em> &#8212; opens a pipe to a process being executed by a certain command;</li>
<li><em>proc_open</em> &#8212; similar to popen() but provides better control over command execution.</li>
</ul>
<p>Thus this setting disables all means of executing commands and scripts. Again, this might cause problems with some components and modules that use PHP functions for launching commands, but their number is negligible. Look at it this way: you&#8217;ll probably have to do some manual backup, but at least you&#8217;ll sleep soundly at night.</p>
<p>To apply the lines above and secure the portal, you can use the .htaccess file. Since not all hosting providers let you use customized .htaccess files, and since some functions can be specified only in php.ini, we&#8217;ll stick to using the php.ini file for inserting the restrictions. Now comes the fun part: copy the php.ini file into every subfolder of your Joomla! installation that has .php files in it. Do it after your site is finished and ready to be launched, then check if everything works as it is supposed to.</p>
<p>Next, as an extra measure of security, protect the administration subfolder with an .htpasswd file. In /administrator, create two new files: .htaccess and .htpasswd.</p>
<p>The .htaccess file should contain the following lines:</p>
<pre>
<p class="code">AuthType Basic
AuthName "Joomla Administrator"
AuthUserFile /full/path/to/joomla/administrator/.htpasswd
&lt;Limit GET&gt;
require valid-user
&lt;/Limit&gt;</pre>
<p>Specify a username (different from the ones already registered within Joomla!) and cook up a strong password for it using an online .htpasswd generator like <a href="http://www.htaccesstools.com/htpasswd-generator/">.htaccess Tools</a>. Paste the output from the site &#8212; username and encrypted password &#8212; into the .htpasswd file, then save and reload the portal&#8217;s administration page. You&#8217;ll be prompted to enter a username and the password you just created, and will be granted access to the second Joomla! login screen. Be sure to use different usernames and passwords for each.</p>
<p>Delete temporary installation files and images you don&#8217;t need from Joomla!&#8217;s subdirectories, then uninstall modules you don&#8217;t plan to use. Check all installed extensions for <a href="http://tutorials.ausweb.com.au/web/Tutorials/Joomla-FAQ/Joomla-3rd-Party-Extensions-Security-Vulnerabilities/">vulnerabilities</a> and visit <a href="http://secunia.com/search/?search=Joomla">Secunia&#8217;s Vulnerability Database</a> often. Visit <a href="http://forum.joomla.org/index.php/board,267.0.html">Joomla! Forums&#8217;s security category</a> and <a href="http://forum.joomla.org/index.php/topic,75376.0.html">read what others have to say</a> and, in case of disaster, follow <a href="http://forum.joomla.org/index.php/topic,54006.0.html">these guidelines</a>. I also recommend reading <a href="http://help.joomla.org/component/option,com_easyfaq/task,view/id,167/Itemid,268/">the Joomla! Administrator&#8217;s Security Checklist</a>.</p>
<p>The key in maintaining security is to keep yourself informed. Check security lists, and update your extensions whenever new versions are launched. Also, keep in mind that fewer extensions mean less time spent securing them. Check server logs from time to time for SQL injection strings and notify your hosting provider if any serious problems should come up.</p>
]]></content:encoded>
			<wfw:commentRss>http://linewbie.com/2008/01/howto-securing-joomla-installations.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

