<?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>Andrew Gee &#187; Ubuntu</title>
	<atom:link href="http://andrewgee.org/blog/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewgee.org/blog</link>
	<description>The life of Andrew Gee.</description>
	<lastBuildDate>Tue, 23 Mar 2010 20:46:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>GPX Viewer in Debian \o/</title>
		<link>http://andrewgee.org/blog/2010/03/23/gpxviewer-in-debian/</link>
		<comments>http://andrewgee.org/blog/2010/03/23/gpxviewer-in-debian/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 20:46:51 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/?p=72</guid>
		<description><![CDATA[So as I&#8217;m trying to make an effort to start being more productive again, I&#8217;ve kicked this off by packaging my python application, GPX Viewer, for Debian. Last year, I created GPX Viewer to read GPS trace files in the GPX format, calculate some stats, and display the trace on a map.
I started packaging it [...]]]></description>
			<content:encoded><![CDATA[<p>So as I&#8217;m trying to make an effort to start being more productive again, I&#8217;ve kicked this off by packaging my python application, GPX Viewer, for Debian. Last year, I created <a href="http://andrewgee.org/blog/projects/gpxviewer/" target="_blank">GPX Viewer</a> to read GPS trace files in the GPX format, calculate some stats, and display the trace on a map.</p>
<p>I started packaging it for Debian/Ubuntu last summer, but sort of forgot about it. But at the weekend I finished it off and submitted it to the Python Applications Packaging Team, where a Debian developer (<a href="http://wiki.debian.org/PiotrOzarowski" target="_blank">Piotr Ożarowski</a>) kindly reviewed my packaging, advised of a few tweaks, and then sponsored my package for the repositories.</p>
<p>And it&#8217;s as simple as that. It&#8217;s now nicely in the repositories: <a href="http://packages.debian.org/sid/gpxviewer" target="_blank">http://packages.debian.org/sid/gpxviewer</a></p>
<p>Now, what shall I package next? <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2010/03/23/gpxviewer-in-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling the PC Speaker in Karmic</title>
		<link>http://andrewgee.org/blog/2009/11/14/pc-speaker-karmic/</link>
		<comments>http://andrewgee.org/blog/2009/11/14/pc-speaker-karmic/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 22:11:39 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/?p=58</guid>
		<description><![CDATA[So I upgraded to Ubuntu karmic a few weeks back. To my horror, I found that the PC Speaker has been disabled. I like the use of the PC Speaker, for irssi and my email. It&#8217;s very handy. I seem to be one of the few people that feel like this. Anyway&#8230; After a few [...]]]></description>
			<content:encoded><![CDATA[<p>So I upgraded to Ubuntu karmic a few weeks back. To my horror, I found that the PC Speaker has been disabled. I like the use of the PC Speaker, for irssi and my email. It&#8217;s very handy. I seem to be one of the few people that feel like this. Anyway&#8230; After a few weeks, I&#8217;ve finally worked out how to enable it again <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Yay!</p>
<ol>
<li>Open up /etc/modprobe.d/blacklist.conf
<pre>gksudo gedit /etc/modprobe.d/blacklist.conf</pre>
<p>(Use kdesu rather than gksudo, in KDE)</li>
<li>Comment out the following lines, by placing a # at the start:
<pre>blacklist snd_pcsp
blacklist pcspkr</pre>
</li>
<li>Save and exit.</li>
<li>Load the modules manually, rather than restarting
<pre>sudo modprobe snd_pcsp
sudo modprobe pcspkr</pre>
</li>
</ol>
<p>It could work now. Have a try. If not, you may have to change a gconf setting. To do this:</p>
<ol>
<li>Load the gconf editor:
<pre>gconf-editor</pre>
</li>
<li>Navigate to /desktop/gnome/peripherals/keyboard</li>
<li>Adjust bell_mode to on</li>
</ol>
<p><strong>Edit: Now this did originally work for me, but it stopped after I rebooted and snd_pcsp was making the pc speaker make strange noises. So I&#8217;ve tweaked it a bit.</strong></p>
<ol>
<li>Blacklist the two modules again in /etc/modprobe.d/blacklist.conf</li>
<li>Open up /etc/rc.local
<pre>gksudo gedit /etc/rc.local</pre>
</li>
<li>Before the exit line add these two lines:
<pre>modprobe pcspkr
modprobe snd_pcsp</pre>
</li>
</ol>
<p>The end. It REALLY should be working now. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2009/11/14/pc-speaker-karmic/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Linux Software RAID 5</title>
		<link>http://andrewgee.org/blog/2009/04/08/linux-raid-5/</link>
		<comments>http://andrewgee.org/blog/2009/04/08/linux-raid-5/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 09:56:00 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/?p=44</guid>
		<description><![CDATA[So, I&#8217;ve been using MythTV recently. I have my master backend upstairs, with all of the storage. And then downstairs is the slave backend with the three tuner cards. Soon after setting all of this up, I found that I was going to run out of disk space for recordings pretty quickly.
Therefore, I bought three [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve been using MythTV recently. I have my master backend upstairs, with all of the storage. And then downstairs is the slave backend with the three tuner cards. Soon after setting all of this up, I found that I was going to run out of disk space for recordings pretty quickly.</p>
<p>Therefore, I bought three 750GB hard disks to complement the one 750GB disk that I had already. And I decided to get a bit of RAID 5 set up. I didn&#8217;t trust the fake raid card in my server box, or even believe it was supported in Ubuntu. So I had a look into software RAID. It looked pretty good, so that&#8217;s what&#8217;s setting up now.</p>
<p><img class="aligncenter size-medium wp-image-51" title="Scan Packaging" src="http://andrewgee.org/blog/wp-content/uploads/2009/04/070420097894-300x225.jpg" alt="Scan Packaging" width="300" height="225" /></p>
<p>I was a bit shocked to see the packaging Scan.co.uk sent the hard disks in, as you can see. There is also a hard drive mounting kit for a optical drive bay in there as well. Luckily, nothing seems damaged, so let&#8217;s hope it stays that way!</p>
<p><img class="aligncenter size-medium wp-image-52" title="Hard Disks in Server" src="http://andrewgee.org/blog/wp-content/uploads/2009/04/070420097905-225x300.jpg" alt="Hard Disks in Server" width="225" height="300" /></p>
<p>And this is the process I am following to get all of this organised and set up&#8230;</p>
<ol>
<li>Connect up all the new hard disks</li>
<li>Format the new disks and set the RAID flag</li>
<li>Create a new blank RAID array with the three disks</li>
<li>Transfer all the old data onto the array</li>
<li>Change the /var/nas mount point to the new array</li>
<li>Format the old disk</li>
<li>Add the old disk to the array and expand the array</li>
<li>Expand the file system</li>
</ol>
<p>It&#8217;s taking time, but it&#8217;s coming along. I&#8217;m at step #7, and it looks like it&#8217;s going to take a while. It&#8217;s at 3.9% and has an estimated time of 869 minutes left. Should give me a chance to do something useful.</p>
<p>Anyway&#8230; On to some revision. See ya.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2009/04/08/linux-raid-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GPX Viewer 0.1</title>
		<link>http://andrewgee.org/blog/2009/02/12/gpxviewer-01-released/</link>
		<comments>http://andrewgee.org/blog/2009/02/12/gpxviewer-01-released/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 18:53:18 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gpxviewer]]></category>
		<category><![CDATA[openstreetmap]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/?p=36</guid>
		<description><![CDATA[Noticed anything different about the blog? I hope not, as I&#8217;ve made a smooth transition to using my own VPS provided by Bitfolk. Yay! But that&#8217;s the topic of another blog post!
I&#8217;ve made a little app, with Python. This app opens up GPX trace files and allows you to view them on a map, and [...]]]></description>
			<content:encoded><![CDATA[<p>Noticed anything different about the blog? I hope not, as I&#8217;ve made a smooth transition to using my own VPS provided by <a href="http://bitfolk.com" target="_blank">Bitfolk</a>. Yay! But that&#8217;s the topic of another blog post!</p>
<p>I&#8217;ve made a little app, with Python. This app opens up GPX trace files and allows you to view them on a map, and view basic stats. For those who don&#8217;t know, GPX files, are tracks recorded by a GPS device. Making tracks with a GPS device lets you review your journey later.</p>
<p style="text-align: center;"><img class="size-full wp-image-30 aligncenter" title="GPX Viewer 0.1" src="http://andrewgee.org/blog/wp-content/uploads/2009/02/screenshot-gpx-viewer-w20090101110131_newgpx-1.png" alt="GPX Viewer 0.1" width="473" height="467" /></p>
<p>As you can see, and  can possibly recognise, the trace is drawn on an openstreetmap map. This was made possible thanks to John Stower&#8217;s brilliant <a href="http://www.johnstowers.co.nz/blog/index.php/tag/osmgpsmap/" target="_blank">openstreetmap GTK widget</a> with Python bindings. (I&#8217;ve packaged this GTK widget up for Ubuntu and it was accepted in. That was my first packaging, which I will talk about in a future blog entry!)</p>
<p>Go ahead and download it from <a href="http://andrewgee.org/downloads/gpxviewer" target="_blank">http://andrewgee.org/downloads/gpxviewer</a></p>
<p>I&#8217;m going to work on Ubuntu and Debian Packages very shortly, so it&#8217;s easy to install. Are you a packager for another distribution? Would appreciate it if you&#8217;d package this up for me. It would be great if you <a href="http://andrewgee.org/blog/contact" target="_blank">let me know</a> if you are going to do this.</p>
<p>Translations. This program is fully translatable on Launchpad at <a href="http://translations.launchpad.net/gpxviewer" target="_blank">http://translations.launchpad.net/gpxviewer</a> &#8211; Go ahead and check it out, if you know another lanuage and want to help out! Shouldn&#8217;t take too much effort, as there&#8217;re few strings to be translated at the moment!</p>
<p>Leave a comment to let me know what you think of the application.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2009/02/12/gpxviewer-01-released/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Radio</title>
		<link>http://andrewgee.org/blog/2008/03/21/radio/</link>
		<comments>http://andrewgee.org/blog/2008/03/21/radio/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 22:15:37 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2008/03/21/radio/</guid>
		<description><![CDATA[Within the past year, my school has started to become very involved in trying to start it&#8217;s own radio station. We&#8217;ve had a large amount of money put into it and it&#8217;s slowly growing. We have the software that all the professionals use, and all of the equipment too.
But now I&#8217;m moving on to developing [...]]]></description>
			<content:encoded><![CDATA[<p>Within the past year, my school has started to become very involved in trying to start it&#8217;s own radio station. We&#8217;ve had a large amount of money put into it and it&#8217;s slowly growing. We have the software that all the professionals use, and all of the equipment too.</p>
<p>But now I&#8217;m moving on to developing an automation application for the time that there isn&#8217;t a show on air. This will be similar to Southampton University&#8217;s radio station automation system (http://surgeradio.co.uk).</p>
<p>I&#8217;m using a combination of python and gstreamer. The feedback so far from the teacher involved, with our radio station, is good. The only problem is the network technician that is a Windows Server user. I think I&#8217;m going to have a problem, when I ask for a linux server to host the automation server, streaming, file server, and website. I expect he&#8217;ll wonder what&#8217;s wrong with his little sharepoint setup, he has going. Hopefully I might be able to do some persuading to get past that, but it&#8217;s not going to be easy. I understand the problem that this would cause though. I&#8217;m the only one with the skills to maintain the linux server. When I leave next year, I doubt they will have a clue how to operate the server, as I don&#8217;t think they have no knowledge of Linux. Anyway, that&#8217;ll be fun to try and sort out. Any suggestions?</p>
<p>At the application side, it&#8217;s coming along well. I&#8217;ve made a website that will allow listeners to request songs to be played. These requests are popped into a MySQL database. From here, my python app checks for new requests after every song. If there is a request, it&#8217;ll play that. If not, it&#8217;ll choose the next song from a pre chosen list. Nifty, aye?</p>
<p>I was amazed at how quick it was to develop in python, as this is my first real programming project in python. It was so simple to get a basic set up done. I had it done within a night! Jono Bacon&#8217;s excellent <a href="http://www.jonobacon.org/?p=750" target="_blank">guide on gstreamer in python</a> helped me well. The app now also has a nice little GUI, made in glade, that&#8217;ll help the DJs turn the automation on and off.</p>
<p>For the hardware setup, I&#8217;m looking to get the server, that I mentioned, and a few high quality sound cards, that&#8217;ll provide balanced audio in and out. I don&#8217;t think we&#8217;d need much processing power for the encoding of the streaming, as I&#8217;ve done a few test runs with my old Pentium 4 clocked at 1.8GHz.</p>
<p>All I have to do is finish it all up now&#8230; And perhaps do some of my many pieces of homework!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2008/03/21/radio/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vodafone 3G card in Ubuntu</title>
		<link>http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/</link>
		<comments>http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 19:55:04 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/</guid>
		<description><![CDATA[First off, I realise that I haven&#8217;t posted a blog entry in a while now. I don&#8217;t know why I haven&#8217;t, as I&#8217;ve had plenty of time, it being the summer holidays and all. I always find my self wanting to do so much stuff in the summer holidays, and somehow turn up doing hardly [...]]]></description>
			<content:encoded><![CDATA[<p>First off, I realise that I haven&#8217;t posted a blog entry in a while now. I don&#8217;t know why I haven&#8217;t, as I&#8217;ve had plenty of time, it being the summer holidays and all. I always find my self wanting to do so much stuff in the summer holidays, and somehow turn up doing hardly anything. &#8216;Tis a shame.</p>
<p>Anyway&#8230;</p>
<p>After reading <a target="_blank" href="https://lists.ubuntu.com/archives/ubuntu-uk/2007-June/005776.html">this</a> mailing list post on ubuntu-uk, I was surprised these 3G datacards actually worked under ubuntu. Therefore, I instantly zoomed off to ebay and purchased one for £34 + postage. I made sure it said unlocked in the ebay listing, as I currently have a virgin mobile sim card and didn&#8217;t want to waste/switch to vodafone.</p>
<p>So the datacard turned up and I popped my phone SIM in it. Following the guide that was written in the mailing list, I configured it. This was using kppp. So I made everything was in there right and tried to connect. One problem though. Everytime I tried to connect kppp would lock up instantly. &#8220;Ah dear&#8221;, I though.</p>
<p>After much researching, I managed to set up the datacard using gnome-ppp, which is equally, if not more, easier to set up the datacard in. And here is a little guide I&#8217;ll write in full for you&#8230;</p>
<p><span id="more-10"></span></p>
<h3>The guide</h3>
<p>The vodafone 3G card. Great little thing. Get the internet almost anywhere!</p>
<p>Now, these vodafone cards seem to be just some re-branded ones. The real manufacture, found from the label underneath, is Novatel Wireless. The model of the datacard is <strong>Merlin U630</strong>.</p>
<p>Pop the SIM card into your datacard, ensuring that you put it in the right way (I may have been stupid enough to put it in the wrong way <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). And then plug it into your computer. First off, it would be quite a good idea to ensure that it was detected by the system. To do this open up a terminal and enter the command <code>dmesg</code>. This should hopefully give you a long list of text, where the end of it slightly resembles this:<br />
<code><br />
[ 124.076000] pccard: PCMCIA card inserted into slot 0<br />
[ 124.076000] cs: memory probe 0xf8000000-0xfdffffff: excluding 0xf8000000-0xfc1fffff 0xfce00000-0xfd3fffff<br />
[ 124.080000] pcmcia: registering new device pcmcia0.0<br />
[ 124.080000] pcmcia: registering new device pcmcia0.1<br />
[ 124.224000] pcmcia: request for exclusive IRQ could not be fulfilled.<br />
[ 124.224000] pcmcia: the driver needs updating to supported shared IRQ lines.<br />
[ 124.268000] 0.0: <strong>ttyS0</strong> at I/O 0x3f8 (irq = 3) is a 16550A<br />
[ 124.312000] pcmcia: request for exclusive IRQ could not be fulfilled.<br />
[ 124.312000] pcmcia: the driver needs updating to supported shared IRQ lines.<br />
[ 124.360000] 0.1: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A<br />
</code></p>
<p>From this you can see the ttyS0 part. This is the name the Linux has given to your datacard. This isn&#8217;t really necessary, but it could be useful to know.</p>
<p>Time to install gnome-ppp. Run <code>sudo apt-get install gnome-ppp</code>. One final thing to do in the terminal is edit a setting of ppp in linux. Run the command <code>sudo gedit /etc/ppp/options</code>. That will load up the text editor, so that you are able to change the options. Head to the bottom of the file and add <code>novj</code> to the end on a separate line. Save and close this file.</p>
<p>Head to Applications -&gt; Internet -&gt; Gnome PPP. This will load up the gnome ppp manager. Press the setup button to load up the options for connecting. Click the detect button, so that it can find your modem device, or alternatively choose the name we found earlier (in my case /dev/ttyS0). Even though it isn&#8217;t a USB modem select under type USB modem, as I found this is the setting that worked. Set the speed to 460800.</p>
<p>Now, you&#8217;re going to need to find your mobile provider&#8217;s APN address. I found <a target="_blank" href="http://www.filesaveas.com/gprs.html">this website</a> had a bunch of APNs for many different mobile providers. So, as I use virginmobile, I scrolled on down to the virginmobile part and found my APN was goto.virginmobile.uk.</p>
<p>Pop back to the settings for gnome-ppp. Click the &#8220;Init Strings&#8230;&#8221; button. In the 3rd Init string item put the following line of code, replacing goto.virginmobile.uk with the APN for your mobile provider.</p>
<p><code>AT+CGDCONT=1,"IP","<strong>goto.virginmobile.uk</strong>"</code></p>
<p>Once you&#8217;ve entered that, press the close button in the Init Strings window. That is the end of the configuration in the Setup dialog also. So go ahead and close that too.</p>
<p>You&#8217;re now back to Gnome PPP main screen. If you go back to that webpage <a target="_blank" href="http://www.filesaveas.com/gprs.html">I pointed to you</a> earlier, and down to your provider you&#8217;ll find a username and password. Copy these accross to the username and password boxes of gnome ppp. If the webpage said (leave blank) next to either the username or password, just put anything in to fill that up, as gnome ppp will not allow you to connect otherwise.</p>
<p>One final part is to add in the phone number to dial. This is, for most people, going to be *99***1#. Now that you&#8217;ve entered all the settings needed go ahead and click Connect. Hopefully, through the power of 3G or GPRS, you will be connected up to your mobile network and able to surf the internet.</p>
<p>You may have a few problems with your DNS. You&#8217;ll know this if you are not able to load a webpage like google.com normally, but you are able to via http://64.233.187.99/. In which case, I&#8217;d solve this problem by using the opendns servers. Head to System -&gt; Administration -&gt; Network. On the DNS tab set your DNS servers to be 208.67.222.222 and 208.67.220.220. After that, you should be able to visit sites easily again.</p>
<p>Now, I think that&#8217;s it. If I&#8217;ve missed anything please comment.</p>
<p>Bye.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/08/07/vodafone-3g-card-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Servers and Whatnot</title>
		<link>http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/</link>
		<comments>http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/#comments</comments>
		<pubDate>Sat, 14 Jul 2007 11:51:33 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/</guid>
		<description><![CDATA[So I&#8217;ve been on a little fun into setting up a webserver. Using an old computer which uses a shuttle case + motherboard. This case and motherboard has been through a lot. Stuff taken in and out loads.
And the fan failing. That was fun. It kept overheating and after much playing around, we found that [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been on a little fun into setting up a webserver. Using an old computer which uses a <a href="http://eu.shuttle.com/" target="_blank">shuttle</a> case + motherboard. This case and motherboard has been through a lot. Stuff taken in and out loads.</p>
<p>And the fan failing. That was fun. It kept overheating and after much playing around, we found that the fan on the cpu heatsink had died. Shuttle being nice and kind when they designed this heatsink, made a size fan that you can&#8217;t get anywhere. Instead, I got a generic case fan and duct taped it to the heatsink! Clever, eh?</p>
<p>So my server. What is it serving? Well, it&#8217;s backup server. Thanks to the backuppc package, all the computers will be backed up in my house. Every week a full backup is done. Followed up by a incremental backup each day. Backuppc is also very clever. If there are files that are the same across backups and computers, the file will only be stored once. I can&#8217;t backup my whole house yet though. This is because of the hard drive in the server. It&#8217;s only a 120GB one. That means I&#8217;m currently only backing up one computer as a test.</p>
<p>What else is my server serving? SSH. The first thing I did when I set up the server was install SSH. This is for two reasons. The server is now on top of a shelf somewhere else in the house with only power and an ethernet cable attached. SSH is my means of remote access. The other reason is so I can have a nice SSH tunnel when I go to sixthform in September. No more annoying school filters to me <img src='http://andrewgee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   Another part of my SSH server is a key based authentication. I decided that I didn&#8217;t really want to put my server out on the internet, if someone was able to bruteforce the password. Therefore, I have set up key based authentication and completely turned off Password authentication.</p>
<p>Quotas. I also managed to set these up. Just as a play around really. It was pretty simple to do:</p>
<ol>
<li><code>sudo apt-get install quota</code></li>
<li>Open up fstab and pop in the usrquota option to the partitions that need to be quotaised</li>
<li>Restart</li>
<li><code>sudo edquota -u <em>username</em></code></li>
<li>The quota config for that user will show up. Under the blocks and inodes column, you are able to see what the current use of that user is.</li>
<li>You are then able to edit the number of blocks (1,000 blocks = about 1MB) that the user can make under the first hard and soft columns.</li>
<li>The second quotaing is the number of files which can be set under the second hard and soft columns</li>
<li>Save and quit. You&#8217;re set!</li>
</ol>
<p>What&#8217;s the difference between hard and soft quotaing you ask? From what I&#8217;ve read around the internet, a soft quota is one that limits the user slightly. The user is allowed to go over the soft quota. But only for a limited time, before they have to delete the files. The hard quota is a strict quota. You hit that quota, and that&#8217;s it. Delete the file or be able to do nothing!</p>
<p>And of course, to do my bit, my server is folding proteins. Slowly but surely&#8230;</p>
<p><img src="http://folding.extremeoverclocking.com/sigs/sigimage.php?un=Webspot.co.uk&amp;t=57391" alt="Folding stats" /></p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/14/servers-and-whatnot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Take 97</title>
		<link>http://andrewgee.org/blog/2007/07/05/take-97/</link>
		<comments>http://andrewgee.org/blog/2007/07/05/take-97/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 13:55:25 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Screencasts]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/07/05/take-97/</guid>
		<description><![CDATA[Before you ask&#8230; No I don&#8217;t know why I chose 97 takes for the title! It just seems like that after the number of times I had to rerecord.
Having my summer holidays starting early, I&#8217;ve got to find things to fill my day with. Yesterday was &#8220;make the samba screencast&#8221; day.
New format as well. Full [...]]]></description>
			<content:encoded><![CDATA[<p>Before you ask&#8230; No I don&#8217;t know why I chose 97 takes for the title! It just seems like that after the number of times I had to rerecord.</p>
<p>Having my summer holidays starting early, I&#8217;ve got to find things to fill my day with. Yesterday was &#8220;make the samba screencast&#8221; day.</p>
<p>New format as well. Full 720p HD format and also a little introduction at the start.</p>
<p>Here it is anyway, in all of it&#8217;s hd goodness:</p>
<p><a href="http://screencasts.ubuntu.com/SAMBA_Filesharing"><img border="0" width="427" src="http://screencasts.ubuntu.com/videos/20070704_samba_filesharing_427x240.png" height="240" alt="Samba Filesharing" /></a></p>
<p>I seemed to be extremely slow in making this screencast too. It took me the whole day to make a 4 and a half minute screencast. I suppose. I wasn&#8217;t working on it constantly though.</p>
<p>So, in making the screencast I did the following things:</p>
<ul>
<li>Planned my general script while running through it with a vm</li>
<li>Make a little presentation to start off the screencast</li>
<li>Get the transitions to work just right</li>
<li>Record the intro + presentation</li>
<li>Add audio</li>
<li>Record the content</li>
<li>Add audio</li>
<li>Record the ending</li>
<li>Add audio</li>
<li>Join it all together</li>
</ul>
<p>Simple, eh? Not really. I kept bumping in to little problems whilst recording which annoyed me everytime.</p>
<p>And with the audio, if I say one word wrong, that&#8217;s it, I&#8217;d have to start again. Audacity seems to hate me. If I was to want to have a separate track to record to it would decide that the sound would be all broken up. Annoying I know, but I think I fixed it *after* I recorded all the sound. At least it should be better next time!</p>
<p>And today I found out that I forgot to include a part on changing the samba configuration file.</p>
<p>Oh well. Hopefully more will be on the way soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/05/take-97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s good when things don&#8217;t work</title>
		<link>http://andrewgee.org/blog/2007/07/03/its-good-when-things-dont-work/</link>
		<comments>http://andrewgee.org/blog/2007/07/03/its-good-when-things-dont-work/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 17:29:18 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/?p=4</guid>
		<description><![CDATA[Things going wrong. You&#8217;d expect this to be a bad thing. But I often find this a good thing. Why? Well it may take ages to fix a problem, but you learn so much in the process!
I persuaded my friend to use Ubuntu Linux a while back. So he went and installed it. He found [...]]]></description>
			<content:encoded><![CDATA[<p>Things going wrong. You&#8217;d expect this to be a bad thing. But I often find this a good thing. Why? Well it may take ages to fix a problem, but you learn so much in the process!</p>
<p>I persuaded my friend to use Ubuntu Linux a while back. So he went and installed it. He found that his wireless network card didn&#8217;t work, and there was no way it would work (even under ndiswrapper). So he went ahead and bought a nice wireless card from linuxemporium.co.uk. You&#8217;d think that they&#8217;d pick one that would work &#8220;out of the box&#8221;. Well, no! You get this awkwardly written guide (not good for newbies to linux). So I went ahead and re wrote it into simple talk. Great! It worked!</p>
<p>About a month later he decided to reinstall ubuntu and windows so that he could get the partitions right. So he went and did it and began to set up the wireless network card again. This time it didn&#8217;t work, even with my simpler instructions. So instead of getting me to help that much he decided he&#8217;d just get a nice ethernet cable instead.</p>
<p>Right. So he&#8217;s trying to get *everything* to work under ubuntu now. One of those things required his external USB hard drive. Simple you&#8217;d think. Plug it in and see it appear on the desktop. Unfortunately not. In this case it was, plug it in and see *nothing at all* happen. So he comes talking to me to ask for help. This is what I found out</p>
<ul>
<li>The device was being recognised as sde &#8211; from <code>dmesg</code></li>
<li>The device was not mounted &#8211; from <code>mount</code></li>
<li> The device had partitions &#8211; from <code>cfdisk /dev/sde</code></li>
</ul>
<p>So, I go ahead and tell him to mount the disk manually. <code></code></p>
<p><code>sudo mount /dev/sde1 test</code></p>
<p>&#8220;Please specify a file system type&#8221;. Ok then. <code></code></p>
<p><code>sudo mount -t vfat /dev/sde1 test</code>.</p>
<p>&#8220;Invalid file system type&#8221;. At this point my friend restarted into his windows partition, and the drive worked perfectly. During this time I had a google around and found that there might be an error on the drive. I don&#8217;t know much about <code>fsck</code>, but I gave it a go anyway.</p>
<p><code>fsck /dev/sde</code><br />
<strong>Response:</strong> No FSINFO sector  1) Create one  2) Do without FSINFO</p>
<p>Ok then. We&#8217;ll press 1 and continue, even though I don&#8217;t know what a FSINFO sector is (but at a guess I&#8217;d say it is a sector that holds information about the file systems). After that part there were a few other messages like &#8220;Free cluster summary uninitialized (should be 10914208)  1) Set it  2) Leave it uninitialized&#8221;. We just hit 1 each time and carried on. But at the end of all of that we get a message saying &#8220;<strong>Leaving file system unchanged.</strong>&#8220;. I was asking myself why it isn&#8217;t saving the fixes, even though I told it to fix it. Ah well. Back to the drawing board.</p>
<p>After a few variations on the fsck command I came up with this nice one:<br />
<code>dosfsck -w -r -v /dev/sde1</code></p>
<p>So. Ran that. Hit 1 a few times. And tada! All fixed!</p>
<p>And now I know how to operate fsck more! Yipee!</p>
<p>In other news, it&#8217;s raining a bit here, and there&#8217;s a lot of thunder</p>
<p>/me hides</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/07/03/its-good-when-things-dont-work/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
