<?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; wifi</title>
	<atom:link href="http://webworxshop.com/tag/wifi/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>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>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>

