<?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>codetorment &#187; Ubuntu</title>
	<atom:link href="http://www.codetorment.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codetorment.com</link>
	<description>code, tech, random stuff</description>
	<lastBuildDate>Tue, 04 May 2010 21:04:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=2455</generator>
		<item>
		<title>Tutorial : Getting started with Python 2.6 on Ubuntu 9.10 using IDLE</title>
		<link>http://www.codetorment.com/2009/11/16/tutorial-getting-started-with-python-2-6-on-ubuntu-9-10-using-idle/</link>
		<comments>http://www.codetorment.com/2009/11/16/tutorial-getting-started-with-python-2-6-on-ubuntu-9-10-using-idle/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 16:22:53 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[idle]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.codetorment.com/?p=838</guid>
		<description><![CDATA[In this tutorial I&#8217;ll show how to install IDLE for Python 2.6 on Ubuntu 9.10 This tutorial couldn&#8217;t be much easier, as a matter of fact you should be ashamed of yourself for even reading this! I&#8217;m just kidding, follow the next couple of steps and you&#8217;ll be wrestling the mighty python in a matter [...]]]></description>
			<content:encoded><![CDATA[<p><strong>In this tutorial I&#8217;ll show how to install IDLE for Python 2.6 on Ubuntu 9.10</strong></p>
<p>This tutorial couldn&#8217;t be much easier, as a matter of fact you should be ashamed of yourself for even reading this! I&#8217;m just kidding, follow the next couple of steps and you&#8217;ll be wrestling the mighty python in a matter of minutes.</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/python-logo-master-v3-TM-flattened.png"><img class="alignnone size-full wp-image-861" title="python-logo-master-v3-TM-flattened" src="http://www.codetorment.com/wp-content/uploads/python-logo-master-v3-TM-flattened.png" alt="python logo master v3 TM flattened Tutorial : Getting started with Python 2.6 on Ubuntu 9.10 using IDLE" width="481" height="162" /></a><span id="more-838"></span></p>
<p>In the top toolbar go to  &#8216;Applications &gt; Ubuntu Software Center&#8217;</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot3.png"><img class="alignnone size-full wp-image-847" title="Screenshot" src="http://www.codetorment.com/wp-content/uploads/Screenshot3.png" alt="Screenshot3 Tutorial : Getting started with Python 2.6 on Ubuntu 9.10 using IDLE" width="492" height="310" /></a><!--more--></p>
<p>Search for IDLE in the Ubuntu Software Center</p>
<p>Select the package &#8216;IDLE (using Python-2.6)&#8217;, hit the arrow and select &#8216;Install&#8217; on the next page</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Ubuntu-Software-Center-11.png"><img class="alignnone size-full wp-image-848" title="Ubuntu Software Center" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Ubuntu-Software-Center-11.png" alt="Ubuntu Software Center" width="539" height="331" /></a></p>
<p>After a few seconds, depending on your internet connection and processing power, the installation of IDLE is completed.</p>
<p>To start IDLE go to &#8216; Applications &gt; Programming &gt; IDLE (using Python-2.6)&#8217;</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-21.png"><img class="alignnone size-full wp-image-849" title="Starting IDLE" src="http://www.codetorment.com/wp-content/uploads/Screenshot-21.png" alt="Starting IDLE" width="498" height="253" /></a></p>
<p>Now you&#8217;re setup and ready to write  your first function&#8230;</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Python-Shell1.png"><img class="alignnone size-full wp-image-851" title="Python Shell" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Python-Shell1.png" alt="Screenshot-Python Shell" width="484" height="401" /></a></p>
<p>If you&#8217;re new to Python and have little to no programming experience I recommend starting from one of two (or both) places.</p>
<p><a title="Dive into Python" href="http://www.diveintopython.org/" target="_blank">Dive into Python</a> and <a title="Think Like a Computer Scientist" href="http://www.greenteapress.com/thinkpython/thinkpython.html" target="_blank">Think Python : How to Think Like a Computer Scientist</a> provide excellent sources for unleashing your inner codeninja. ( Oh and the books are available for free in HTML, PDF and a bunch of other formats).</p>
<p>Go and discover your skills grashopper!</p>
<p>I&#8217;ll soon post a guide on setting up Eclipse on Ubuntu 9.10 and configuring the PyDev plugin to use Eclipse as your Python IDE.</p>
<p><a title="Back to home" href="http://www.codetorment.com" target="_self">Back to homepage </a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.codetorment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.codetorment.com/2009/11/16/tutorial-getting-started-with-python-2-6-on-ubuntu-9-10-using-idle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tutorial : Change user password in Ubuntu 9.10 ( to something simple )</title>
		<link>http://www.codetorment.com/2009/11/03/tutorial-change-user-password-in-ubuntu-9-10/</link>
		<comments>http://www.codetorment.com/2009/11/03/tutorial-change-user-password-in-ubuntu-9-10/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:16:11 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.codetorment.com/?p=524</guid>
		<description><![CDATA[Last time I installed Ubuntu 9.10 I said to myself, let&#8217;s use a good&#8217;ol secure password for my user. Two days later I was already regretting my decision.. I&#8217;m not saying a password shouldn&#8217;t be secure, but a 10 digit password 5 of which are numbers just starts to get annoying when having to type [...]]]></description>
			<content:encoded><![CDATA[<p>Last time I installed Ubuntu 9.10 I said to myself, let&#8217;s use a good&#8217;ol secure password for my user. Two days later I was already  regretting my decision.. I&#8217;m not saying a password shouldn&#8217;t be secure, but a 10 digit password 5 of which are numbers just starts to get annoying when having to type it every time you want to sudo this or sudo that.</p>
<p>No problem thusfar, you just wander to System &gt; Administration &gt; Users and Groups</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Users-Settings.png"><img class="alignnone size-full wp-image-525" title="Screenshot-Users Settings" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Users-Settings.png" alt="Screenshot-Users Settings" width="498" height="262" /></a><span id="more-524"></span></p>
<p><span style="color: #ffffff;">Note: You might want to skip changing your users&#8217; password when during installation  you&#8217;ve selected to also use the users&#8217; password to decrypt your home folder. I&#8217;m not saying it will, but it could cause problems when the configuration of your login password and the decrypt password don&#8217;t match.</span></p>
<p>You click the user who&#8217;s password you wish to change, click properties and enter your current (long and typo-prone) password</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Change-password.png"><img class="alignnone size-full wp-image-528" title="Screenshot-Change password" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Change-password.png" alt="Screenshot-Change password" width="420" height="265" /></a></p>
<p>Next you enter a finger-friendly password, and confirm before you hit &#8216;Change password&#8217;&#8230;</p>
<p>Instead of getting a message that reads &#8216;Your password has been changed&#8217; you get &#8230;</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Change-password-1.png"><img class="alignnone size-full wp-image-529" title="Screenshot-Change password-1" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Change-password-1.png" alt="Screenshot-Change password-1" width="420" height="265" /></a></p>
<p>Well I know it&#8217;s simple, that&#8217;s kind of where I&#8217;m getting at!</p>
<p>After some swearing I realised I might as well use the command line to get things done&#8230;</p>
<p>Open a terminal and enter</p>
<pre style="border: 1px inset; margin: 5px; padding: 6px; overflow: auto; width: 680px; height: 25px; text-align: left;" dir="ltr">sudo passwd yourusername</pre>
<p>You will be asked to enter the current password, enter a new password and confirm.</p>
<p>Thataa! Easy as 123! Damn now I have to go and change my password again&#8230;</p>
<p><a title="Home" href="http://www.codetorment.com/" target="_self">Back to homepage</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.codetorment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.codetorment.com/2009/11/03/tutorial-change-user-password-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tutorial : Getting started with Arduino on Ubuntu 9.10</title>
		<link>http://www.codetorment.com/2009/11/02/tutorial-getting-started-with-arduino-ide-on-linux-ubuntu-9-10/</link>
		<comments>http://www.codetorment.com/2009/11/02/tutorial-getting-started-with-arduino-ide-on-linux-ubuntu-9-10/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 20:53:40 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[launcher]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.codetorment.com/?p=439</guid>
		<description><![CDATA[In this tutorial I will show you how to setup the Arduino IDE on Ubuntu 9.10 32-bit. I&#8217;ll also show you how to add an Application Launcher to quickstart the Arduino IDE I&#8217;ll assume you haven&#8217;t already installed any of the necessary packages to run the Arduino IDE. 1. First open a terminal ( Applications [...]]]></description>
			<content:encoded><![CDATA[<p><strong>In this tutorial I will show you how to setup the Arduino IDE on Ubuntu 9.10 32-bit. I&#8217;ll also show you how to add an Application Launcher to quickstart the Arduino IDE</strong></p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-sketch_nov02a-Arduino-0017.png"><img class="alignnone size-full wp-image-515" title="Screenshot-sketch_nov02a | Arduino 0017" src="http://www.codetorment.com/wp-content/uploads/Screenshot-sketch_nov02a-Arduino-0017.png" alt="Screenshot-sketch_nov02a | Arduino 0017" width="500" height="600" /></a></p>
<p>I&#8217;ll assume you haven&#8217;t already installed any of the necessary packages to run the Arduino IDE.</p>
<p>1. First open a terminal ( Applications &gt; Accesories &gt; Terminal ), paste the following code and hit enter :<span id="more-439"></span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 54px; text-align: left;" dir="ltr">sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-jdk
sun-java6-fonts sun-java6-plugin gcc-avr avr-libc</pre>
<p>&nbsp;<br />
2. Next we need to uninstall Ubuntu&#8217;s braille support as it is known to cause <a title="Arduino on Ubuntu" href="http://www.arduino.cc/playground/Linux/Ubuntu" target="_blank">conflicts</a> with the Arduino IDE.</p>
<p>To do so go back to the terminal and enter :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">sudo apt-get remove brltty</pre>
<p>&nbsp;<br />
3. Now we need to setup Java<br />
GNU&#8217;s Java doesn&#8217;t support the Arduino so to fix this run the command</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">sudo update-alternatives --config java</pre>
<p>&nbsp;<br />
This will show you a list of java alternatives installed on the machine.<br />
Select the entry &#8216;java-6-sun&#8217;</p>
<p>4. Now we are ready to download and install the arduino environment</p>
<p>Click <a title="Arduino IDE version 17" href="http://arduino.googlecode.com/files/arduino-0017.tgz" target="_blank">here</a> to download version 17 of the Arduino IDE. Alternatively go <a title="Arduino software" href="http://arduino.cc/en/Main/Software" target="_blank">here</a> to download a specific version.</p>
<p>5. Copy the downloaded file to your home directory ( saved by default in /home/username/downloads )</p>
<p>Extract the downloaded file into your home directory ( right-click &gt; extract here ).</p>
<p>6. To start the Arduino IDE open the arduino-0017 folder and double click the arduino file, when prompted choose Run.</p>
<p>If you want to start the Arduino IDE from the command line, cd into the folder</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">cd /home/username/arduino-0017</pre>
<p>&nbsp;<br />
and start the IDE with the command</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">./arduino</pre>
<p>&nbsp;</p>
<h3>I however prefer to have a launcher to quickstart applications.</h3>
<p>1. Download this icon to your desktop ( right-click &gt; Save image as&#8230; )</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/arduino.png"><img class="alignnone size-full wp-image-483" title="arduino" src="http://www.codetorment.com/wp-content/uploads/arduino.png" alt="arduino Tutorial : Getting started with Arduino on Ubuntu 9.10" width="131" height="131" /></a></p>
<p>2. Open a terminal, go to your desktop and copy the image to /usr/share/icons</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 48px; text-align: left;" dir="ltr">cd Desktop/
sudo cp arduino.png /usr/share/icons/</pre>
<p>&nbsp;<br />
3. Next right click the top panel and select Add to panel&#8230;</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Add-to-Panel.png"><img class="alignnone size-full wp-image-482" title="Screenshot-Add to Panel" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Add-to-Panel.png" alt="Screenshot-Add to Panel" width="562" height="518" /></a></p>
<p>5. Select the first entry &#8216;Custom Application Launcher&#8217; and hit Add</p>
<p>6.In the Create Launcher window enter</p>
<p>A name for the launcher :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">Arduino</pre>
<p>&nbsp;<br />
The command to be executed when the launcher is clicked :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 580px; height: 24px; text-align: left;" dir="ltr">bash -c "cd /home/yourusername/arduino-0017/; ./arduino"</pre>
<p>&nbsp;<br />
And any comment you want to add :</p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto;  width: 580px; height: 24px; text-align: left;" dir="ltr">starts the Arduino IDE</pre>
<p>&nbsp;<br />
Now click on the spring icon and go to the /usr/share/icons/ folder and select the arduino.png image.</p>
<p>Your Launcher should look like this</p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-Launcher-Properties-1.png"><img class="alignnone size-full wp-image-493" title="Screenshot-Launcher Properties-1" src="http://www.codetorment.com/wp-content/uploads/Screenshot-Launcher-Properties-1.png" alt="Screenshot-Launcher Properties-1" width="434" height="225" /></a></p>
<p>That was it! You&#8217;re all setup to hack and thinker with your Arduino on Ubuntu 9.10.</p>
<p>Now run along a go blink some LEDs.</p>
<p><a title="Home" href="http://www.codetorment.com/" target="_self">Back to homepage</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.codetorment.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.codetorment.com/2009/11/02/tutorial-getting-started-with-arduino-ide-on-linux-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Tutorial : Installing and securing XAMPP on Ubuntu 9.10</title>
		<link>http://www.codetorment.com/2009/10/20/guide-install-xampp-on-ubuntu/</link>
		<comments>http://www.codetorment.com/2009/10/20/guide-install-xampp-on-ubuntu/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 14:12:04 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://codetorment.com/?p=3</guid>
		<description><![CDATA[<a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox.png"><img class="alignnone size-medium wp-image-28" title="Language selection page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox-300x180.png" alt="Language selection page" width="300" height="180" /></a>

This page shows ...]]></description>
			<content:encoded><![CDATA[<p><strong>This tutorial will explain how to install XAMPP 1.7.1 in Ubuntu 9.10</strong></p>
<p><a href="http://www.codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox.png"><img class="alignnone size-full wp-image-30" title="Welcome page" src="http://www.codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox.png" alt="Welcome page" width="353" height="212" /></a></p>
<h3>Introduction</h3>
<p>This is a step by step guide for installing and setting up a webdev server on a ubuntu machine. I will show you how to install the lampp stack using XAMPP version 1.7.1 on Ubuntu 9.10.</p>
<p><span style="color: #ffcc33;">You can follow the exact same steps for setting up XAMPP version 1.7.2</span></p>
<h3>Follow these steps to install XAMPP:</h3>
<p>1. For starters you need to go to the official XAMPP website and download XAMPP for Linux version 1.7.1,  <a title="Download XAMPP" href="http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.7.1/xampp-linux-1.7.1.tar.gz/download">click here</a> to download XAMPP for Linux version 1.7.1</p>
<p><span style="color: #ffcc33;">Make sure you download </span><span style="color: #ffcc33;">XAMPP</span><span style="color: #ffcc33;"> 1.7.1  if you want to use it together with wordpress.  XAMPP 1.7.2 uses PHP 5.3.0 which causes some problems when used in combination with wordpress 2.8.4</span></p>
<p>2. Place the downloaded .tar.gz archive on your desktop if it wasn&#8217;t already saved there by default.</p>
<p>3. Open a terminal ( Applications &gt; Accessoires &gt; Terminal )</p>
<p><span id="more-3"></span></p>
<p>4. Go to your desktop (or any other location where you placed the downloaded file)</p>
<pre><code style="color: white;">
cd Dekstop
</code></pre>
<p>&nbsp;<br />
5. Login as the super admin</p>
<pre><code style="color: white;">
sudo -s
</code></pre>
<p>&nbsp;<br />
6. Untarball the compressed file to the /opt directory</p>
<pre><code style="color: white;">
tar xvfz xampp-linux-1.7.1.tar.gz -C /opt
</code></pre>
<p>&nbsp;<br />
The above command installs xampp in the /opt/lampp directory</p>
<p>7. Start xampp by giving the command</p>
<pre><code style="color: white;">
/opt/lampp/lampp start
</code></pre>
<p>&nbsp;<br />
8. After starting xampp open a browserwindow and go to <a href="http://localhost/">localhost</a></p>
<p>If all went well you’ll see this page</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox.png"><img class="alignnone size-medium wp-image-28" title="Language selection page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-Mozilla-Firefox-300x180.png" alt="Language selection page" width="300" height="180" /></a></p>
<p>9. After choosing your language you’ll be forwarded to the welcome page</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox.png"><img class="alignnone size-medium wp-image-30" title="Welcome page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-300x180.png" alt="Welcome page" width="300" height="180" /></a></p>
<p>10. Go to the security page by clicking Security in the left menu.</p>
<p>You’ll see that everything is unsecured at the moment</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-1.png"><img class="alignnone size-medium wp-image-31" title="Security page" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-1-300x293.png" alt="Security page" width="300" height="293" /></a></p>
<p>When XAMPP will be used for local development these settings won’t matter much. It is good practice however to set it up securely.</p>
<h3>Next I’ll show you how to setup security</h3>
<p>&nbsp;<br />
11. Copy the code on the bottom of the security page and then paste it into a terminal</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-3.png"><img class="alignnone size-medium wp-image-35" title="Select code" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-3-300x293.png" alt="Select code" width="300" height="293" /></a></p>
<pre><code style="color: white;">
/opt/lampp/lampp security
</code></pre>
<p>&nbsp;<br />
This will start an interactive program to help you configure security settings</p>
<div><span style="color: #ffcc33;">Make sure you’re logged in as super admin to start xampp or you’ll get an error message!</span></div>
<p>&nbsp;<br />
<a href="http://codetorment.com/wp-content/uploads/Screenshot-tom@laptop-1.png"><img class="alignnone size-medium wp-image-36" title="Login as sudo" src="http://codetorment.com/wp-content/uploads/Screenshot-tom@laptop-1-300x199.png" alt="Login as sudo" width="300" height="199" /></a></p>
<p>12. Type yes when prompted to enter a password and enter a secure password twice</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-.png"><img class="alignnone size-medium wp-image-38" title="Enter password" src="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop--300x199.png" alt="Enter password" width="300" height="199" /></a></p>
<p>13. Turn off MySQL network accesibility by entering yes, MySQL will now restart so the setting can take effect</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-1.png"><img class="alignnone size-medium wp-image-39" title="MySQL restart" src="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-1-300x199.png" alt="MySQL restart" width="300" height="199" /></a></p>
<p>14. You’ll be prompted to set a password for phpMyAdmin, do so.</p>
<p>15. And again for setting a MySQL root password, make sure you write this one down or you’ll be in trouble later on.</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-2.png"><img class="alignnone size-medium wp-image-40" title="MySQL root password" src="http://codetorment.com/wp-content/uploads/Screenshot-root@laptop-2-300x199.png" alt="MySQL root password" width="300" height="199" /></a></p>
<p>16. Now set a password for user nobody.</p>
<p>This should complete the security setup procedure.</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot2.png"><img class="alignnone size-medium wp-image-41" title="Done" src="http://codetorment.com/wp-content/uploads/Screenshot2-299x210.png" alt="Done" width="299" height="210" /></a></p>
<p>To confirm everything went ok, open a browserwindow and go to <a href="http://localhost/">localhost</a></p>
<p>17. You’ll be prompted for a username and password.</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-1.png"><img class="alignnone size-medium wp-image-46" title="Login" src="http://codetorment.com/wp-content/uploads/Screenshot-1-300x230.png" alt="Login" width="300" height="230" /></a></p>
<p>the username is ‘lampp’<br />
the password is the one you entered in step 12</p>
<p>18. Go the the security pages</p>
<p>This should show all subjects are now secured..</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-4.png"><img class="alignnone size-medium wp-image-44" title="Secured" src="http://codetorment.com/wp-content/uploads/Screenshot-XAMPP-for-Linux-1.7.1-Mozilla-Firefox-4-300x293.png" alt="Secured" width="300" height="293" /></a></p>
<p>Place content you want to add to the webserver in the root web directory located in</p>
<pre><code style="color: white;">
/opt/lamp/htdocs
</code></pre>
<p>&nbsp;<br />
To make things easier we&#8217;ll add a link to the htdocs folder to a folder in our home directory.</p>
<p>You can do this in a terminal by typing</p>
<pre><code style="color: white;">
mkdir ~/public_html
</code></pre>
<p>&nbsp;<br />
Or just right-click in your home folder and create a new folder named &#8216;public_html&#8217;</p>
<p>19. Now we&#8217;ll make a link from the new folder to /opt/lampp/htdocs , open a terminal and enter</p>
<pre><code style="color: white;">
sudo ln -s ~/public_html /opt/lampp/htdocs/
</code></pre>
<p>&nbsp;<br />
20. To setup permissions for the htdocs folder, go to the terminal (still logged in as super user) and type</p>
<pre><code style="color: white;">
chown  yourusername -R /opt/lampp/htdocs
</code></pre>
<p>&nbsp;<br />
This changes the ownership of the htdocs folder to your user, the -R option makes the command recursive so all permissions of folders and files inside htdocs are changed aswell.<br />
&nbsp;</p>
<div><span style="color: #ffcc33;">Note that depending on the applications used to interact with content on your server, permissions might need to be altered to grant read/write access.</span></div>
<p>&nbsp;</p>
<h4>Congratulations that was it! Well sort of&#8230;</h4>
<p>&nbsp;<br />
After restarting your computer you have to manually start the server by entering</p>
<pre><code style="color: white;">
/opt/lampp/lampp start
</code></pre>
<p>&nbsp;<br />
in a terminal.</p>
<p>EDIT: MiD-AwE pointed out he had to install the ia32 libraries when installing XAMPP on Ubuntu 9.10 64-bit. The ia32 library is needed when installing a 64-bit version on a AMD64 or <a href="http://nl.wikipedia.org/wiki/IA-64">ia64</a>-system.</p>
<p>To do this open a terminal and type</p>
<pre><code style="color: white;">
sudo apt-get install ia32-libs
</code></pre>
<p>&nbsp;</p>
<h3>If you want xampp to automatically start at boottime, follow  <a href="http://www.apachefriends.org/en/faq-xampp-linux.html#fsl">these</a> steps.</h3>
<p>&nbsp;<br />
EDIT : Or as MiD-AwE suggested you can go to System &gt; Preferences and add an entry</p>
<pre><code style="color: white;">
 /opt/lampp/lampp start
</code></pre>
<p>&nbsp;<br />
to “Startup Applications”</p>
<h3>If you want to use a GUI to start and stop xampp do the following:</h3>
<p>1. Open a terminal and type</p>
<pre><code style="color: white;">
sudo gedit ~/.local/share/applications/xampp-control-panel.desktop
</code></pre>
<p>&nbsp;<br />
2. Paste this code in the new empty file in gedit</p>
<pre><code style="color: white;">
[Desktop Entry]
Comment=Start and Stop XAMPP
Name=XAMPP Control Panel
Exec=gksudo python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg
Encoding=UTF-8
Terminal=false
Name[en_CA]=XAMPP Control Panel
Comment[en_CA]=Start and Stop XAMPP
Type=Application
Icon=/usr/share/icons/Humanity/devices/24/network-wired.svg
</code></pre>
<p>&nbsp;
<div>If you want to use another icon or if you are using another theme then make sure to change the path to the icon you want to showing up for the xampp control panel.</div>
<p>Change this line (twice) to match the location of the icon you want to use.</p>
<pre><code style="color: white;">
Icon[en_CA]=/usr/share/icons/Humanity/devices/24/network-wired.svg
</code></pre>
<p>&nbsp;<br />
3. The xampp control panel should now show up in Applications &gt; Other</p>
<p>You should get to see something like this :</p>
<p><a href="http://codetorment.com/wp-content/uploads/Screenshot.png"><img class="alignnone size-full wp-image-48" title="XAMPP control panel" src="http://codetorment.com/wp-content/uploads/Screenshot.png" alt="XAMPP control panel" width="268" height="256" /></a></p>
<h4>That was it!</h4>
<p>Now run along and go do something usefull</p>
<p><a title="home" href="http://www.codetorment.com/" target="_self">Back to homepage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codetorment.com/2009/10/20/guide-install-xampp-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
