<?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>kevingillan.info &#187; linux</title>
	<atom:link href="http://www.kevingillan.info/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kevingillan.info</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 16:06:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Start/Stop LAMP in Ubuntu 10.4</title>
		<link>http://www.kevingillan.info/techblog/141</link>
		<comments>http://www.kevingillan.info/techblog/141#comments</comments>
		<pubDate>Wed, 27 Oct 2010 15:48:36 +0000</pubDate>
		<dc:creator>kev</dc:creator>
				<category><![CDATA[Techblog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.kevingillan.info/?p=141</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Start%2FStop+LAMP+in+Ubuntu+10.4&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2010-10-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/141&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Start%2FStop+LAMP+in+Ubuntu+10.4&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2010-10-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/141&amp;rft.language=English"></span>
I occasionally want a local web server on my netbook for fiddling around, but don&#8217;t want it running on start up. So, using the following steps I removed it from the start up list and created a launcher button to start and stop apache and mysql. 1. Remove from startup list: $sudo update-rc.d apache remove [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Start%2FStop+LAMP+in+Ubuntu+10.4&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2010-10-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/141&amp;rft.language=English"></span>
<p>I occasionally want a local web server on my netbook for fiddling around, but don&#8217;t want it running on start up. So, using the following steps I removed it from the start up list and created a launcher button to start and stop apache and mysql.</p>
<p>1. Remove from startup list:</p>
<p><code>$sudo update-rc.d apache remove<br />
$gksu gedit /etc/init/mysql.conf</code></p>
<p>In your text editor look for the lines with start up information and comment them out by adding a hash at the beginning of each line.</p>
<p>2. Write simple start script</p>
<p><code>$gksu gedit /usr/local/bin/lampstart</code><br />
In your text editor paste the following code:<br />
<code>#/bin/bash<br />
sudo /usr/sbin/apache2ctl start<br />
sudo service mysql start<br />
</code><br />
Save and exit</p>
<p>3. Write simple stop script<br />
<code>$gksu gedit /usr/local/bin/lampstop</code><br />
In your text editor paste the following code:<br />
<code>#/bin/bash<br />
sudo /usr/sbin/apache2ctl stop<br />
sudo service mysql stop<br />
</code><br />
Save and exit</p>
<p>4. Make scripts executable and update db<br />
<code>$sudo chmod +x /usr/local/bin/lampstart<br />
$sudo chmod +x /usr/local/bin/lasr/mpstop<br />
$sudo updatedb<br />
</code></p>
<p>5. Make launcher icons<br />
Go to System-&gt;Preferences-&gt;Main Menu<br />
In the left pane select the application group for the icons<br />
Click &#8216;New Item&#8217;<br />
Enter the following details:<br />
Type: Application in Terminal<br />
Name: Start LAMP<br />
Command: /usr/local/bin/lampstart<br />
Comment: Starts Apache and mysql<br />
Optionally click the icon in the top left and look for a nice pic, I found suitable ones in /usr/share/icons/hicolor/48&#215;48/apps</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevingillan.info/techblog/141/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Six Tips for Linux Happiness</title>
		<link>http://www.kevingillan.info/techblog/127</link>
		<comments>http://www.kevingillan.info/techblog/127#comments</comments>
		<pubDate>Sun, 06 Dec 2009 16:59:47 +0000</pubDate>
		<dc:creator>kev</dc:creator>
				<category><![CDATA[Techblog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.kevingillan.info/?p=127</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Six+Tips+for+Linux+Happiness&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/127&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Six+Tips+for+Linux+Happiness&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/127&amp;rft.language=English"></span>
So, you&#8217;re starting to be convinced of the benefits of linux? Keen to experience the increased speed and power and to try out some of the thousands of pieces of free software available? Like the thought of being secure from viruses and spyware? But still a little attached to your Windows operating system? Here&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Six+Tips+for+Linux+Happiness&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/127&amp;rft.language=English"></span>
<p>So, you&#8217;re starting to be convinced of the benefits of linux? Keen to experience the increased speed and power and to try out some of the thousands of pieces of free software available? Like the thought of being secure from viruses and spyware? But still a little attached to your Windows operating system? Here&#8217;s a few tips for making the best of both worlds.</p>
<p><span id="more-127"></span></p>
<p><strong>1. Use Ubuntu</strong></p>
<p>There are loads of distributions available and it may be difficult to make a decision. Ubuntu has rapidly become the most popular and this must be due in part to its ease of installation and use for newcomers. So why not follow the crowd and try Ubuntu first? Go on, <a title="get ubtunu" href="http://www.ubuntu.com/GetUbuntu/download" target="_blank">go and download the latest release</a>.</p>
<p><strong>2. Dual boot Windows/OSX and Linux</strong></p>
<p>Dual booting means that when you power on your machine you get a choice of going into either of two or more operating systems. There are lots of articles around on how to set up a dual-boot machine <a title="dual boot windows xp and ubuntu" href="https://help.ubuntu.com/8.04/switching/dualboot.html" target="_blank">with XP</a>, or <a title="dual boot windows 7 and ubuntu" href="http://lifehacker.com/5403100/dual+boot-windows-7-and-ubuntu-in-perfect-harmony" target="_blank">with Windows 7</a>, or <a title="dual boot osx and ubuntu" href="http://www.philroche.net/archives/osx-and-ubuntu-dual-boot/" target="_blank">with OSX</a>. My own experience is dual booting Windows XP Pro and various versions of Ubuntu, Fedora, OpenSuse and whatever else took my fancy at the time. The obvious benefit is that you have all your familiar applications there, and you can take your time learning linux without jumping in at the deep end and having to learn everything at once. Remember:</p>
<ul>
<li>If starting with a clean computer install Windows first (the same seems to go for OSX). Windows isn&#8217;t designed to play well with other operating systems. Ubuntu certainly is.</li>
<li>If you&#8217;ve already got Windows installed:
<ul>
<li>Backup everything. Time-consuming, yes. But there are dangers in the install process, especially the first time you do it, so don&#8217;t leave anything to chance. Remember to backup data that is stored by your applications in locations other than My Documents. Some applications have decent data export tools; for others you may need to search through folders within C:\Documents and Settings\your-user-profile, such as &#8216;Application Data&#8217; and &#8216;Local Settings&#8217;.</li>
<li>Clean up your Windows install. Most important is to <a title="defrag hard disk windows xp" href="http://support.microsoft.com/kb/314848" target="_blank">defragment your hard disk</a>. Your files are scattered across the disk, especially if you&#8217;ve been using the operating system a while. Your Ubuntu installation may require moving a lot of that mess into one place to make room for your new OS. Get XP to do it first so that it can keep track of where everything is stored. It is probably also useful to use a utility like <a title="Get CCleaner" href="http://www.filehippo.com/download_ccleaner/" target="_blank">CCleaner</a> to get rid of temporary files and oodles of accumulated crap.</li>
<li>Make sure you&#8217;ve got access to a proper install/restore disk for your pre-existing operating system.</li>
</ul>
</li>
</ul>
<p>An alternative to dual booting is virtualization. Installing a program like VBox-OSE on Ubuntu lets you install a full copy of Windows or OSX operating systems plus your favourite applications right inside Ubuntu. There&#8217;s clearly a benefit here of not having to reboot to use other programmes but there&#8217;s a penalty in the speed your applications run.</p>
<p><strong>3. Separate Data and Software</strong></p>
<p>If you are dual booting it makes sense to put all of your data on a separate partition that can be accessed and written to by both operating systems. But even if you&#8217;re not dual booting, keeping your data separate may make operating system upgrades easier and lets you experiment with confidence. Keeping your data separate is more secure and if anything goes wrong you can simply insert a linux live CD to get a temporary operating system and get straight to your data. Points to bear in mind:</p>
<ul>
<li>You can use the linux utility gparted to create additional hard disk partitions. Its not included in a default Ubuntu install (although you can get it easily through the System-&gt;Administration-&gt;Synaptic Package Manager). It is included on an Ubuntu live CD though. I prefer to use it from a live CD &#8211; that means you&#8217;re not using any of the hard disk for running the OS so you can easily change any of the existing partitions.</li>
<li>If dual booting with Windows the logical thing is probably to format the partition as ntfs, since both Windows and linux can read and write from that filesystem. Choosing linux&#8217;s favourite ext3 filesystem format is fine too, but you&#8217;ll need to <a title="install ext2ifs for windows" href="http://www.fs-driver.org/" target="_blank">install Ext2IFS on Windows</a> to be able to write to it from within Windows. (IFSdrives seems to be super-reliable and after a two minute set up you can just forget its there. Though because it writes from windows as if the ext3 partition is ext2 it doesn&#8217;t keep the journalling up to date &#8211; I don&#8217;t really know what this means but it doesn&#8217;t seem to matter!)</li>
<li>Once you&#8217;ve created your data partition you might want, in Ubuntu, to change the text file located at /etc/fstab. You can then reliably mount your data partition in the same location meaning that you can create links to place on your desktop or wherever is convenient. The following commands in Terminal do the trick:
<ul>
<li>sudo mkdir /media/choose-name-for-data-store-here &#8211; this creates the place you&#8217;ll go to for your data.</li>
<li>sudo blkid &#8211; this gets a list of partitions on physical drives, and you need to note down the UUID of the partition you want to automount. Labels like /dev/sda1 (meaning the first partition on the first SATA harddrive) correspond to labelling in the gparted graphical interface, so you could always use that to work out which partition you&#8217;re aiming for.</li>
<li>sudo cp /etc/fstab /etc/fstab.bak &#8211; this backs up your fstab file in case of errors.</li>
<li>gksu gedit /etc/fstab &#8211; this opens a text editor to edit your fstab file. Add something like the following at the bottom, then save and close.</li>
</ul>
</li>
</ul>
<p><code># mount data store partition<br />
UUID=b7296b71-b1bd-4e73-9b7f-077dd37902c5    /media/filestore    ext2    rw,user,auto    0    0</code></p>
<ul>
<li>
<ul>
<li>You&#8217;ll need to make a few changes to that example: change the long UUID number to whichever you found with the blkid command (don&#8217;t include quote marks); change /media/filestore to whatever you named your data store directory; and change ext2 to whichever filesystem you formatted your partition with (probably ntfs or ext3).</li>
<li>Back in the Terminal run &#8220;sudo mount -a&#8221;. If there are no errors you should now be able to navigate in the file manager to the directory you created in /media to see the data on your additional partition.</li>
<li>NB If for any reason you want to unmount your data partition in Ubuntu then you&#8217;ll need to do it as root, i.e. use the command &#8220;sudo umount /media/your-data-store-directory&#8221;.</li>
</ul>
</li>
</ul>
<p><strong>4. Investigate problems (and note down the solutions!)</strong></p>
<p>Its always possible that some particular configurations of hardware don&#8217;t work as easily as one would hope. Hardware manufacturers might share information with Microsoft that they don&#8217;t with linux developers. (Although the biggest manufacturers are getting much better in this regard.) But if you&#8217;ve got a problem with your installation it might be relatively simple to fix and somewhere has likely been there before. Get googling and be very specific about your searches. (Searching &#8216;choppy graphics&#8217; is clearly not going to be very useful &#8211; know your hardware so you can search, say, &#8216;NVidia 8500 ubuntu 9.10 video mplayer bug&#8217;.) Remember that you can trust information on the official sites (say the <a title="ubuntu bug tracking" href="https://launchpad.net/ubuntu" target="_blank">Ubuntu bug tracking</a> website or <a title="ubuntu community documentation" href="https://help.ubuntu.com/community" target="_blank">community wiki</a>) much more than random blogs (like this one!).</p>
<p>Most importantly, when you get your fix, note down exactly what you&#8217;ve done so you can a) undo it if it causes other problems and b) redo it if, say, you decide to install a different or newer version of your operating system. An obvious point perhaps, but its a lesson its taken me longest to learn.</p>
<p><strong>5. Use the Cloud</strong></p>
<p>Using  cloud services &#8211; i.e. places available through the internet where you store some of your data &#8211; is a good way of separating data from software. It not only gives you a handy backup of your data but also makes it available from whatever computer you happen to be using &#8211; as long as you can keep track of all those passwords. Services I like include:</p>
<ul>
<li>Dropbox. This quietly keeps your files synchronised across any computer that you&#8217;ve installed it on and you can get an installer for linux, Windows or OSX. There&#8217;s also a web interface where you can access all of your files and even roll back to earlier versions of them. A free account gets 2GB of storage space so you&#8217;re not going to be backing up your whole hard drive this way, but its useful for those worky files you always want with you. (<a title="referral to dropbox" href="https://www.dropbox.com/referrals/NTMwOTM3MDY5" target="_blank">This link</a> gets us both a bit of extra free storage space if you sign up).</li>
<li>Xmarks add-on for Firefox. Keeps my bookmarks, keyword searches, passwords etc securely synchronised across computers. Lovely.</li>
<li>Also, as a researcher I use <a title="try out zotero" href="http://www.zotero.org/" target="_blank">Zotero</a> to keep track of my reading notes, bibliographic data and so on. The v.2 beta version now includes the possibility of synchronising your metadata, notes and your pdf copies of readings, websites and so on. At present this seems to provide unlimited storage space for free!</li>
<li>GMail contact data can be kept in sync with Thunderbird with the <a title="google contacts addon" href="https://addons.mozilla.org/en-US/thunderbird/addon/7307" target="_blank">Google Contacts add-on</a>. Even if you don&#8217;t use GMail I think its worth signing up for an account just to use its contacts as a central point to sync multiple copies of Thunderbird (or Evolution for that matter) and perhaps your mobile phone too.</li>
</ul>
<p>Depending on what sort of data you want to look after and/or share there are plenty of other services out there: Flixr is an obvious one for photographers and is often linked into photo management software like F-Spot and Picasa.</p>
<p><strong>6. Keep up to date (but be careful of upgrades!)</strong></p>
<p>Software updates are now a vital part of computing. Ubuntu installs with its Update Manager configured to run as soon as you turn on your computer. The updates only rarely require a computer restart so you can generally accept the suggested updates and leave the system to it. One warning, however, is that Ubuntu releases a new version of the operating system every six months. These upgrades won&#8217;t happen automatically, although the Update Manager will let you know when they&#8217;re available. But upgrading is a bigger job than simply accepting software updates &#8211; especially if you&#8217;ve got an odd selection of hardware or have heavily customised your operating system. The potential instability of system upgrades has caused some controversy among linux fans. The best practical advice is probably not to upgrade as soon as its available (in April and October each year) but to wait a month or so. When you do upgrade make sure you&#8217;ve got a little bit of time to iron out any wrinkles and go back to those installation notes you made so meticulously.</p>
<p>These tips are hardly an exhaustive how-to. But the purpose is to suggest some  of the easy practical steps to feeling secure about your linux use. Keep things organised and your data secure and you can be free to experiment. <a title="customize ubuntu" href="https://help.ubuntu.com/community/UbuntuEyeCandy" target="_blank">Customize your desktop</a>, set your visual effects to do <a title="compiz effects in ubuntu" href="http://www.youtube.com/watch?v=bMUQ_nja39c&amp;feature=related" target="_blank">something pointlessly cool</a>, install a wide range of applications or even create another partition and install an entirely new operating system just because its looks take your fancy. The excitement of linux is in the experimentation &#8211; just take a few precautions before you hurl yourself in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevingillan.info/techblog/127/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eeePC Internet Connection via Mobile Phone</title>
		<link>http://www.kevingillan.info/techblog/125</link>
		<comments>http://www.kevingillan.info/techblog/125#comments</comments>
		<pubDate>Sat, 05 Dec 2009 23:44:16 +0000</pubDate>
		<dc:creator>kev</dc:creator>
				<category><![CDATA[Techblog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.kevingillan.info/?p=125</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=eeePC+Internet+Connection+via+Mobile+Phone&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/125&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=eeePC+Internet+Connection+via+Mobile+Phone&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/125&amp;rft.language=English"></span>
I came across various instructions for connecting an Ubuntu powered laptop to the internet through your mobile phone&#8217;s data connection. My first thought was &#8216;brilliant&#8217;, followed rapidly by &#8216;ooh this&#8217;ll be fiddly&#8217;. It requires a bit of manual coding, but using Rahid Hasan&#8217;s excellent how-to it just worked first time (that link looks broken now, [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=eeePC+Internet+Connection+via+Mobile+Phone&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-12-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/125&amp;rft.language=English"></span>
<p>I came across various instructions for connecting an Ubuntu powered laptop to the internet through your mobile phone&#8217;s data connection. My first thought was &#8216;brilliant&#8217;, followed rapidly by &#8216;ooh this&#8217;ll be fiddly&#8217;. It requires a bit of manual coding, but using <a title="laptop mobile broadband via bluetooth phone" href="http://ubuntu-help.co.cc/index.php/ubuntu-help/35-internet/46-mobile-broadband-internet-over-bluetooth" target="_blank">Rahid Hasan&#8217;s excellent how-to</a> it just worked first time (that link looks broken now, its <a title="bluetooth mobile internet" href="http://www.astahost.com/info.php/Mobile-Broadband-Ubuntu-Bluetooth_t19728.html" target="_blank">also copied here</a>). I can now enable my bluetooth on my eeePC, turn off the wifi, and a get a reasonable connection speed via my Nokia E71 on three. Grand &#8211; no more hotspot charges.</p>
<p>UPDATE: This is a little more complicated in Ubuntu 9.10. For some reason pairing the phones doesn&#8217;t result in a bond on the refcomm channel. I get the error &#8220;In file /etc/ppp/peers/BluetoothDialup: unrecognized option &#8216;/dev/rfcomm0&#8242;&#8221;. The following seems to solve it.<em></em></p>
<p>To get it working, follow the instructions linked above with the following modifications:</p>
<ol>
<li>All of the required packages were already installed on Ubuntu 9.04 and 9.10 Netbook Remix, so no need to do any of the sudo apt-get ing</li>
<li>The command to restart bluez-utils is now <code>/etc/init.d/bluetooth restart</code></li>
<li>Phone specific information: the apn for three is three.co.uk and the data profile number is 1</li>
<li>Check what devices you have with <code>ls /dev</code> Is there one listed as rfcomm? If not, then the following command is required: <code>sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx z</code>Replace the x&#8217;s with your phone&#8217;s mac number and the z with your dialup channel number (both found when you follow the linked how to). This command only seems to be required once per session, then you can, in theory, pon and poff as much as you like. Perhaps the solution is to run the command at startup.</li>
<li>I get permission errors unless I run the launch command (pon or poff) with sudo</li>
<li>On launching the connection I get a permission error (only members of group &#8220;dip&#8221; can use this command) &#8211; but no group dip seems to exist. So, use sudo to launch instead.</li>
<li>Start the connection with <code>sudo pon BluetoothDialup</code> And stop it with <code>sudo poff BluetoothDialup</code> NB these commands can be written into custom application launchers through Preferences-&gt;Main Menu; but use gksu instead of sudo.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.kevingillan.info/techblog/125/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting the NVidia linux driver working with odd monitors</title>
		<link>http://www.kevingillan.info/techblog/122</link>
		<comments>http://www.kevingillan.info/techblog/122#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:20:42 +0000</pubDate>
		<dc:creator>kev</dc:creator>
				<category><![CDATA[Techblog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xorg.conf]]></category>

		<guid isPermaLink="false">http://www.kevingillan.info/?p=122</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Getting+the+NVidia+linux+driver+working+with+odd+monitors&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-09-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/122&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Getting+the+NVidia+linux+driver+working+with+odd+monitors&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-09-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/122&amp;rft.language=English"></span>
The latest edition of Ubuntu (9.04) is generally excellent. There are continuing problems with graphics cards, however, that probably flow more from the proprietary (closed source) drivers provided than anything that Ubuntu folks can control. For me, its the NVidia driver that&#8217;s the baddy, failing to recognise any accurate information from my Acer widescreen monitor. [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Getting+the+NVidia+linux+driver+working+with+odd+monitors&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-09-27&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/122&amp;rft.language=English"></span>
<p>The latest edition of Ubuntu (9.04) is generally excellent. There are continuing problems with graphics cards, however, that probably flow more from the proprietary (closed source) drivers provided than anything that Ubuntu folks can control. For me, its the NVidia driver that&#8217;s the baddy, failing to recognise any accurate information from my Acer widescreen monitor. This required manually writing a new xorg.conf file pretty much from scratch &#8211; here&#8217;s the solution for pairing NVidia 8500 GT with an Acer P193w<span id="more-122"></span></p>
<p>NB The following sample xorg.conf file is set specifically for a particular hardware set up. Because this configuration doesn&#8217;t allow the graphics card to take required information from the monitor (becuase it seems to get this wrong) <span style="color: #ff0000;">using this configuration in a different system could cause serious hardware damage.</span> In particular, it is essential to get the correct modelines for your monitor, using the modeline calculator referenced in the file.</p>
<p><a href="http://www.kevingillan.info/wp-content/uploads/2009/09/xorg.conf">sample xorg.conf for nvidia</a></p>
<pre><small># xorg.conf (X.Org X Window System server configuration file)
#
# NB this is kev's hand edited version making use of xorg.conf manual and
# nvidia linux driver manual
# http://www.x.org/archive/X11R6.8.0/doc/xorg.conf.5.html
# http://http.download.nvidia.com/XFree86/Linux-x86/1.0-8178/README/chapter-03-section-02.html
# keyboard and mouse sections were pasted in from an xorg found on the ubuntu wiki,
# hopefully they're applicable here
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg</pre>
<pre>Section "Module"
  Load            "glx"
Endsection</pre>
<pre>Section "InputDevice"
  Identifier      "Keyboard0"
  Driver          "kbd"
  Option          "XkbRules"      "xorg"
  Option          "XkbModel"      "pc105"
  Option          "XkbLayout"     "gb"
EndSection</pre>
<pre>Section "InputDevice"
  Identifier      "Mouse0"
  Driver          "mouse"
  Option          "CorePointer"
EndSection</pre>
<pre>Section "Device"
  Identifier    "NVidia0"
  Driver        "nvidia"
  Screen        0
  Option        "NoLogo"    "true"
# set false to use freqs set in xorg.conf, default is true
  Option        "UseEdidFreqs"    "false"
# true could damage monitor if incorrect info specified in xorg.conf,
# but may be necessary if driver misidentifies all edid info from monitor
# default is false
  Option        "IgnoreEDID"    "false"
# nvidia's proprietary alternative to xinerama for multiple monitors,
# default is false
  Option        "TwinView"    "false"</pre>
<pre>EndSection</pre>
<pre>Section "Monitor"
  Identifier    "Monitor0"
  VendorName    "Acer"
  ModelName    "P193w"
  HorizSync    30-81
  VertRefresh    55-76
  DisplaySize    428 278
# modeline calculated by http://www.arachnoid.com/modelines/
  Modeline    "1440x900" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
  Modeline    "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
  Modeline     "960x600" 45.98 960 1000 1096 1232 600 601 604 622 -HSync +Vsync
EndSection</pre>
<pre>Section "Screen"
  Identifier    "Screen0"
  Device        "NVidia0"
  Monitor        "Monitor0"
  DefaultDepth    24
    SubSection    "Display"
      Depth        24
      Modes        "1440x900" "1280x800" "960x600"
    EndSubSection
EndSection</pre>
<pre>Section "ServerLayout"
  Identifier     "Default Server Layout"
  Screen        "Screen0"
  InputDevice    "Keyboard0"
  InputDevice    "Mouse0"
Endsection</small></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kevingillan.info/techblog/122/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adventures in Thin</title>
		<link>http://www.kevingillan.info/techblog/119</link>
		<comments>http://www.kevingillan.info/techblog/119#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:52:03 +0000</pubDate>
		<dc:creator>kev</dc:creator>
				<category><![CDATA[Techblog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source software]]></category>

		<guid isPermaLink="false">http://www.kevingillan.info/?p=119</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Adventures+in+Thin&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-04-03&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/119&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Adventures+in+Thin&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-04-03&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/119&amp;rft.language=English"></span>
NB This adventure has been postponed due to my lack of knowledge/skills to make it work Moving from a flat to a house so no longer will the same room function as lounge, dining room, study and guest room. Simply having a very long cable on a widescreen monitor meant that one PC used to [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Adventures+in+Thin&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-04-03&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/119&amp;rft.language=English"></span>
<p>NB This adventure has been postponed due to my lack of knowledge/skills to make it work <img src='http://www.kevingillan.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Moving from a flat to a house so no longer will the same room function as lounge, dining room, study and guest room. Simply having a very long cable on a widescreen monitor meant that one PC used to serve both work and entertainment functions, but alas no more. So, how to have a satisfactory work-from-home PC and a media PC without spending too much moolah? One (theoretical) answer is to scrounge a basic &#8216;obsolete&#8217; PC and use it as a <a title="wikipedia thin client" href="http://en.wikipedia.org/wiki/Thin_client" target="_blank">thin client</a> &#8211; meaning it is just a gateway to using the resources on my current, decent quality PC. The software to make this possible is really oriented to businesses, schools or colleges running clusters of computers cheaply but the principles are (probably) applicable at home. And I hope you don&#8217;t need to be a veteran sysadmin to make it work. This post, is going to be a running commentry on what I&#8217;ve learned as I go through the stages.<span id="more-119"></span></p>
<p><strong>The Scrounge</strong></p>
<p>A thin client doesn&#8217;t need much in the way of processor speed or memory and has no use for a harddrive, but it does need decent network card (and it&#8217;ll be much easier if its PXE-bootable).</p>
<p>Scrounging hint: given that software licensing and data protection are the things that are likely to make an IT department nervous about giving stuff away, just ask for the machine without the hard drive. Sorted.</p>
<p>Lucky me &#8211; my workplace was refurbishing old computers and had a box to throw my way (Dell Optiplex GX280). Its 3GHz processor and 512MB RAM would actually make for a very reasonable linux machine without the need for any of this thin client business. But it doesn&#8217;t have a hardrive, and anyway, the thing client&#8217;s the whole point. So&#8230;</p>
<p><strong>Exploring the PC</strong></p>
<p>What have you got your hands on? Download a linux live CD like <a title="xubuntu live cd" href="http://www.xubuntu.org/" target="_blank">Xubuntu</a> to find out (NB get the larger full disc, the alternate install disc is no use without a hard drive). If you&#8217;ve got an older machine try <a title="Damn Small Linux" href="http://damnsmalllinux.org/" target="_blank">DSL</a>. Load to the BIOS, slide the CD in, and hit F2/F12/Del or whatever to change the boot order. Save and exit.</p>
<p>Have a play, does everything seem to work? Good&#8230;</p>
<p>Now, open the terminal and type:</p>
<p><code>lspci</code></p>
<p>This gives you the lowdown on some of the important components. Look for &#8216;Ethernet controller&#8217; and write down the full description of the controller because you&#8217;ll need it later.</p>
<p>Personal hurdle 1: No BIOS! eek. Some info about the graphics chip appears and then nothing, nadda, sweet FA. Turned out that the person donating the machine had kindly put in some extra RAM from another identical looking machine also being decomissioned. But non-matching (or maybe just malfunctioning) RAM made the machine halt before it had even managed to load the BIOS. Apparently this is usually a sign of a hardware problem so try unplugging things if you run into it. I removed the offending hardware and all&#8217;s rosey.</p>
<p><strong>BIOS settings</strong></p>
<p>As yet the only BIOS setting I&#8217;ve needed to change is to enable the PXE bootable thing, which was pretty easy to find after hitting F2 and looking around. If the card isn&#8217;t PXE-bootable, you&#8217;ll either have to invest in a new NIC or try one of the <a title="ltsp alternative boot methods" href="https://help.ubuntu.com/community/UbuntuLTSP/LTSPBootingClientsWithoutPxe" target="_blank">alternative methods</a>.</p>
<p>Personal hurdle 2: BIOS settings locked! Okay, so this is pretty likely on a machine scrounged from a business. Try to find your PC&#8217;s manual. Mine described a jumper on the motherboard to resent admin and system passwords for the BIOS. Open the box, pull the jumper connection, close the box, power on, no more mister password. For fuller advice try this <a title="bios settings" href="http://www.dewassoc.com/support/bios/bios_password.htm" target="_blank">random website on BIOS settings</a>.</p>
<p>Well okay, that&#8217;s as far as I&#8217;ve got so far. But it all looks plain sailing from here. Yup, gonna be a breeze&#8230;</p>
<p><strong>Networking 1 &#8211; setting up a static IP address</strong></p>
<p>Usually this kind of network would run with two network cards in the server PC, one getting an internet connection and one connected to a switch. But a very useful blog post from <a title="life revived ltsp ubuntu" href="http://liferevived.blogspot.com/2008/06/howto-run-windowsxp-on-pentium486-using.html" target="_blank">Life, Revived</a> suggested that you can make do simply with an existing ADSL router as long as it has two or more ports. So, physically you just need a cable running from the router to both server and client(s).</p>
<p>The more complex bit is about how the computers do their IP addressing. The server needs a static IP. This means putting appropriate settings (which should be available from you Internet provider) in the configuration screen found, under Ubuntu. Check the router&#8217;s IP by putting it in the address bar of a browser &#8211; for Speedtouch routers this is 192.168.1.254 &#8211; you should see your router configuration application. Now do this:</p>
<ol>
<li> System-&gt;Preferences-&gt;Network Configuration</li>
<li>Under the &#8216;Wired&#8217; tab select your connection &#8211; probably eth0</li>
<li>Hit &#8216;Edit&#8217; and go to the IPv4 settings tab.</li>
<li>Change Method to &#8216;Manual&#8217; and hit &#8216;Add&#8217;</li>
<li>Fill in the details.</li>
</ol>
<ul>
<li>&#8216;Address&#8217; is the static IP of your PC. The first three figures should be the same as that for the router and the last must be different. (There are some useful guides to networking at <a title="port forward ip guides" href="http://www.portforward.com/guides.htm" target="_blank">PortForward.com</a>, including information specific to different router models.) If you&#8217;ve got other computers using the router, either wired or wireless turn them on and have a look at the router config webpage &#8211; you should see the range of IP addresses dynamically assigned to your PCs &#8211; choose a static IP that is well outside of that range.</li>
<li>Netmask always seems to be 255.255.255.0.</li>
<li>Gateway is the IP address of the router.</li>
<li>DNS Server addresses come from your Internet provider &#8211; you can enter more than one address here, separated with a space.</li>
</ul>
<p>Keep a note of all those numbers &#8211; they&#8217;ll come in handy in a moment.</p>
<p>Personal hurdle 3: There&#8217;s a silly bug in Ubuntu 8.10 which means that after a reboot the network reverts to the automatic settings. There are a couple of <a title="ubuntu 8.10 static ip settings bug" href="http://linhost.info/2008/11/how-to-set-a-static-ip-on-ubuntu-810/" target="_blank">workaround suggestions here</a>, but they didn&#8217;t work on my system. Instead, the following workaround from the <a title="ubuntu 8.10 static ip settings bug" href="https://bugs.edge.launchpad.net/ubuntu/+source/network-manager/+bug/284298/comments/4" target="_blank">official bug report</a> worked:</p>
<blockquote><p>check the &#8220;system settings&#8221; checkbox, THEN uncheck the &#8220;connect automatically&#8221; checkbox, check &#8220;connect automatically&#8221; again&#8230; wait for sometime and then click on &#8220;Authenticate&#8221; [OK in my system]: n-m should trigger the sudo authentication dialog box and let you save the settings.</p></blockquote>
<p><strong>Setting up the server</strong></p>
<p>Now its a case of hopefully following the instructions at the <a title="life revived ltsp ubuntu" href="http://liferevived.blogspot.com/2008/06/howto-run-windowsxp-on-pentium486-using.html" target="_blank">Life, Revived post</a>, which I&#8217;ve copied in parts below.</p>
<p>Install the ltsp server:</p>
<p><code>sudo apt-get install ltsp-server-standalone openssh-server</code></p>
<p>Edit your dhcp configuration file which will tell the client where to look for an operating system:</p>
<p><code>gksudo gedit /etc/ltsp/dhcpd.conf</code></p>
<p>Enter the network information you used above. Mine looks like this:<br />
<code><br />
#<br />
# Default LTSP dhcpd.conf config file.<br />
#<br />
authoritative;<br />
subnet 192.168.1.0 netmask 255.255.255.0 {<br />
range 192.168.1.200 192.168.1.230;<br />
# option domain-name "example.com";<br />
option domain-name-servers 212.139.132.6;<br />
option broadcast-address 192.168.1.255;<br />
option routers 192.168.1.254;<br />
#    next-server 192.168.0.1;<br />
#    get-lease-hostnames true;<br />
option subnet-mask 255.255.255.0;<br />
option root-path "/opt/ltsp/i386";<br />
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {<br />
filename "/ltsp/i386/pxelinux.0";<br />
} else {<br />
filename "/ltsp/i386/nbi.img";<br />
}<br />
}<br />
</code><br />
Restart the dhcp server with:<br />
<code>sudo /etc/init.d/dhcp3-server restart</code><br />
If all is okay, then great. Time to build the image for the client to boot from:<br />
<code>sudo ltsp build-client</code></p>
<p><strong>Setting up the client</strong></p>
<p>The final job is to write the boot instructions for the client to a floppy disc. Dig out your note of the ethernet controller info and visit <a title="bootable floppy rom utility" href="http://www.rom-o-matic.net/" target="_blank">rom-o-matic.net</a>. Have a look at the list of network cards and select the appropriate ROM type, hit &#8216;Get ROM&#8217; and save somewhere sensible. To write the disc use a terminal command like this:</p>
<p><code>dd if=file-you've-downloaded.dsk of=/dev/fd0</code></p>
<p>Personal hurdle 4: My server PC doesn&#8217;t have a floppy drive. Unfortunately,  running a Xubuntu live CD on the client machine doesn&#8217;t seem to allow access to the floppy, so I&#8217;ve had to physically swap the floppy drive into the new machine to write the boot disc. Alternatively using a CD might have been easier (choosing a .iso instead of a .dsk download from rom-o-matic), but ideally I&#8217;d like to be able to use the CD drive in the client machine without the minor faff of remembering to put the put CD in on every shut down.</p>
<p><strong>Go, Go, Go!</strong></p>
<p>Now its time to start the client machine, hit F2/DEL to get into the BIOS. Choose to boot from the floppy you&#8217;ve just inserted and give it a whirl.</p>
<p>My results so far: &#8216;Non-system disk or disk error&#8217;. Shucks, time to revist rom-o-matic&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevingillan.info/techblog/119/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu-eee on the eee PC 901</title>
		<link>http://www.kevingillan.info/techblog/115</link>
		<comments>http://www.kevingillan.info/techblog/115#comments</comments>
		<pubDate>Mon, 05 Jan 2009 15:36:47 +0000</pubDate>
		<dc:creator>kev</dc:creator>
				<category><![CDATA[Techblog]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.kevingillan.info/?p=115</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Ubuntu-eee+on+the+eee+PC+901&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-01-05&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/115&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Ubuntu-eee+on+the+eee+PC+901&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-01-05&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/115&amp;rft.language=English"></span>
So a new year&#8217;s gift to myself for 2009: an Asus eee PC 901. After a quick play with the Xandros-based operating system that came pre-installed I decided to give the eee-specific Ubuntu distro a whirl. Despite the claim on their wiki that it would work &#8216;out of the box&#8217; for the 901, there were [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=Ubuntu-eee+on+the+eee+PC+901&amp;rft.aulast=Gillan&amp;rft.aufirst=Kevin&amp;rft.subject=Techblog&amp;rft.source=kevingillan.info&amp;rft.date=2009-01-05&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://www.kevingillan.info/techblog/115&amp;rft.language=English"></span>
<p>So a new year&#8217;s gift to myself for 2009: an Asus eee PC 901. After a quick play with the Xandros-based operating system that came pre-installed I decided to give the <a title="Ubuntu eee" href="http://ubuntu-eee.com" target="_blank">eee-specific Ubuntu distro</a> a whirl. Despite the claim <a title="ubuntu eee wiki" href="http://www.ubuntu-eee.com/wiki/index.php5?title=Introduction_to_Ubuntu_Eee" target="_blank">on their wiki</a> that it would work &#8216;out of the box&#8217; for the 901, there were a few issues with my installation (Ubuntu Hardy Heron v 8.04.1 on Asus model no. EEEPC-BK006) that I&#8217;ve resolved with the help of posts on the wiki and the <a href="http://forum.eeeuser.com/" target="_blank">eeepc users&#8217;s forum</a>. So, largely because I might need to do it again, here&#8217;s my step-by-step guide on how to get the thing running as I like it:</p>
<p><del><strong>UPDATE</strong>: ubuntu-eee, used in the description below, has rebranded itself as <a title="easy peasy" href="http://www.geteasypeasy.com/" target="_blank">easy peasy</a>. It seems to contain more license restricted software than the standard ubuntu installation and looks pretty swish. But ubuntu are clearly pushing their own netbook-remix so I&#8217;ve installed v9.04 (Jaunty Jackalope) from <a title="Ubuntu Netbook Remix" href="http://www.ubuntu.com/getubuntu/download-netbook" target="_blank">Ubuntu&#8217;s main site</a>. Where necessary I&#8217;ve updated the advice below for that, and added tips on Firefox and Mobile Broadband. Incidentally, Ubuntu Netbook Remix on the eee-pc absolutely rocks.</del></p>
<p><strong>Another UPDATE:</strong> As the Ubuntu versions have rolled on and got a bit bigger and slower I&#8217;ve now moved to lubuntu 11.04 for the occasional-use eeePC. It feels nice and quick for the kinds of simple jobs I&#8217;m doing with it.</p>
<p>N.B. I&#8217;ve mostly included eee-pc specific things here &#8211; there are other necessary steps with Ubuntu (like making flash work properly, and getting drivers to play .mp3 files). These all relate to using software with restricted licenses, but that software is available and works very well and Ubuntu now generally offers wizards to do these things which should pop up when you need them.</p>
<ol>
<li><a title="install ubuntu-eee" href="http://www.kevingillan.info/techblog/115#install" target="_self">Install the OS</a></li>
<li><a title="make drives recognisable" href="http://www.kevingillan.info/techblog/115#drives" target="_self">Recognise removable drives (N.B. Not necessary since Ubuntu 9.10)<br />
</a></li>
<li><a title="wifi" href="http://www.kevingillan.info/techblog/115#wifi" target="_self">Wifi (N.B. Not necessary since Ubuntu 9.04)<br />
</a></li>
<li><a title="webcam" href="http://www.kevingillan.info/techblog/115#webcam" target="_self">Webcam</a></li>
<li><a title="bluetooth" href="http://www.kevingillan.info/techblog/115#bluetooth" target="_self">Make bluetooth work</a> and <a title="bluetooth-push" href="http://www.kevingillan.info/techblog/115#bluetooth" target="_self">enable other devices to push files via bluetooth</a></li>
<li><a title="lock after standby" href="http://www.kevingillan.info/techblog/115#lock" target="_self">Password lock after standby (N.B. Not necessary since Ubuntu 9.04)<br />
</a></li>
<li><a title="home" href="http://www.kevingillan.info/techblog/115#home" target="_self">Make &#8216;home&#8217; key show desktop</a></li>
<li><a title="eee-control" href="http://www.kevingillan.info/techblog/115#eee-control" target="_self">Install eee-control</a></li>
<li><a title="launchy" href="http://www.kevingillan.info/techblog/115#launchy" target="_self">Install Launchy (N.B. Gnome Do is probably preferable since 9.04)<br />
</a></li>
<li><a title="fonts" href="http://www.kevingillan.info/techblog/115#fonts" target="_self">New fonts</a></li>
<li><a title="firefox" href="http://www.kevingillan.info/techblog/115#launchy" target="_self">Firefox 3.5 (N.B. Not necessary since Ubuntu 9.10)<br />
</a></li>
<li><a title="mobilebb" href="http://www.kevingillan.info/techblog/115#launchy" target="_self">Mobile Broadband</a></li>
</ol>
<p><span id="more-115"></span></p>
<p><a name="install"></a><strong>Install the OS</strong></p>
<p>I first attempted to dual boot Ubuntu and Xandros by installing Ubuntu on an additional SDHC card plugged into the card reader. In principle, this is achievable. However, the installation messes up the boot loader so I ran into an error at the grub that meant that I just couldn&#8217;t run either operating system. There are some hints on <a title="ubuntu eee grub problem" href="http://ubuntuforums.org/showthread.php?t=1015176" target="_blank">solving the grub error 21 </a><a title="ubuntu eee grub problem" href="http://ubuntuforums.org/showthread.php?t=1015176" target="_blank">issue</a> but I decided just to go for a clean install. The following method requires a windows or linux PC with an internet connection and a blank USB flash drive. <strong>NB Doing the following will completely remove your standard Xandros installation and any files you have saved!</strong></p>
<ol>
<li>You&#8217;ll need to enter the Asus&#8217;s BIOS several times, but its quickboot mode, on by default, makes this tricky. So, first enter the BIOS to turn quickboot off. After hitting the on button you&#8217;ll have to tap Esc and/or F2 very quickly to get to the BIOS settings. It took me about five attempts of rapid and repeated tapping to get in. Now you&#8217;re in, use cursor keys to navitage to &#8216;Boot&#8217;, then &#8216;Boot Settings Configuration&#8217; then set both the &#8216;Quick Boot&#8217; entries to &#8216;Disabled&#8217;. Hit F10 to save, exit and reboot.</li>
<li>On another PC download the ubuntu-eee iso file and the appropriate utility (called unetbootin) for making a USB flash drive bootable from the <a title="ubuntu eee website" href="http://ubuntu-eee.com/" target="_blank">Ubuntu eee website</a>.</li>
<li>Run unetbootin and use the interface to select the source file (i.e. the iso just downloaded) and the destination (i.e. a blank USB flash drive).</li>
<li>Insert USB drive to Asus, turn on, and hit F2 to enter BIOS.</li>
<li>Change boot priorities to boot from USB drive. First navigate to Boot-&gt;Hard Disk Drives; select 1st Drive, hit enter, and select USB. Second, Boot-&gt;Boot Device Priority; select 1st Boot Device and choose &#8216;Removable Dev.&#8217;</li>
<li>Hit F10 to save changes, exit and reboot.</li>
<li>You should now be presented with Ubuntu&#8217;s live CD boot loader. You can run the operating system to test it without affecting your current Xandros installation, but don&#8217;t expect everything to work straight off. To bite the bullet and actually install ubuntu over the top of Xandros select the option to install.</li>
<li>Most of the following screens should be very straightforward, except partitioning. Select manual partitioning.</li>
<li>Select the 4GB drive (probably sda) and choose to use the whole drive as the root filesystem (labelled &#8216;/&#8217;). I selected Ext 2.<br />
<small>N.B Ext 3 is the standard for linux now, and may be more stable through its journalling system &#8211; but that system requires very frequent disk writes which may noticably shorten the life of the SSD.</small></li>
<li>Select the larger SSD drive, 8 or 16GB depending on model. This is probably labelled sdb. Choose to use this as the user&#8217;s home filesystem (labelled &#8216;/home&#8217;) &#8211; this is where all of your local files will be stored. Again I chose Ext 2, although Ext 3 is the more standard option.<br />
<small>NB most linux installations would also include a &#8216;swap&#8217; partition &#8211; equivalent to Windows&#8217; &#8216;virtual memory&#8217; &#8211; but again to reduce the frequency of writes to disc most people seem to recommend not having a swap on the eeePC. If you&#8217;re intended to use very memory-heavy applications for which 1GB ram is not enough you might like to reconsider this and put a swap partition (1GB?) on the larger SSD drive.</small></li>
<li>Finish working through the installation wizard and wait while it installs. Choose to reboot. I had an issue here where the machine wouldn&#8217;t turn off properly, I think because it had been tricked into thinking it was installing from a CD and wanted me to remove the CD. So, I used a hard turn off (press and hold the power button), removed the flash drive and turned on again.</li>
</ol>
<p>Hey presto &#8211; working ubuntu. And doens&#8217;t it look so much more natty than the grey of Asus&#8217;s custom Xandros? But, it doens&#8217;t work in entirity. So I had to apply the following fixes&#8230;</p>
<p><a name="drives"></a><strong>Make Ubuntu recognise removable drives</strong></p>
<p>UPDATE: This is not necessary on the Ubuntu 9.10 release.</p>
<p>As <a title="Tombuntu eee pc" href="http://tombuntu.com/index.php/2008/09/01/installing-ubuntu-804-on-the-eee-pc-901/" target="_blank">explained on Tombuntu</a>, something about installing from a flash drive messes with Ubuntu&#8217;s ability to recognise and mount new removable media. To solve it, simply do this:</p>
<ol>
<ol>
<li>Open a terminal window (Accessories-&gt;Terminal) and type the following:</li>
</ol>
</ol>
<p><code>$ gksudo gedit /etc/fstab</code></p>
<ol>
<li>In the text editor window that should&#8217;ve opened, go to the line that references a CD drive (something like &#8216;/dev/sdc1     /media/cdrom0 &#8230;&#8217;. Comment out that line by putting a # at the beginning).</li>
<li>Save, close, reboot. Sorted.</li>
</ol>
<p>N.B. If it is important that a particular device can be referenced in the same location, no matter what combination of things you have plugged in, you can set a specific mount point Right click the device in the file manager to get its properties. Unfold settings and change mount point to whatever you want &#8211; it should still be located in /media though, unless there&#8217;s a good reason why not.</p>
<p><a name="wifi"></a><strong>Make Wifi work</strong></p>
<p>UPDATE: This is not necessary with Ubuntu 9.04 or 9.10 &#8211; simply go to System-&gt;Administration-&gt;Network Connections and put the relevant information in the &#8216;Wireless&#8217; tab.</p>
<p>I used the <a title="ndiswrapper wifi ubuntu eee" href="http://ubuntu-eee.com/wiki/index.php5?title=Getting_the_network_drivers_working_on_the_901" target="_blank">ndiswrapper method explained here</a>, plus <a title="rt2860 for ubuntu eee" href="http://forum.eeeuser.com/viewtopic.php?pid=329055#p329055" target="_blank">info about the driver from here</a>. Specifically&#8230;</p>
<ol>
<li>Using another PC download <a title="ndiswrapper wifi ubuntu eee" href="http://packages.ubuntu.com/hardy/i386/misc/ndiswrapper-common/download" target="_blank">ndiswrapper-common</a>, <a title="ndiswrapper wifi ubuntu eee" href="http://packages.ubuntu.com/hardy/i386/misc/ndiswrapper-utils-1.9/download" target="_blank">ndiswrapper-utils</a> and <a title="ndiswrapper wifi ubuntu eee" href="http://packages.ubuntu.com/hardy/i386/net/ndisgtk/download" target="_blank">ndisgtk</a>. Copy them to a USB flash drive. (Full version numbers from link above, you could install these programmes through Administration-&gt;Synaptic if you have a working wired internet connection.)</li>
<li>Also download the <em>Windows </em>wifi driver for the hardware. (ndiswrapper is a utility for running windows wifi drivers on linux.) <a title="rt2860 driver" href="http://rs221.rapidshare.com/files/130793344/wireless.zip" target="_blank">Download the driver here</a>. Unpack the .zip folder &#8211; you&#8217;ll just need the file rt2860.inf &#8211; copy it over to your USB drive.</li>
<li>Insert the USB drive into your Asus, navigate to the files you just downloaded. The three ndiswrapper files are .deb format, meaning you can just click to install. You&#8217;ll get a warning that there are other versions in your software repositories. Don&#8217;t worry about it. The status should be marked as &#8216;all dependencies met&#8217; or similar. (If not, and there are dependencies listed, you&#8217;ll have to download these as .deb files and install them first.) All being well, install each in turn.</li>
<li>Now go to Administration-&gt;Windows Wireless Drivers. Click &#8216;Install New Driver&#8217; and navigate to the rt2860.inf file. Select and you&#8217;re done. To configure your wireless network go to Administration-&gt;Network. Or, if in roaming mode, just click the network icon in the taskbar.</li>
</ol>
<p><a name="webcam"></a><strong>Make Webcam work</strong></p>
<p>I had to change a BIOS setting for this, but that was all.</p>
<ol>
<li>Restart and hit F2 on boot.</li>
<li>Navigate to Advanced-&gt;Onboard Devices. Go to Onboard Camera and mark as enabled. (While you&#8217;re there you might want to do the same for bluetooth.)</li>
<li>F10 to save and reboot.</li>
</ol>
<p>While the Cheese application does work to take snapshots and short videos it is, perhaps, not quite as it should be. Taking pics or video should result in a thumbnail turning up at the bottom of the app window. On mine it doesn&#8217;t. But then closing and restarting the app does display the previously taken pics and video. There appears to be an issue with the sound recording level as well, although it is doing something.</p>
<p><a name="bluetooth"></a><strong>Make bluetooth work</strong></p>
<p>I had to change a BIOS setting for this, but that was all.</p>
<ol>
<li>Restart and hit F2 on boot.</li>
<li>Navigate to Advanced-&gt;Onboard Devices. Go to Onboard Bluetooth and mark as enabled.</li>
<li>F10 to save and reboot.</li>
</ol>
<p>N.B. the second of the special silver keys at the top of the keyboard (marked with arrows pointing out of a screen) is a quick way to enable/disable bluetooth.</p>
<p><a name="bluetooth-push"></a><strong>Enable devices to push files over bluetooth</strong></p>
<p>The built in bluetooth utility is good for pairing up devices and for browsing files on other devices, but doesn&#8217;t allow for other devices to push files to your eeePC. For this you need the package gnome-user-share. So,</p>
<ol>
<li>Open a terminal and type: sudo apt-get install gnome-user-share. (Or use the Synaptic Package Manager)</li>
<li>Go to the System-&gt;Preferences-&gt;Personal File Sharing</li>
<li>Select &#8216;Receive files in Downloads folder over Bluetooth&#8217; and any other options that seem appropriate. NB I accept files only for bonded devices, which means you need to use the standard bluetooth utility (System-&gt;Preferences-&gt;Bluetooth-&gt;Set up a new device) to bond your device to the PC. It has to be this way around, bonding from the device to the eee isn&#8217;t the same thing.</li>
</ol>
<p><a name="lock"></a><strong>Password lock after standby/screensaver etc</strong><strong><br />
</strong></p>
<p>UPDATE: No issues with this in Ubuntu 9.04. I just used Preferences-&gt;Power Management to ensure that the computer goes to standby on shutting the lid, and the power button immediately shuts down. The first silver button now turns off the screen and has a password lock.</p>
<p>Having previously had problems with this, its great that standby works as it should. Using Preferences-&gt;Power Management accesses settings for what to do when shutting lid, hitting power button etc. (Note that if you haven&#8217;t got a swap partition you probably can&#8217;t use hibernate.) But no options in the GUI for password locks. Point 1 below is a reasonable method, but runs into a seemingly common ubuntu bug, for which a quick fix follows.</p>
<ol>
<ol>
<li>Use the terminal command: gconf-editor</li>
<li>Navigate apps-&gt;gnome-power-manager-&gt;lock.</li>
<li>Select appropriate option. I seem to be having problems with the screensaver so have gone just for ticking &#8216;suspend&#8217;.</li>
<li>Using this, though, results in ubuntu not recognising the password. Choosing &#8216;switch user&#8217; gets you to the gdm login screen which should allow logging in as usual.</li>
<li>For me, the quick fix on <a title="suspend lock bug ubuntu-eee" href="https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/163525" target="_blank">this bug report</a> worked, i.e. use a terminal to run:</li>
</ol>
</ol>
<p><code>$ sudo chown root:shadow /sbin/unix_chkpwd<br />
$ sudo chmod 2755 /sbin/unix_chkpwd</code></p>
<ol>
<li>I had previously tried the solution posted on <a title="suspend lock bug ubuntu-eee" href="https://bugs.launchpad.net/ubuntu/+source/gnome-screensaver/+bug/227994" target="_blank">this other report of the same bug</a>, although it didn&#8217;t work for me. But hey, it clearly works on some systems.</li>
</ol>
<p>N.B. The first of the silver keys at the top of the keyboard turns off the screen. It&#8217;s not a standby though, so no password.</p>
<p><a name="home"></a><strong>Make the &#8216;Home&#8217; key show desktop/home</strong></p>
<p><a title="ubuntu-eee make home key work" href="http://www.ubuntu-eee.com/wiki/index.php5?title=How_to:_Set_Super_button_to_show_desktop" target="_blank">Info from the ubuntu-eee wiki</a>.</p>
<ol>
<li>From Home, select the <strong>Preferences</strong> menu, followed by <strong>Keyboard Shortcuts</strong></li>
<li>Scroll down and click on <strong>Hide all windows and focus desktop</strong> (it&#8217;s in the <em>Windows Management</em> section)</li>
<li>Press the &#8216;Home&#8217; button (shown as &#8216;Super&#8217;)</li>
</ol>
<p>N.B. As of Ubuntu 9.10 this no longer works as the Super key is recognised as &#8216;Mod3&#8242;, presumably standing for modifier. That means that only key combinations are accepted in the Keyboard Shortcuts tool, not the single Mod3 key. I feel a bug report coming on&#8230;</p>
<p><a name="eee-control"></a><strong>Install eee-control</strong></p>
<p>eee-control is a small utility that sits in the system tray and gives you quick access to turning on and off bluetooth, wifi etc, as well as allowing you to set the performance mode of your CPU. This package is not in the repositories, but for Ubuntu 9.04 <a title="download eee-control" href="http://greg.geekmind.org/eee-control/" target="_blank">instructions and a download are available here</a>. <del>As yet there&#8217;s no download for Ubuntu 9.10 &#8211; I&#8217;ll have a go at building it from source and report further.</del></p>
<p>This can now be installed from an optional added repository:</p>
<p><code>$ sudo apt-add-repository ppa:eee-control/eee-control<br />
$ sudo apt-get update<br />
$ sudo apt-get install eee-control</code></p>
<p><a name="launchy"></a><strong>Install Launchy<br />
</strong></p>
<p>UPDATE: Launchy is not currently included in the repositories for Ubuntu 9.04 and installing from the <a title="Launchy downloads" href="http://sourceforge.net/projects/launchy/files/" target="_blank">Launchy .deb </a>file caused conflicts on keyboard shortcuts that I couldn&#8217;t solve. Instead I&#8217;ve gone for <a title="gnome-do application launcher" href="http://do.davebsd.com/" target="_blank">gnome-do</a> from the repositories which works just as well. Just replace &#8216;launchy&#8217; with &#8216;gnome-do&#8217; in the below code to install.</p>
<p>Gotta love this application launcher, whatever the OS. Now included in ubuntu repositories, so:</p>
<p><code>$ sudo apt-get update<br />
$ sudo apt-get install launchy</code></p>
<p><a name="fonts"></a><strong>Installing new fonts</strong></p>
<p>UPDATE: The microsoft core fonts are now included in the &#8216;ubuntu-restricted-extras&#8217; package, that also includes support for flash and various audio and video formats. Go to Favourites-&gt;Ubuntu Software Centre and use the quick search box to find &#8216;restricted extras&#8217; for the appropriate package. Bingo.</p>
<p><a title="ubuntu install fonts" href="https://wiki.ubuntu.com/Fonts" target="_blank">Info on fonts from the Ubuntu Wiki</a>.</p>
<ol>
<ol>
<li>Make a directory to store them in.</li>
</ol>
</ol>
<p><code>$ sudo mkdir /usr/share/fonts/truetype/new-fonts</code></p>
<ol>
<ol>
<li>Copy the font file to the new directory.</li>
</ol>
</ol>
<p><code>$ sudo cp ~/Downloads/new-font-file.ttf</code></p>
<ol>
<ol>
<li>Refresh the fonts list.</li>
</ol>
</ol>
<p><code>$ sudo fc-cache -f -v</code></p>
<p>N.B. Some apps may not recognise the new fonts until after a reboot.</p>
<p><a name="firefox"></a><strong>Firefox 3.5</strong></p>
<p>UPDATE: Firefox 3.5 is included in 9.10 by default. These instructions may be adaptable if a big new Firefox release comes along before the next version of Ubuntu.</p>
<p>Ubuntu 9.04 includes Firefox 3 by default. For the latest and greatest it is possible to install Firefox 3.5 from the repositories. But, note that it will be installed as &#8216;Shiretoko&#8217; without the usual branding, which is the Ubuntu way until 3.5 becomes the officially supported browser (which will happen in version 9.10). When using 9.04 do not uninstall Firefox 3.</p>
<ol>
<li>Administration-&gt;Synaptic Package Manager</li>
<li>Search for &#8216;firefox-3.5&#8242;</li>
<li>From the long list of related applications I just marked the packages &#8216;firefox-3.5&#8242;, &#8216;firefox-3.5-gnome-support&#8217;, and &#8216;firefox-3.5-branding&#8217; for installation.</li>
<li>Click &#8216;Apply&#8217;.</li>
</ol>
<p>You&#8217;ll find &#8216;Shiretoko&#8217; with a generic icon in the &#8216;Internet&#8217; section. You can always right-click the icon and choose &#8216;Add to Favourites&#8217; to make it more quickly available.</p>
<p><a name="mobilebb"></a><strong>Mobile Broadband</strong></p>
<p>Well this is a pretty exciting development for netbook users. Ubuntu now has built in, &#8216;out of the box&#8217; support for mobile broadband dongles. Using an O2 dongle this was pretty straightforward.</p>
<ol>
<li>If testing this somewhere where you usually have a wifi connection simplify things by right-clicking your signal strength icon and uncheck the &#8216;enable wireless&#8217; option.</li>
<li>Plug in the dongle</li>
<li>A wizard should open up, select your network operator and follow on-screen instructions.</li>
<li>This resulted in incorrect settings for me, but easily fixed.</li>
<li>Right-click the signal strength icon and select &#8216;Edit Connections&#8217;</li>
<li>Go to the &#8216;Mobile Broadband&#8217; tab.</li>
<li>Select your connection and click &#8216;Edit&#8217;.</li>
<li>Fill in the right details from the bumf you got with the dongle. For me this required changes to the Username, Password and APN fields. (For other O2 users, the username might be &#8216;o2bb&#8217; and the APN might be m-bb.o2.co.uk &#8211; the username you will have chosen yourself.)</li>
<li>And then&#8230; it just works!</li>
</ol>
<p>N.B. For more functionality (like sending texts) I&#8217;ve seen the <a title="mobile broadband linux" href="http://umtsmon.sourceforge.net/" target="_blank">UMTSmon package</a> recommended. Not tested it though and generally prefer not to install software that is not in the repositories.</p>
<p>UPDATE: It is possible to get mobile broadband through a bluetooth-enabled 3G phone, provided you have a sensible data plan with your mobile company. See <a title="mobile broadband via phone on eee pc" href="http://www.kevingillan.info/techblog/125" target="_self">this post for info</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kevingillan.info/techblog/115/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

