<?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; Hardware</title>
	<atom:link href="http://andrewgee.org/blog/category/hardware/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>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>Soldering Clap Switches</title>
		<link>http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/</link>
		<comments>http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 14:50:23 +0000</pubDate>
		<dc:creator>Andrew Gee</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/</guid>
		<description><![CDATA[After watching recent Systm episodes, I decided that I would try and get into electronics. The most specific part that I decided I wanted to get into was the AVR programming. But before I get to that, I decided that it would be a good idea to learn how to solder first!

More pictures?
Off I went [...]]]></description>
			<content:encoded><![CDATA[<p>After watching <a href="http://revision3.com/systm/diggthedigg" target="_blank">recent</a> <a href="http://revision3.com/systm/avr101" target="_blank">Systm</a> <a href="http://revision3.com/systm/tools" target="_blank">episodes</a>, I decided that I would try and get into electronics. The most specific part that I decided I wanted to get into was the AVR programming. But before I get to that, I decided that it would be a good idea to learn how to solder first!</p>
<p style="border: 1px solid #000000; margin: 3px; padding: 3px; float: left"><a href="http://www.flickr.com/photos/11248771@N05/1080461907/" title="Photo Sharing" target="_blank"><img src="http://farm2.static.flickr.com/1368/1080461907_9e4e84f16c_m.jpg" alt="P1010028.JPG" border="0" height="180" width="240" /></a><br />
<a href="http://flickr.com/photos/11248771@N05/tags/electronics/" target="_blank">More pictures?</a></p>
<p>Off I went to a <a href="http://maplin.co.uk" target="_blank">Maplin</a> store. You walk into maplin and you are instantly greeted with millions of electronic things, of which I didn&#8217;t know what they were. Walking around there, for a while, I discovered some electronic kits. These &#8220;make your own&#8221; kits are manufactured by <a href="http://www.velleman.be/ot/en/engine.php" target="_blank">Velleman</a>, and I can recommend them.</p>
<p>So after browsing through the <a href="http://www.maplin.co.uk/family.aspx?menu=1702&amp;source=2003&amp;MenuName=Electronic%20Kits&amp;worldid=-2&amp;doy=11m8" target="_blank">many different kits</a>, I ended up choosing a Clap activated switch. Whilst I was there, I grabbed a soldering iron stand, as I already had the soldering iron + solder.</p>
<p style="border: 1px solid #000000; margin: 3px; padding: 3px; float: right"><a href="http://www.flickr.com/photos/11248771@N05/1080468379/" title="Photo Sharing" target="_blank"><img src="http://farm2.static.flickr.com/1096/1080468379_bebf723496_m.jpg" alt="P1010025.JPG" border="0" height="180" width="240" /></a><br />
<a href="http://flickr.com/photos/11248771@N05/tags/electronics/" target="_blank">More pictures?</a></p>
<p>Opening the kit presented me with millions (ok, 20) resistors, and a bunch of other electronic parts. Two days later, and the solder sucker having to be used occasionally, the kit was finished. One thing I forgot to purchase was a transformer to plug it in with. After visiting maplin I came home and found the transformer was faulty. It is one of those changeable voltage transformers. This one, however, would only work when set to 6 volts. After getting a replacement, finding that it was faulty too, buying a different one instead, I finally got the clap switch to work.</p>
<p>And am I surprised that it worked first time? Well&#8230; Yes!</p>
<p>And where will I go from here then? Read on&#8230;</p>
<p><span id="more-11"></span></p>
<p>As I mentioned earlier, I&#8217;d like to get into AVR programming. Unfortunately, there is no simple kit, like the Clap switch. The parts that they mentioned I should use, in that Systm episode on AVR programming, are quite hard to find in the UK. You can go ahead and use the digi-key site that Systm recommended. One problem with that though is the postage. £15 for shipping + £5 for handling!</p>
<p>Eeek! After a fair bit of searching, I decided to post a forum thread. The result turned up <a href="http://www.farnell.com/" target="_blank">Farnell</a>. I haven&#8217;t found out the postage yet. But I expect it can&#8217;t be as bad as Digi-key.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewgee.org/blog/2007/08/11/soldering-clap-switches/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>
	</channel>
</rss>
