<?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>Blogging to Nowhere &#187; ubuntu</title>
	<atom:link href="http://webworxshop.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://webworxshop.com</link>
	<description>cat /dev/brain &#62; /dev/null</description>
	<lastBuildDate>Wed, 04 Jan 2012 02:45:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>UALUG Fedora Article</title>
		<link>http://webworxshop.com/2010/08/03/ualug-fedora-article</link>
		<comments>http://webworxshop.com/2010/08/03/ualug-fedora-article#comments</comments>
		<pubDate>Mon, 02 Aug 2010 22:10:04 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[archlinux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[UALUG]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=222</guid>
		<description><![CDATA[Ahoy'hoy!

Anyone that follows my Identi.ca feed will probably be aware that I recently switched away from Ubuntu and Archlinux and over to Fedora. This was mainly due to frustrations with Arch (I need a system which lets me get stuff done without too much overhead in looking after it) and my increasing feeling that ...]]></description>
			<content:encoded><![CDATA[<p>Ahoy&#8217;hoy!</p>
<p>Anyone that follows my <a href="http://identi.ca/robconnolly">Identi.ca feed</a> will probably be aware that I recently switched away from <a href="http://ubuntu.com">Ubuntu</a> and <a href="http://archlinux.org">Archlinux</a> and over to <a href="http://fedoraproject.org">Fedora</a>. This was mainly due to frustrations with Arch (I need a system which lets me get stuff done without too much overhead in looking after it) and my increasing feeling that Ubuntu isn&#8217;t going in the right direction for me as a power user/developer.</p>
<p>I recently wrote an article on Fedora 13 for our University LUG &#8211; <a href="https://ualug.ece.auckland.ac.nz">UALUG</a> and I thought I&#8217;d post a link for readers of this blog. The article focuses on Fedora 13 as a platform for developers and basically details my own Fedora 13 setup. It&#8217;s written with the aim of advocating Fedora for people new to Linux, but it also serves of my review of the latest Fedora release.</p>
<p>Anyway here&#8217;s the link: <a href="https://ualug.ece.auckland.ac.nz/archives/246">https://ualug.ece.auckland.ac.nz/archives/246</a>.</p>
<p>Hopefully I should be posting some more interesting content here soon as I&#8217;ve been playing around with some interesting stuff. It&#8217;s just a matter of me finding time to write it up! Bye for now.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2010/08/03/ualug-fedora-article/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why This Apple Fanboyism Really Hacks Me Off!</title>
		<link>http://webworxshop.com/2010/04/06/why-this-apple-fanboyism-really-hacks-me-off</link>
		<comments>http://webworxshop.com/2010/04/06/why-this-apple-fanboyism-really-hacks-me-off#comments</comments>
		<pubDate>Tue, 06 Apr 2010 02:44:14 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[crapple]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[podcasts]]></category>
		<category><![CDATA[shotofjaq]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=203</guid>
		<description><![CDATA[Firstly, I apologise if this article isn't particularly well thought out or well worded. I just wanted to get this out there. Secondly, in the interests of keeping my blog clean, I've slightly censored some of the language I would have used. I'm sure you can use your imagination to fill in the blanks!

Is ...]]></description>
			<content:encoded><![CDATA[<p><em>Firstly, I apologise if this article isn&#8217;t particularly well thought out or well worded. I just wanted to get this out there. Secondly, in the interests of keeping my blog clean, I&#8217;ve slightly censored some of the language I would have used. I&#8217;m sure you can use your imagination to fill in the blanks!</em></p>
<p>Is it just me or has there been an increasing amount of Apple fanboyism around recently? This is really beginning to annoy me. Principally, because I just don&#8217;t care. Apple are completely irredeemable in my eyes, they are worse than Microsoft, but no-one seems to see this, whatever they do!</p>
<p>This is really hacking me off in the Open Source media, particularly on podcasts (I&#8217;m looking at you <a href='http://shotofjaq.org'>Shot of Jaq!</a>). Frankly, I don&#8217;t give a &lt;censored&gt; what Apple are doing, or what they might do in the future. I don&#8217;t listen to Open Source podcasts for this.</p>
<p>Then there&#8217;s Ubuntu, which seems to be moving closer and closer to the Mac in terms of looks (this isn&#8217;t necessarily a bad thing, but why can&#8217;t we be more inventive?). The Ubuntu community seems to be going<br />
this way too. In a <a href='http://podcast.ubuntu-uk.org/2010/03/31/s03e04-capturing-bad-bill/'>recent episode</a> of the <a href='http://podcast.ubuntu-uk.org/'>Ubuntu UK Podcast</a> the words &#8216;the Mac just works&#8217; were uttered. Hello! So does Ubuntu! (of course I can only speak from my experience, but I rarely if ever have problems).</p>
<p>As a solution to this growing epidemic, I propose a simple test which you should use if you are tempted to praise Apple in public, particularly in the Open Source media.</p>
<p>Simply answer the following five questions:</p>
<p>1. Name five pieces of Open Source software that Apple have contributed to the community.</p>
<p>2. Would you buy an iPhone over a Nexus One? Seriously?</p>
<p>3. Is the iPad even an original idea? (clue: <a href='http://s3.media.squarespace.com/production/467161/5278253/wp-content/uploads/2008/01/startrekpadd.jpg'>No</a>.)</p>
<p>4. If the Mac is so great, why is it so damned hard to use? Why can&#8217;t it be configured to work they way I want?</p>
<p>5. Do you like DRM? Apparently, <a href='http://www.engadget.com/2007/02/06/a-letter-from-steve-jobs-on-drm-lets-get-rid-of-it/'>neither does Steve</a>. Slightly hypocritical, don&#8217;t you think?</p>
<p>If you can&#8217;t answer these simple questions in Apple&#8217;s favour, KEEP STUM!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2010/04/06/why-this-apple-fanboyism-really-hacks-me-off/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring Arch Linux: Part 1</title>
		<link>http://webworxshop.com/2010/04/01/installing-and-configuring-arch-linux-part-1</link>
		<comments>http://webworxshop.com/2010/04/01/installing-and-configuring-arch-linux-part-1#comments</comments>
		<pubDate>Thu, 01 Apr 2010 04:52:04 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[archlinux]]></category>
		<category><![CDATA[archrob]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[beer]]></category>
		<category><![CDATA[crunchbang]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[identi.ca]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=168</guid>
		<description><![CDATA[OTHERWISE ENTILED: Rob tries to install Arch Linux some of the time, but really spends most of the time drinking beer.

Before I start: NO, UNLIKE EVERY OTHER ARTICLE ON THE WEB, PUBLISHED TODAY, THIS IS NOT A JOKE, K?!?

I've been looking for a new distro recently. I do this from time to time, principally ...]]></description>
			<content:encoded><![CDATA[<p><strong>OTHERWISE ENTILED: Rob tries to install Arch Linux some of the time, but really spends most of the time drinking beer.</strong></p>
<p><em>Before I start: NO, UNLIKE EVERY OTHER ARTICLE ON THE WEB, PUBLISHED TODAY, THIS IS NOT A JOKE, K?!?</em></p>
<p>I&#8217;ve been looking for a new distro recently. I do this from time to time, principally because I get bored of what I&#8217;m currently running. Last time it was <a href="http://crunchbanglinux.org">Crunchbang</a> which I settled on. This time I wanted to go more advanced, so I started researching <a href="http://www.archlinux.org">Arch Linux</a>.</p>
<p>For those that don&#8217;t know, Arch Linux describes itself as:</p>
<blockquote><p>&#8230;a lightweight and flexible Linux® distribution that tries to Keep It Simple.</p></blockquote>
<p>I&#8217;d heard about Arch in the past from several sources and had heard that you basically have to install and configure everything yourself, but that the package manager (awesomely named <a href="http://wiki.archlinux.org/index.php/Pacman">Pacman</a>!) manages software without having to compile from source (unless you want to!).</p>
<p>The following series of posts will be a record of my experiences installing and configuring Arch on my home desktop machine. This isn&#8217;t intended to be an exhaustive installation guide, more just a record of where I tripped up in order to aid those who come next. If you are searching for an installation guide, try the <a href="http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide">excellent article</a> on the <a href="http://wiki.archlinux.org">Arch Wiki</a>.</p>
<p>I&#8217;ve separated the post out into days. Note: it didn&#8217;t actually take me a full day for each part, I work during the day and only really had a couple of hours each evening to spend on this.</p>
<p><strong>Day 1: Backing Up</strong></p>
<p>Before installing I wanted to make sure I didn&#8217;t trash my existing Ubuntu system and all my personal data, as I still need to do all the stuff I usually do with my machine. So I made a backup.</p>
<p>I&#8217;m not really going to go into how. Suffice to say I used LVM snapshots and rsync, I might write about this in a future post.</p>
<p>This took a while, as I have quite a lot of data. I thought it best to have a beer in the mean time, so I did.</p>
<p><strong>Day 2: Making Space, Starting the Installation and Various Adventures with LVM</strong></p>
<p>The next thing to do was to resize my existing LVM partition containing Ubuntu so that I had space for Arch. I couldn&#8217;t work out how to do this at first as none of the partition tools I tried (GParted and Cfdisk) could resize the partition. I eventually worked out how to do it.</p>
<p>First, on my running Ubuntu system I resized the physical volume with:</p>
<p><code>$ pvresize --setphysicalvolumesize 500G /dev/sda1</code></p>
<p>This shrank the space used by LVM down to 500GB (from about 1000GB on my machine).</p>
<p>I then rebooted into the Arch live CD (64-bit edition in my case), and ran:</p>
<p><code>$ fdisk /dev/sda</code></p>
<p>Now what you have to do next is slightly alarming. You actually have to delete the partition and recreate it in the new size. This works, without destroying your data, because fdisk only manipulates the partition table on the disk, it doesn&#8217;t do any formatting of partitions, etc.</p>
<p>I did this through fdisk so that the partition was 501GB (making it a little bigger than the PV just to make sure). I then rebooted back into Ubuntu and ran:</p>
<p><code>$ pvresize /dev/sda1</code></p>
<p>To allow it to use all the space. This probably isn&#8217;t necessary but I wanted to be safe.</p>
<p>Next, I proceeded to the installation. For some reason the Arch boot CD was really slow to boot and gave me loads of read errors, I think this might have something to do with my drive as I&#8217;ve been experiencing the same with other disks. Eventually it booted and dropped my at the default prompt.</p>
<p>From then I basically followed the <a href="http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide">installation guide</a> for setting up the package source (CD) and the date and time.</p>
<p>I then set about partitioning the disks. The Arch installer uses Cfdisk, which is fine. I just added two partitions to my disk, a small (255Meg) one for my /boot partition and a large LVM one for the rest of the system (I like LVM and wanted to use it again on Arch).</p>
<p>This was fine, but I had some problems setting up the LVM through the installer, even though the user guide seems to think it can do it. Every time I tried, it would just fail on creating the Volume Group, weird.</p>
<p>I gave up for the evening and (you guessed it) went for a beer!</p>
<p><strong>Day 3: Successful Installation</strong></p>
<p>The next day I thought I&#8217;d try googling for LVM on Arch, luckily when I got in to work <a href="http://identi.ca/duffkitty">@duffkitty</a> on <a href="http://identi.ca">identi.ca</a> had seen one of my posts complaining about having problems and had given me a link to the <a href="http://wiki.archlinux.org/index.php/LVM">LVM article</a> on the Arch Wiki.</p>
<p>This advocated setting up the whole LVM setup manually (and guides you through it) and then just setting the partitions to use in the installer. It also gives you some important things to look out for when configuring the system. Following these instructions worked like a charm and I was able to format everything correctly and install the base system.</p>
<p>I then moved on to configuring the system, following the install guide and taking into account the instructions in the LVM article. Everything went pretty much fine here and I eventually got to installing the bootloader. Here I replaced the Ubuntu Grub version with the one installed by Arch. This left me having to add an entry for Ubuntu, which wasn&#8217;t difficult, I just copied the Arch one and changed the partition and file names.</p>
<p>Then it was time to &#8216;type reboot and pray&#8217; as the Arch installation guide puts it.</p>
<p>So I did.</p>
<p>When I rebooted the bootloader came up with the Arch and Ubuntu entries. I selected Ubuntu just to check everything was OK.</p>
<p>It didn&#8217;t work.</p>
<p>Panicking and Swearing Ensued.</p>
<p>I rebooted and selected Arch.</p>
<p>That worked (thankfully).</p>
<p>When it had booted I logged in and opened up the Grub config file again. it turned out I mis-typed the name of the Ubuntu initrd file, that was easily fixed. Rebooting got me safely back to Ubuntu.</p>
<p>So now I have a functioning dual boot between my original Ubuntu install and a very basic Arch install, I think I might need some software there!</p>
<p>But first&#8230; beer.</p>
<p><strong>So What&#8217;s Next???</strong></p>
<p>Well, firstly I need to get my network connection up and running as I didn&#8217;t do that during the install. It&#8217;s a Wifi connection over WPA so that&#8217;s going to be fun. Then I can start installing software. I&#8217;ll probably follow the <a href="http://wiki.archlinux.org/index.php/Beginners_Guide">Beginners Guide</a> on the Wiki (from Part 3). I was also recommended <a href="http://wiki.archlinux.org/index.php/Yaourt">Yaourt</a> by <a href="http://identi.ca/duffkitty">@duffkitty</a>, so I&#8217;ll give that a try.</p>
<p>I&#8217;ll be continuing to play with Arch over the next few days and reporting my progress in follow up posts here. I&#8217;ll also be denting as I go along and you can follow all of these on my <a href="http://identi.ca/tag/archrob">#archrob hash tag</a>.</p>
<p>There&#8217;ll probably be beer too.</p>
<p>We&#8217;ll see how it goes, but eventually I hope to have a system I can use full time.</p>
<p>Bye for now! Happy Easter!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2010/04/01/installing-and-configuring-arch-linux-part-1/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>UoA ECE Department ‘DonKey’ on Linux</title>
		<link>http://webworxshop.com/2010/01/29/uoa-ece-department-donkey-on-linux</link>
		<comments>http://webworxshop.com/2010/01/29/uoa-ece-department-donkey-on-linux#comments</comments>
		<pubDate>Thu, 28 Jan 2010 22:02:24 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[auckland]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[DonKey]]></category>
		<category><![CDATA[ECE]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[UoA]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=153</guid>
		<description><![CDATA[Introduction: Since finishing my Part IV Project, I've been threatening to do some embedded/microcontroller stuff in my spare time at home. I've now finally go around to it and I thought I'd start by playing with a few components I had left over from a Uni project a while back. I've also ordered an ...]]></description>
			<content:encoded><![CDATA[<p><em><strong>Introduction:</strong> Since finishing my Part IV Project, I&#8217;ve been threatening to do some embedded/microcontroller stuff in my spare time at home. I&#8217;ve now finally go around to it and I thought I&#8217;d start by playing with a few components I had left over from a Uni project a while back. I&#8217;ve also ordered an Arduino board (see below), but it hasn&#8217;t arrived yet. When it does, I think I&#8217;m going to have a go programming it in C rather than the random Arduino language, as I have much more experience of programming embedded systems than your average Arduino user. I&#8217;ll report on my progress when I have some!</em></p>
<p>In the Electrical and Computer Engineering Deaprtment of the University of Auckland, where I work we have a little device, internally known as the &#8216;DonKey&#8217;. The purpose of this is to allow easy programming of Atmel AVR based microcontrollers via USB, rather than the simpler serial interface. We also have some internally developed software to program microcontrollers via the device, unfortunately this software is pretty much windows only (we did have a successful attempt to compile it for Linux, but this was quite a while ago, a better solution would be to use a native Linux application).</p>
<p>Internally the DonKey uses an FTDI based USB to UART chip (specifically the FT232R) to communicate with the microcontroller. This presents some problems as, despite being the basis of the programmer on incredibly popular Arduino boards, the main Linux programming tool (AVRdude) has no official FTDI support. I think this is largely due to the use of a bootloader on the Arduino boards, which negates the need of the programming tool to directly flash the board. If however you brick the AVR on the Arduino, you would be out of luck and would need a physical programmer (more on this below).</p>
<div id="attachment_164" class="wp-caption aligncenter" style="width: 480px"><a href="http://blog.webworxshop.com/wp-content/uploads/2010/01/donkey.jpg"><img src="http://blog.webworxshop.com/wp-content/uploads/2010/01/donkey.jpg" alt="The DonKey" title="The DonKey" width="470" height="224" class="size-full wp-image-164" /></a><p class="wp-caption-text">The DonKey in all it's glory.</p></div>
<p>In this howto I&#8217;ll cover how to get the DonKey working on Linux with AVRdude. Luckily, while researching how I might go about this I found that a large part of the work had been done for me, due to the fact that the Arduino also uses these chips. I found instructions on <a href='http://doswa.com/blog/2009/12/20/avrdude-58-with-ftdi-bitbang-patch-on-linux/'>doswa.com</a> on how to patch and compile AVRdude for just this purpose (so you could flash a bootloader to a new AVR).</p>
<p>These instructions work quite well for the DonKey, up until you get to running the &#8216;./configure&#8217; command, I replaced this with:</p>
<p><code>$ ./configure --prefix=$HOME/.local</code></p>
<p>to setup the code to do a local install in my home directory (as I want this to be my primary version of AVRdude, but not to screw with things on the root filesystem).</p>
<p>Next I followed the instructions on modifiying the makefile and compiling AVRdude via the &#8216;make&#8217; command. After &#8216;make&#8217; I also typed:</p>
<p><code>$ make install</code></p>
<p>to install into the directory setup earlier. Now AVRdude is installed, the next thing to do is a bit of configuration, firstly you&#8217;ll want to make sure it&#8217;s on your $PATH so add the following to your ~/.bashrc file:</p>
<p><code>export PATH=$HOME/.local/bin:$PATH</code></p>
<p>and run the command:</p>
<p><code>$ source ~/.bashrc</code></p>
<p>to re-read the file.</p>
<p>The next issue is that you may wish to remove any copy of AVRdude that is otherwise installed (I found that sometimes my shell would run the wrong one &#8211; especially if you use &#8216;sudo&#8217; to run it):</p>
<p><code>sudo apt-get remove --purge avrdude</code></p>
<p>Now, I just mentioned above that you might use &#8216;sudo&#8217; to run AVRdude, well according to the doswa article you do need to use sudo when using the FTDI based programmers. I&#8217;m not sure why this is, but it&#8217;s not very useful if you want to be able to call AVRdude from a Makefile or the like.</p>
<p>I solved this by setting a &#8216;suid root&#8217; on my AVRdude binary. For those that don&#8217;t know what this is, the suid bit is a Unix permission setting that makes any program with it run under it&#8217;s owning user rather than the user who called it. If the owner happens to be root, the program runs as root even if the user who calls it isn&#8217;t. This is probably really insecure if you do it a lot, but you should be OK in this case.</p>
<p><b>WARNING: Despite what I say, it might not be OK. Allowing any program unrestricted root access has the potential to hose your system and scatter all your data to the winds. FOLLOW THESE INSTRUCTIONS AT YOUR OWN RISK!!</b></p>
<p>So here we go:</p>
<p><code>$ sudo chown root:root ~/.local/bin/avrdude<br />
$ sudo chmod u+s ~/.local/bin/avrdude</code></p>
<p>Now you should be able to successfully run AVRdude on FTDI based devices without resorting to using sudo every time.</p>
<p>But, what of the DonKey I hear you cry! Well all we have to do to support the DonKey is give AVRdude a little bit of configuration which tells it what the DonKey actually is. This can go in ~/.avrduderc, and looks a bit (well exactly) like this:</p>
<p><code>programmer<br />
  id    = "donkey";<br />
  desc  = "University of Auckland ECE DonKey";<br />
  type  = ft245r;<br />
  miso  = 1; # D1<br />
  sck   = 2; # D2<br />
  mosi  = 3; # D3<br />
  reset = 4; # D4<br />
;</code></p>
<p>OK, now you should be able to successfully use the DonKey with AVRdude, using a command similar to this:</p>
<p><code>avrdude -c donkey -p m8 -P ft0 -U myawesomeavrproject.hex</code></p>
<p><em>Note: this command is for the ATMega8 as denoted by the &#8216;-p m8&#8242;, check the AVRdude manual page for the correct -p option if you are using a different type of AVR.</em></p>
<p>OK, well that&#8217;s pretty much it, I&#8217;ll post back soon regarding my other progress with some microcontroller stuff. Bye for now!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2010/01/29/uoa-ece-department-donkey-on-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Online Filesystem Resizing with LVM</title>
		<link>http://webworxshop.com/2009/10/10/online-filesystem-resizing-with-lvm</link>
		<comments>http://webworxshop.com/2009/10/10/online-filesystem-resizing-with-lvm#comments</comments>
		<pubDate>Fri, 09 Oct 2009 23:45:27 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[crunchbang]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=134</guid>
		<description><![CDATA[I use LVM on my main desktop machine. This is awesome because it allows me to dynamically allocate space to partitions as I choose, however I always forget how to do a resize, so I'm going to write it down here. This isn't going to be a full LVM tutorial (there's plenty of material ...]]></description>
			<content:encoded><![CDATA[<p>I use LVM on my main desktop machine. This is awesome because it allows me to dynamically allocate space to partitions as I choose, however I always forget how to do a resize, so I&#8217;m going to write it down here. This isn&#8217;t going to be a full LVM tutorial (there&#8217;s plenty of material out there for that), although maybe that&#8217;s an idea for the future.</p>
<p>The following commands will resize an ext2, ext3, or ext4 filesystem running on LVM while it is mounted:</p>
<p><code>$ sudo lvresize -L +XXG &lt;path to fs device&gt;</code><br />
<code>$ sudo resize2fs &lt;path to fs device&gt;</code></p>
<p>In the above command you need to replace XX with the number of GB you want the filesystem to grow by and &lt;path to fs device&gt; by the device node (typically /dev/mapper/something).</p>
<p>An there you have it, done! Obviously there is a huge amount more you can do with the two tools above, take a look at their man pages for more info.</p>
<p>Hopefully this post will save me from having to work out how to do this every time!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2009/10/10/online-filesystem-resizing-with-lvm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Turnitin follow up&#8230;</title>
		<link>http://webworxshop.com/2009/10/08/turnitin-follow-up</link>
		<comments>http://webworxshop.com/2009/10/08/turnitin-follow-up#comments</comments>
		<pubDate>Thu, 08 Oct 2009 06:53:17 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[crap]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[turnitin]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=128</guid>
		<description><![CDATA[Well it's been a couple of days since I posted my rant about my bad experience with turnitin.com on Ubuntu and (shock horror!) I've had a response (thus defying the title of this blog).

The responder was Stephen Sharon via Twitter, he's written a paper around some of the legal concerns over turnitin and he ...]]></description>
			<content:encoded><![CDATA[<p>Well it&#8217;s been a couple of days since I posted my <a href="http://blog.webworxshop.com/2009/10/06/turnitin-com_wtf">rant about my bad experience</a> with <a href="http://turnitin.com">turnitin.com</a> on <a href="http://ubuntu.com">Ubuntu</a> and (shock horror!) I&#8217;ve had a response (thus defying the title of this blog).</p>
<p>The responder was <a href="http://twitter.com/ssharon27">Stephen Sharon</a> via <a href="http://http://twitter.com/robconnolly">Twitter</a>, he&#8217;s written a paper around some of the legal concerns over turnitin and he sent me the <a href="http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=1259310">link</a>. It&#8217;s good reading and confirms some of the things I had heard surrounding the site. I&#8217;d encourage everyone reading this to click through and read Stephen&#8217;s paper (it&#8217;s 38 pages, but double spaced and with much of each page containing references).</p>
<p>I&#8217;m not qualified to give legal comment on tunitin (I&#8217;m an Engineer not a Lawyer), but I will give my opinion. Before I do I&#8217;d like to give the following disclaimer (in true <a href="http://www.softwarefreedom.org/podcast/">Software Freedom Law Show</a> style):</p>
<p><strong>WARNING: The following DOES NOT (in any way, shape or form) constitute legal advice, it is only my own (perhaps misguided) opinion. I would urge anyone who has any concerns over how their data may have been used by Turnitin to contact someone who actually knows what they a talking about, in this case A LAWYER!</strong></p>
<p>Basically, I think Turnitin is on pretty shaky legal ground both in terms of Copyright and Privacy (certainly under US law). Here in New Zealand we have different privacy laws, but I&#8217;m sure they probably say much the same thing. The copyright issues are also concerning, I don&#8217;t want to turn over my rights to Turnitin just so I can submit my paper. What if my assignment gave technical details of an invention which I may in future have some financial interest in. Turnitin would have the right to use that information as they see fit.</p>
<p>Realistically I think it&#8217;s only a matter of time before Turnitin is taken to court again to face a hard examination of their user agreement, etc. This whole thing brings me back onto the subject of <a href="http://www.gnu.org/philosophy/free-sw.html">Free Software</a>. I think it really is important for these tools which have such important uses to be Free (as in speech), it would be great to see a <a href="http://autonomo.us/">Free Network Service</a> replace Turnitin as the dominant player in this market. I would much rather trust that to be transparent and honest than a company driven by profit and market share.</p>
<p>Anyway that&#8217;s just my $0.02. Before I finish I&#8217;ll encourage you all again to read <a href="http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=1259310">Stephen&#8217;s paper</a>.</p>
<p>Bye!</p>
<p class="wp-flattr-button"></p> <p><a href="http://webworxshop.com/?flattrss_redirect&amp;id=128&amp;md5=3085a0108ba398bff7d79cdd5c9e9ebb" title="Flattr" target="_blank"><img src="http://webworxshop.com/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2009/10/08/turnitin-follow-up/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Turnitin.com, wtf?</title>
		<link>http://webworxshop.com/2009/10/06/turnitin-com_wtf</link>
		<comments>http://webworxshop.com/2009/10/06/turnitin-com_wtf#comments</comments>
		<pubDate>Mon, 05 Oct 2009 20:41:22 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[crap]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[turnitin]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[UoA]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=106</guid>
		<description><![CDATA[Sorry about this but I really have to say something about this. We had to submit an assignment yesterday via turnitin.com and it broke on me because I wasn't using a 'supported operating system', I was using Ubuntu.

When I logged in I got a message warning me that it might not work, but I ...]]></description>
			<content:encoded><![CDATA[<p>Sorry about this but I really have to say something about this. We had to submit an assignment yesterday via <a href="http://turnitin.com">turnitin.com</a> and it broke on me because I wasn&#8217;t using a &#8216;supported operating system&#8217;, I was using <a href="http://ubuntu.com">Ubuntu</a>.</p>
<p>When I logged in I got a message warning me that it might not work, but I honestly don&#8217;t see the reason why. Shouldn&#8217;t it just be browser specific, not OS specific? I then proceeded to upload my PDF and it seemed to think it actually wasn&#8217;t a PDF! Switching to a Windows XP machine and uploading the same PDF worked fine which is the really random thing.</p>
<p>I don&#8217;t even see why <a href="http://www.auckland.ac.nz">our University</a> has to use a third party service for this anyway, I&#8217;m sure they have the resources to do this in house. Then there is the whole <a href="http://http://en.wikipedia.org/wiki/Turnitin#Possible_violation_of_student_copyright">copyright</a> thing, which I&#8217;m not altogether happy with either.</p>
<p>Anyway, at least it seems Ubuntu isn&#8217;t alone in this, according to a friend Windows 7 also triggers the same error message (albeit without the PDF fail).</p>
<p>Again, sorry for the rant.</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2009/10/06/turnitin-com_wtf/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Even easier netboot installation…</title>
		<link>http://webworxshop.com/2009/06/24/even-easier-netboot-installation</link>
		<comments>http://webworxshop.com/2009/06/24/even-easier-netboot-installation#comments</comments>
		<pubDate>Wed, 24 Jun 2009 02:12:16 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[netboot]]></category>
		<category><![CDATA[pxe]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=94</guid>
		<description><![CDATA[A while ago I covered netbooting/installation on ubuntu, well I've now found an even easier way to do this! It's probably the easiest way to go about this as it really only involves editing one config file. Some of the info here comes from the official Ubuntu documentation on this, though my approach is ...]]></description>
			<content:encoded><![CDATA[<p>A while ago I covered <a href="/2009/02/09/pxe-netinstalling-for-simpletons">netbooting/installation on ubuntu</a>, well I&#8217;ve now found an even easier way to do this! It&#8217;s probably the easiest way to go about this as it really only involves editing one config file. Some of the info here comes from the <a href="https://help.ubuntu.com/community/Installation/Netboot">official Ubuntu documentation</a> on this, though my approach is actually easier, since you don&#8217;t need a separate tftp server.</p>
<p>The main piece of software you will need is dnsmasq, which you can install with the command:</p>
<p><code>sudo apt-get install dnsmasq</code></p>
<p>I already had this installed as I&#8217;m using it as a DNS cache for my network (which is also pretty useful). It turns out that dnsmasq is a bit of a &#8216;swiss army knife&#8217;, it can do DHCP, DNS and TFTP all together and very easily. You should edit the config file:</p>
<p><code>sudo nano /etc/dnsmasq.conf</code><span id="more-94"></span></p>
<p>And add/uncomment/edit the following lines:</p>
<p><code>dhcp-range=192.168.1.3,192.168.1.50,12h # sets the ip address range and update frequency for the network<br />
dhcp-boot=pxelinux.0 # set up network booting to boot the pxelinux bootloader<br />
enable-tftp # enable built in tftp server<br />
tftp-root=/var/tftpd # set tftp directory</code></p>
<p>Basically this sets up dnsmasq to be both the DHCP server for the network and push the PXE boot options out over the network. It also enables the built in TFTP server in dnsmasq and sets the directory to serve files from.</p>
<p>The next step is to get some files to serve, I got the PXE/netboot image from the Ubuntu <a href="http://cdimage.ubuntu.com/netboot/">cdimages</a> site, and untarred the files to the correct directory:</p>
<p><code>wget http://archive.ubuntu.com/ubuntu/dists/jaunty/main/installer-i386/current/images/netboot/netboot.tar.gz<br />
sudo mkdir -p /var/tftp<br />
tar -xvzf netboot.tar.gz -C /var/tftp/<br />
chown -R nobody:nogroup /var/tftp</code></p>
<p>The tar file of course is basically just the minimal install CD, set up for netbooting, so when you install you will need to download all the packages, for a simple cli install this doesn&#8217;t take very long, and you can use a package cache or something to help with future installs.</p>
<p>OK, now restart dnsmasq:</p>
<p><code>sudo /etc/init.d/dnsmasq restart</code></p>
<p>&#8230;and you should be good to go (make sure that your machine is the only DHCP server on the network). For tips on booting clients see my <a href="/2009/02/09/pxe-netinstalling-for-simpletons">original article</a> &#8211; btw, since I used the new version of Ubuntu I can now boot my Eee PC 901 over the network!</p>
<p>If you have any questions or problems with this I&#8217;d be happy to answer them, just post them below.</p>
<p>Bye for now!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2009/06/24/even-easier-netboot-installation/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Quickly change Debian repositories</title>
		<link>http://webworxshop.com/2009/06/03/quickly-change-debian-repositories</link>
		<comments>http://webworxshop.com/2009/06/03/quickly-change-debian-repositories#comments</comments>
		<pubDate>Wed, 03 Jun 2009 08:30:30 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[UoA]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=82</guid>
		<description><![CDATA[Apt is awesome. Plain and simple.

But it is kinda static. By this I mean it's not particularly suited to environments where things change frequently. For example, we have a local mirror at uni, which of course it much faster than using the external Ubuntu or Debian ones, however as this is only available from ...]]></description>
			<content:encoded><![CDATA[<p>Apt is awesome. Plain and simple.</p>
<p>But it is kinda static. By this I mean it&#8217;s not particularly suited to environments where things change frequently. For example, we have a local mirror at uni, which of course it much faster than using the external Ubuntu or Debian ones, however as this is only available from internal University of Auckland IP addresses I would have to change my /etc/apt/sources.list file if I wanted to install something from home.</p>
<p>Today I knocked together a quick Python script to fix this, all it does is basically manipulate a symlink which points to the real /etc/apt/sources.list file, but I thought I&#8217;d share it anyway:<span id="more-82"></span></p>
<p><code>#!/usr/bin/env python<br />
import sys, os<br />
def usage():<br />
print "Usage: %s " % (sys.argv[0],)<br />
def main(argv):<br />
if argv[1] != None:<br />
sources_path = "/etc/apt/sources.list.%s" % (argv[1],)<br />
if os.path.exists(sources_path):<br />
os.unlink("/etc/apt/sources.list")<br />
os.symlink(sources_path, "/etc/apt/sources.list")<br />
print "SUCCESS: Don't for get to run 'sudo apt-get update'"<br />
return 0<br />
else:<br />
print "ERROR: Unknown repository set '%s'" % (argv[1],)<br />
usage()<br />
else:<br />
usage()<br />
return 1<br />
if __name__ == '__main__':<br />
sys.exit(main(sys.argv))</code></p>
<p>Unfortunately wordpress screwed with my formatting there (which kinda matters in a python script) so here is the file (<a href="http://blog.webworxshop.com/wp-content/uploads/2009/06/repo-switch.py">repo-switch.py</a>). You&#8217;ll need to download it and put it somewhere in your $PATH. Then make it execuatable:</p>
<p><code>chmod +x repo-switch.py</code></p>
<p>The next step is to set up your lists of repositories. Each list will have a suffix which the script will use to identify it. First I copied my main repositories (for the NZ Ubuntu mirrors):</p>
<p><code>sudo cp /etc/apt/sources.list /etc/apt/sources.list.nz</code></p>
<p>Obviously replace &#8216;nz&#8217; with a suffix of your choice. Then I dropped the list of repos for the local mirror into another file (in my case /etc/apt/sources.list.ece). You can set up as many different sets as you like, but I only need two.</p>
<p>Next step is to practice switching between them:</p>
<p><code>sudo repo-switch.py nz</code></p>
<p>&#8230;sets apt to use the file /etc/apt/sources.list.nz by changing /etc/apt.sources.list to a symlink pointing to the relevant place. Calling the script again with a different set (e.g. &#8216;ece&#8217; in my case) will set it up to use one of your other sets.</p>
<p>Obviously, you&#8217;ll need to run &#8216;sudo apt-get update&#8217; each time to make apt work with the new repos, but I added a line to the script to remind you!</p>
<p>Magic!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2009/06/03/quickly-change-debian-repositories/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A mobile electronic survey unit – A.K.A. A Cunning Use for Netbooks</title>
		<link>http://webworxshop.com/2009/04/17/a-mobile-electronic-survey-unit-aka-a-cunning-use-for-netbooks</link>
		<comments>http://webworxshop.com/2009/04/17/a-mobile-electronic-survey-unit-aka-a-cunning-use-for-netbooks#comments</comments>
		<pubDate>Thu, 16 Apr 2009 23:56:20 +0000</pubDate>
		<dc:creator>Rob Connolly</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[acer aspire one]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://blog.webworxshop.com/?p=70</guid>
		<description><![CDATA[Hi, it's been a while since I've posted anything here, mainly because I've been incredibly busy with Uni and work and haven't had time for hacking on anything interesting at home. However, I'm going to tell you about a really interesting and quite novel use for netbooks that I've been setting up at work, ...]]></description>
			<content:encoded><![CDATA[<p>Hi, it&#8217;s been a while since I&#8217;ve posted anything here, mainly because I&#8217;ve been incredibly busy with Uni and work and haven&#8217;t had time for hacking on anything interesting at home. However, I&#8217;m going to tell you about a really interesting and quite novel use for netbooks that I&#8217;ve been setting up at work, hopefully someone else will find it useful and use it in a similar way&#8230;</p>
<p>A while ago my boss came to me with an idea. He wanted to purchase a number of netbooks and install <a href="http://www.limsurvey.org">LimeSurvey</a> on each of them to be used as a mobile survey unit, that could be taken to schools, colleges, workplaces, etc. and used to collect data for research projects. I pointed out that if we were to install LimeSurvey on all the netbooks each would need an individual webserver and MySQL server, which apart from being a lot of effort would fragment the dataset and make it much more difficult to collect the data together.</p>
<p>Hence, I suggested that we setup one of the machines as the server and set it&#8217;s built-in Wifi to work as an access point for the others so they could access the server. This means that no external network access is required, you carry the server with you!<span id="more-70"></span></p>
<p>Well, today the netbooks arrived (we ended up with <a href="http://en.wikipedia.org/wiki/Acer_Aspire_One">Acer Aspire One</a>s in the end). So I set about configuring one to be our server. This model came with Windows XP pre-installed (not sure if you can get a Linux version), but also had a 160GB hard drive. My instinct was to install Ubuntu Server as it has an option to deploy a LAMP server out of the box (which is awesome and would have saved me loads of time). So I downloaded it from our local mirror and flashed the iso to my usbstick with <a href="http://en.wikipedia.org/wiki/Unetbootin">Unetbootin</a>, which I hadn&#8217;t used before. I booted from the usbstick and everything went well until I got to the &#8216;detect CDROM drives&#8217; bit &#8211; which usually detects the usbstick as containing the files from the iso. Not so here, no matter what I tried it wouldn&#8217;t be convinced that the usbstick was a CDROM!</p>
<p>So, I fell back to what I have previously used, <a href="http://download.ubuntu-fr-secours.org/isotostick.sh">Isotostick</a>, a nice little shell script thats always done this well for me. Same problem.</p>
<p>Turns out the problem is with the server and alternate isos of Ubuntu, which don&#8217;t contain the correct FAT driver for loading the installation packages from a usbstick. There is a workaround for this, <a href="https://help.ubuntu.com/community/UbuntuServerFlashDriveInstaller">here</a>, but I couldn&#8217;t get it to work. So, I decided to use the Ubuntu Desktop version (thank God our mirror is internal to the university!). I realised later that this had the advantage that the server could also be used as a client and the server software would be invisible to the user.</p>
<p>So I installed that. Which went fine as you&#8217;d expect. When I rebooted after the install I found that the wifi didn&#8217;t work. A quick google turned up a <a href="https://help.ubuntu.com/community/AspireOne#Install%20Ubuntu%20Intrepid%20Ibex%208.10%20on%20the%20Acer%20Aspire%20One">page</a> which gave instructions on how to install the latest madwifi driver from source, which I did, though I had to manually dig up build-essential (and dependancies) from the /pool folder on my usbstick and install them with dpkg as I couldn&#8217;t get it to recognise the usbstick as an apt repository. I wouldn&#8217;t have had this problem if I&#8217;d have had a wired connection on the machine though.</p>
<p>Then I set about installing the packages required to turn it into a server:</p>
<p><code>$ sudo apt-get install apache2 phpmyadmin mysql-server dhcp3-server bridge-utils</code></p>
<p>I&#8217;m not sure whether the bridge-utils package is strictly required, but I installed it anyway. It doesn&#8217;t do any harm as it&#8217;s only a few kB to download. If you are following this as a howto and are only using the Wifi as your net connection (as I was), make sure you install all of this now as later on you&#8217;ll lose your connection when we setup the Wifi to be an access point. If you&#8217;re on ethernet, you&#8217;ll be able to keep your connection (but see later).</p>
<p>Installing those packages took a while over the Wifi, so while it was going on I downloaded and installed LimeSurvey. I don&#8217;t really need to say how to do that as it&#8217;s all documented on <a href="http://docs.limesurvey.org/tiki-index.php?page=Installation&amp;structure=">their site</a>. I unpacked it to /var/www/survey on the server and configured it as per the instructions. Once I had all the packages above installed I was able to create a database and user through phpmyadmin and run the LimeSurvey installation script. Pretty much the same as installing any other PHP app.</p>
<p>Next came the wifi setup, I played around for a while trying to get this working, but I think the following is probably the best course to take in setting this up. You need to start by putting the wireless adapter into access point/master mode, you do this (for the atheros card used in the Aspire One) by editing/creating the /etc/modprobe.d/madwifi file (documented <a href="https://help.ubuntu.com/community/WifiDocs/MasterMode#Atheros%20(Madwifi)">here</a>):</p>
<p><code>$ sudo nano /etc/modprobe.d/madwifi</code></p>
<p>The file contents should be:</p>
<p><code>options ath_pci autocreate=ap</code></p>
<p>Then reload the kernel module:</p>
<p><code>$ sudo modprobe ath_pci</code></p>
<p>You&#8217;re then ready to reconfigure the network interfaces, if you type iwconfig, you should see that the ath0 device now has the capability to act as an access point. To setup the access point you need to edit the network interfaces file:</p>
<p><code>$ sudo nano /etc/network/interfaces</code></p>
<p>The contents of my file were as follows:</p>
<p><code>auto lo</code></p>
<p>iface lo inet loopback</p>
<p># uncomment the following two lines if you&#8217;re on ethernet and you want to still have a connection once you restart the networking!</p>
<p>#auto eth0</p>
<p>#iface eth0 inet dhcp</p>
<p>auto ath0</p>
<p>iface ath0 inet static</p>
<p>wireless-mode master</p>
<p>wireless-essid my-access-point</p>
<p>address 192.168.1.1</p>
<p>network 192.168.1.0</p>
<p>netmask 255.255.255.0</p>
<p>broadcast 192.168.1.255</p>
<p>This sets up the network interface acting as an access point with name &#8216;my-access-point&#8217; and assigns the local machine a static address of 192.168.1.1 on the network. To reload the configuration, do this:</p>
<p><code>$ sudo /etc/init.d/networking restart</code></p>
<p>Note: at this point you will lose &#8216;outgoing&#8217; wifi connectivity as your adapter is now acting as an access point!</p>
<p>Now, if you boot up another machine with Wifi, you should be able to see the &#8216;my-access-point&#8217; network in the list of available networks. However, connecting to it won&#8217;t currently work as you won&#8217;t be able to get an IP address, this is where the DHCP server, which we installed earlier, comes in.</p>
<p>In order to set this up we first need to tell it to listen for DHCP requests on the correct interface, in our case ath0. We do this by editing the /etc/default/dhcp3-server file to look like this:</p>
<p><code># Defaults for dhcp initscript</code></p>
<p># sourced by /etc/init.d/dhcp</p>
<p># installed at /etc/default/dhcp3-server by the maintainer scripts</p>
<p>#</p>
<p># This is a POSIX shell fragment</p>
<p>#</p>
<p># On what interfaces should the DHCP server (dhcpd) serve DHCP requests?</p>
<p>#	Separate multiple interfaces with spaces, e.g. &#8220;eth0 eth1&#8243;.</p>
<p>INTERFACES=&#8221;ath0&#8243;</p>
<p>Next we setup the DHCP server to dish out addresses to the clients on out network, edit the file /etc/dhcp3/dhcpd.conf to have an entry like the following:</p>
<p><code>subnet 192.168.1.0 netmask 255.255.255.0 {</code></p>
<p>range 192.168.1.100 192.168.1.200;</p>
<p>option domain-name-servers 192.168.1.1;</p>
<p>option domain-name &#8220;mynetwork.local&#8221;;</p>
<p>option routers 192.168.1.1;</p>
<p>option broadcast-address 192.168.1.255;</p>
<p>default-lease-time 600;</p>
<p>max-lease-time 7200;</p>
<p>}</p>
<p>I don&#8217;t know whether all those options are definitely needed, but this configuration works. I think you could probably get away without the routers and name servers, as these won&#8217;t exist on this small standalone network.</p>
<p>OK, now start up the DHCP server and you should be in business:</p>
<p><code>$ sudo /etc/init.d/dhcp3 start</code></p>
<p>Assuming that works OK, try connecting to the &#8216;my-access-point&#8217; network from another machine, it should work (if it doesn&#8217;t or you can&#8217;t see the network, try rebooting the server machine).</p>
<p>Once you&#8217;ve successfully connected you should be able to browse pages hosted on the server at http://192.168.1.1, so my LimeSurvey install would be at http://192.168.1.1/survey. Now you have a portable server that you can take round to serve web apps to machines in the vicinity! Awesome!</p>
<p>That just covers the server part of what I have planned for these small netbooks, my ultimate aim is to set them all up running Ubuntu with a lightweight desktop and Firefox started automatically in Kiosk mode (thanks to the <a href="https://addons.mozilla.org/en-US/firefox/addon/1659">R-Kiosk</a> addon). This will give us ten little survey machines which will just &#8216;boot&#8217; into Firefox and go to the LimeSurvey page. I&#8217;ll post details of that setup once I&#8217;ve done it, but for now that&#8217;s all! Bye!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://webworxshop.com/2009/04/17/a-mobile-electronic-survey-unit-aka-a-cunning-use-for-netbooks/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

