<?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>gEt DoWn ToNiGhT &#187; ubuntu</title>
	<atom:link href="http://www.getdowntonight.co.uk/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.getdowntonight.co.uk</link>
	<description>amusingly digressive progressive discussions</description>
	<lastBuildDate>Mon, 05 Dec 2011 22:41:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Using Eclipse as a PHP IDE in Ubuntu 9.10</title>
		<link>http://www.getdowntonight.co.uk/2009/11/using-eclipse-as-a-php-ide-in-ubuntu-9-10/</link>
		<comments>http://www.getdowntonight.co.uk/2009/11/using-eclipse-as-a-php-ide-in-ubuntu-9-10/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 17:05:40 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.getdowntonight.co.uk/?p=405</guid>
		<description><![CDATA[This is actually much easier than any of the guides I found online make out. Firstly, install Eclipse from the repositories. Then open it up, select your default workspace (if you havent already) and then: From the Help menu, select &#8220;Install new software&#8221;. Click the &#8220;Add&#8221; button and add the following: Name: Eclipse Updates (Galileo) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright colorbox-405" src="http://wwwbruegge.informatik.tu-muenchen.de/twiki/pub/Lehrstuhl/SysiphusGoesEclipse/eclipse.png" alt="" width="90" height="90" />This is actually much easier than any of the guides I found online make out.</p>
<p>Firstly, install <strong>Eclipse</strong> from the repositories. Then open it up, select your default workspace (if you havent already) and then:</p>
<ol>
<li>From the Help menu, select &#8220;Install new software&#8221;.</li>
<li>Click the &#8220;Add&#8221; button and add the following:
<ol></ol>
<ul>
<li><strong>Name</strong>: Eclipse Updates (Galileo)</li>
<li><strong>Location</strong>: http://download.eclipse.org/releases/galileo/</li>
</ul>
<ol></ol>
</li>
<li>Apply your changes and wait for the contents to download.</li>
<li>When all is ready, select your new source from the drop down and look for the &#8220;Programming languages&#8221; section.</li>
<li>Open it up and add the &#8220;PHP Development Tools (PDT) SDK Feature&#8221;.</li>
<li>Step through using Next and Finish etc, and after a few moments downloading and installing you now have a PHP ready IDE.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.getdowntonight.co.uk/2009/11/using-eclipse-as-a-php-ide-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Setting up a basic web server using Ubuntu 9.10 (Desktop)</title>
		<link>http://www.getdowntonight.co.uk/2009/11/setting-up-a-basic-web-server-using-ubuntu-9-10-desktop/</link>
		<comments>http://www.getdowntonight.co.uk/2009/11/setting-up-a-basic-web-server-using-ubuntu-9-10-desktop/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 17:14:08 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.getdowntonight.co.uk/?p=366</guid>
		<description><![CDATA[I have been using Ubuntu 9.10 for a while and wanted to see how it performs as a web server. The GUI interface is very slick and it is an ideal OS for beginners and advanced users alike. I suspect that many people will want to use it as the basis for their webservers. I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-390 colorbox-366" title="Ubuntu Logo" src="http://www.getdowntonight.co.uk/wp-content/jaustin_saturated_full_logo_021_trans-300x88.png" alt="Ubuntu Logo" width="180" height="53" />I have been using Ubuntu 9.10 for a while and wanted to see how it performs as a web server. The GUI interface is very slick and it is an ideal OS for beginners and advanced users alike. I suspect that many people will want to use it as the basis for their webservers.</p>
<p>I suggest creating a virtual machine with something like VirtualBox for this. It is much more flexible that way, and you can move it to a more powerful machine if you decide you need to.</p>
<p><strong>Phase 1. Install required applications:</strong></p>
<ol>
<li>Open &#8216;Synaptic package manager&#8217; from the System/Administration menu.</li>
<li>Click the &#8216;Search&#8217; button.</li>
<li>Enter &#8216;Apache&#8217; and press return.</li>
<li>You will see an item called &#8216;Apache2&#8242; in the list of results. Click the box to the left to mark it as something you want to install.</li>
<li>Repeat this process for:
<ul>
<li>Php5</li>
<li>MySql</li>
<li>Php5-mysql</li>
</ul>
</li>
<li>Click the &#8216;Apply&#8217; button on the toolbar.</li>
<li>This will start the installation process, during which you will be prompted to provide a password for the MySQL root account. Supply a strong password and make sure you do not forget it.</li>
<li><img class="alignright size-medium wp-image-374 colorbox-366" title="It worked!" src="http://www.getdowntonight.co.uk/wp-content/Screenshot-WebServer-1-Ubuntu-9.10-Running-VirtualBox-OSE-1-300x227.png" alt="It worked!" width="180" height="136" />When everything has finished installing, I suggest rebooting. There are ways of starting the servers without rebooting, but a reboot works just as well and is much easier.</li>
<li>After you have logged back in to Ubuntu, open up Firefox and visit http://localhost.</li>
<li>You should see a page that says &#8220;It works!&#8221; which means that your webserver is now working.</li>
</ol>
<p><strong>Phase 2: Configure Virtual Hosts</strong> (So you can have more than one site on your server)</p>
<p>I have chosen to use the command line to do much of this phase rather than the GUI. For me, it is much easier to access protected system files from the shell rather than use a GUI. However, should you want to use a GUI, you will need to be running with root privileges. You can do this by entering: <strong>sudo nautilus</strong> in to a command line (and enter your password). However, the instructions below are for using the shell.</p>
<p><em>Any time you see the <strong>sudo</strong> command, that means that you will run the command as root (administrator). Linux is much more secure than Windows thanks to it being locked down by default with a standard set of permissions. It might seem like hassle to keep having to switch to be administrator but it makes things much safer. Deal with it!</em></p>
<ol>
<li>Open a new Terminal from Applications / Accessories in the menus.</li>
<li>In the terminal, enter the following commands and review the results so you know what you are doing.</li>
<li><strong>cd /etc/apache2/sites-enabled</strong> (<em>this moves you to the folder where you can define different websites</em>)</li>
<li><strong>ls</strong> (<em>lower case LS: this will show you a list of files</em>)</li>
<li><strong>sudo cp 000-default 001-mysite</strong> (<em>this will copy the default config file so you can use it as the basis for your new site</em>)</li>
<li>Enter your password when prompted (<em>this should only happen once, but if you are prompted again &#8211; just re-enter it</em>)</li>
<li><strong>sudo gedit 001-mysite</strong> (<em>this will use the gedit text editor to open and allow you to edit the new site config file</em>)</li>
<li>Change the <strong>ServerAdmin</strong> row to use your email address. ie. <strong>ServerAdmin sam@mysite.net</strong></li>
<li>Add a row below with the tag: <strong>ServerName</strong> followed by the name of your site. I will continue to use <strong>mysite.local</strong> throughout. ie. <strong>ServerName mysite.local</strong></li>
<li>Edit the row <strong>DocumentRoot</strong> so that the new path is a sub-folder of www called 001-mysite. ie. <strong>/var/www/001-mysite</strong></li>
<li>Edit the row <strong>&lt;Directory&#8230;&gt;</strong> so that the new path is also used. ie. <strong>&lt;Directory /var/www/001-mysite&gt;</strong></li>
<li>Save the file and closed GEdit.</li>
<li><img class="alignright size-medium wp-image-385 colorbox-366" title="A working PHP virtual host" src="http://www.getdowntonight.co.uk/wp-content/Screenshot-WebServer-1-Ubuntu-9.10-Running-VirtualBox-OSE-2-300x227.png" alt="A working PHP virtual host" width="180" height="136" />We now need to let your computer know that it IS mysite.local. The easiest way to do this is to edit your <strong>hosts</strong> file. There is plenty of information <a href="http://en.wikipedia.org/wiki/Hosts_file" target="_blank">online</a> about what this file does.</li>
<li>From the terminal, type: <strong>sudo gedit /etc/hosts</strong></li>
<li>Add a new row below <strong>127.0.0.1    localhost</strong> that reads: <strong>127.0.0.1     mysite.local</strong> (spaces are tabs)<strong>.<br />
</strong></li>
<li>Save the file and close GEdit.</li>
<li>Now we need to create the file structure for where the sites files will live.</li>
<li>Enter: <strong>sudo mkdir /var/www/001-mysite</strong> (this will create a new folder that will store your php/html files etc)<strong><br />
</strong></li>
<li><strong>cd /var/www/001-mysite<br />
</strong></li>
<li><strong>sudo gedit index.php</strong> (this will open the text editor again and will allow you to create the index page for your site).</li>
<li>In the text editor, enter the following bold text (including all the punctuation): <strong>&lt;?php phpinfo(); ?&gt;</strong></li>
<li>Save the file and close.</li>
<li><strong>sudo /etc/init.d/apache2 restart</strong> (this restarts the Apache service so that the new virtual host is available)<strong><br />
</strong></li>
<li>Now open firefox and visit your new site: http://mysite.local</li>
<li>You should see a whole load of information about your server, and more specifically about your PHP installation.</li>
<li>Thats it! Repeat this phase to add as many virtual hosts as you like.</li>
</ol>
<p>You will now almost certainly want to secure your server. If you have got this far then you can at least get your site(s) up and running on your local machine. Ill cover securing your server in another post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.getdowntonight.co.uk/2009/11/setting-up-a-basic-web-server-using-ubuntu-9-10-desktop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Aptana on Ubuntu Linux 9.04</title>
		<link>http://www.getdowntonight.co.uk/2009/07/installing-aptana-on-ubuntu-linux-9-04/</link>
		<comments>http://www.getdowntonight.co.uk/2009/07/installing-aptana-on-ubuntu-linux-9-04/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 13:13:52 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.getdowntonight.co.uk/?p=204</guid>
		<description><![CDATA[UPDATE: With the latest version of Aptana 2 and Ubuntu 9.10 it seems you dont need to do this hack anymore. Try it without first of all, then if you get problems &#8211; apply the fixes as described. I have been using the Aptana IDE for PHP and Ajax development for a while now on [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_217" class="wp-caption alignright" style="width: 110px"><img class="size-full wp-image-217 colorbox-204" title="aptana" src="http://www.getdowntonight.co.uk/wp-content/aptana.png" alt="aptana" width="100" height="101" /><p class="wp-caption-text">Aptana Studio IDE</p></div>
<p><strong>UPDATE: With the latest version of Aptana 2 and Ubuntu 9.10 it seems you dont need to do this hack anymore. Try it without first of all, then if you get problems &#8211; apply the fixes as described.</strong></p>
<p>I have been using the Aptana IDE for PHP and Ajax development for a while now on my Windows system, and have decided that it is much better than the standard Eclipse, at least for me. I wanted to start using it on my Linux machine but encountered problems which prevented it from running.</p>
<p>It took me a while to find out how to get it to work, but thanks to Google and <a href="http://forums.aptana.com/viewtopic.php?p=24711" target="_blank">some others who have had this problem before me</a>, I now have a working Aptana Studio on my Ubuntu system.</p>
<p>Here is how to get it working:</p>
<ol>
<li>Download and extract Aptana Studio for Linux (All in one) from <a href="http://www.aptana.com/studio/download" target="_blank">here</a>.</li>
<li>Use Synaptic to install <strong>xulrunner</strong> (version 1.8).</li>
<li>Use Synaptic to install a <strong>JRE</strong>.</li>
<li>Create a text file (in your home folder etc) which we will use to set up the Aptana environment and execute the application. Call it <strong>startAptana</strong>.</li>
<li>Paste the text from below in to the new text file, and be sure to change the bottom line so that it matches the <strong>path</strong> to your Aptana installation.</li>
<li>Make the <strong>startAptana</strong> file <strong>executable</strong>.</li>
<li>Double click the <strong>startAptana</strong> file to start using <strong>Aptana</strong>, or create menu icon that links to it.</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">MOZILLA_FIVE_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>xulrunner
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$LD_LIBRARY_PATH</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
   <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #007800;">$MOZILLA_FIVE_HOME</span>:<span style="color: #007800;">$LD_LIBRARY_PATH</span>
<span style="color: #000000; font-weight: bold;">else</span>
   <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #007800;">$MOZILLA_FIVE_HOME</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">export</span> MOZILLA_FIVE_HOME LD_LIBRARY_PATH
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>sam<span style="color: #000000; font-weight: bold;">/</span>Apps<span style="color: #000000; font-weight: bold;">/</span>aptana<span style="color: #000000; font-weight: bold;">/</span>AptanaStudio</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.getdowntonight.co.uk/2009/07/installing-aptana-on-ubuntu-linux-9-04/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

