<?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>Craig Mayhew's Blog &#187; Linux/Ubuntu</title>
	<atom:link href="http://www.craigmayhew.com/blog/category/linux-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.craigmayhew.com/blog</link>
	<description></description>
	<lastBuildDate>Fri, 03 Sep 2010 08:15:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Asus Aspire One network manager applet disappeared!</title>
		<link>http://www.craigmayhew.com/blog/2010/04/asus-aspire-one-network-manager-applet-disappeared/</link>
		<comments>http://www.craigmayhew.com/blog/2010/04/asus-aspire-one-network-manager-applet-disappeared/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 20:00:33 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Acer Aspire One]]></category>
		<category><![CDATA[Linpus]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=1083</guid>
		<description><![CDATA[It appears one of the updates to the linpus linux operating system used on Asus Aspire One netbooks messes up the networking. In short the permissions get set wrongly on the network settings files. Symptons include, not being able to see the network icon on the menu, clicking &#8220;Network Settings&#8221; icon on the settings page [...]]]></description>
			<content:encoded><![CDATA[<p>It appears one of the updates to the linpus linux operating system used on Asus Aspire One netbooks messes up the networking. In short the permissions get set wrongly on the network settings files. Symptons include, not being able to see the network icon on the menu, clicking &#8220;Network Settings&#8221; icon on the settings page and having nothing happen etc..</p>
<p>Before you run this fix, please understand that you will lose all your saved network connections and you will need to add in your network keys again.</p>
<p>To fix:</p>
<p>Press Alt+F2 and a run box should appear.<br />
Then write &#8220;terminal&#8221; and click &#8220;Run&#8221;.<br />
In the new terminal windows that has appeared type &#8220;sudo gconftool-2 &#8211;recursive-unset /system/networking&#8221; to clear all the root network connections.<br />
Then type &#8220;gconftool-2 &#8211;recursive-unset /system/networking&#8221; to clear all the user network connections.<br />
Reboot the netbook and the network icon appears again after about 20 seconds but you need to reconfigure the network connections again by adding passwords etc&#8230;</p>
<p>If this hasn&#8217;t fixed your problem then this forum has loads more info on the subject <a href="http://www.aspireoneuser.com/forum/viewtopic.php?f=34&#038;t=2620&#038;sid=7ee9a1caf5a8ccaf10dd281ac6caf861">http://www.aspireoneuser.com/forum/viewtopic.php?f=34&#038;t=2620&#038;sid=7ee9a1caf5a8ccaf10dd281ac6caf861</a>. I recommend reading the whole forum thread before trying the solutions, as you may want to try easier ones first!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2010/04/asus-aspire-one-network-manager-applet-disappeared/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>noatime</title>
		<link>http://www.craigmayhew.com/blog/2010/04/noatime/</link>
		<comments>http://www.craigmayhew.com/blog/2010/04/noatime/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 07:00:06 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Ext]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[noatime]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=1054</guid>
		<description><![CDATA[The noatime option tells an ext filesystem to not update the &#8220;last accessed&#8221; timestamp every time a file is opened. This enables you to save disk i/o and have you disk caches perform much better.
You need to edit the fstab file to use the noatime option.
sudo vim /etc/fstab
Your fstab file will look different to this. [...]]]></description>
			<content:encoded><![CDATA[<p>The noatime option tells an ext filesystem to not update the &#8220;last accessed&#8221; timestamp every time a file is opened. This enables you to save disk i/o and have you disk caches perform much better.</p>
<p>You need to edit the fstab file to use the noatime option.</p>
<p>sudo vim /etc/fstab</p>
<p>Your fstab file will look different to this. At this point I should warn you that if you mistype this, delete something you shouldn&#8217;t or otherwise break this file, you Linux system MAY NOT BOOT. You can see below where I have added noatime which is visible in bold.</p>
<p>/dev/hda1 / ext3 defaults,errors=remount-ro,<b>noatime</b>,auto 0 1</p>
<p>Reboot and if all is well then you should have a faster filesystem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2010/04/noatime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chroot in Ubuntu</title>
		<link>http://www.craigmayhew.com/blog/2010/03/chroot-in-ubuntu/</link>
		<comments>http://www.craigmayhew.com/blog/2010/03/chroot-in-ubuntu/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 06:43:17 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Chroot]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=1046</guid>
		<description><![CDATA[If you ever manage to damage your ubuntu install so badly that it won&#8217;t boot (as I recently did when trying to remove the gnome GUI) then boot from a LiveCD and then open up a terminal.
Type the following commands:
change to the media directory (where our drives should be)
# cd /media
Create a new directory called [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever manage to damage your ubuntu install so badly that it won&#8217;t boot (as I recently did when trying to remove the gnome GUI) then boot from a LiveCD and then open up a terminal.</p>
<p>Type the following commands:</p>
<p>change to the media directory (where our drives should be)<br />
# cd /media</p>
<p>Create a new directory called Ubuntu (We will use this to mount our boot drive too)<br />
# mkdir ubuntu</p>
<p>Mount the boot drive, you will need to replace X with the correct letter<br />
# mount /dev/sdaX /media/ubuntu</p>
<p>Mount some other required locations<br />
# mount &#8211;bind /proc /media/ubuntu/proc<br />
# mount &#8211;bind /dev /media/ubuntu/dev<br />
# mount &#8211;bind /dev/pts /media/ubuntu/dev/pts</p>
<p>Run chroot, using this command and we are now root as if we had booted from the boot drive and not the liveCD:<br />
# chroot /media/ubuntu</p>
<p>Your now in your Ubuntu system as root. If your unsure precisely why your system won&#8217;t boot then running an update is usually a good place to start. Good luck!<br />
# aptitude update</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2010/03/chroot-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The package vmware-server needs to be reinstalled, but I can&#8217;t find an archive for it</title>
		<link>http://www.craigmayhew.com/blog/2010/03/the-package-vmware-server-needs-to-be-reinstalled-but-i-cant-find-an-archive-for-it/</link>
		<comments>http://www.craigmayhew.com/blog/2010/03/the-package-vmware-server-needs-to-be-reinstalled-but-i-cant-find-an-archive-for-it/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 07:00:14 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[Synaptic Package Manger]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=1042</guid>
		<description><![CDATA[I recently tried installing a .deb packagae I had made by converting an rpm. Synaptic package manager however errored and since then won&#8217;t open. Every time I started synaptic I was getting this error:
The package vmware-server needs to be reinstalled, but I can&#8217;t find an archive for it
This command solved it and will force the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently tried installing a .deb packagae I had made by converting an rpm. Synaptic package manager however errored and since then won&#8217;t open. Every time I started synaptic I was getting this error:</p>
<p>The package vmware-server needs to be reinstalled, but I can&#8217;t find an archive for it</p>
<p>This command solved it and will force the removal of my incosistent package:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">
dpkg --remove --force-remove-reinstreq vmware-server
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2010/03/the-package-vmware-server-needs-to-be-reinstalled-but-i-cant-find-an-archive-for-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modifying fstab to prevent password requests before mounting a hard drive</title>
		<link>http://www.craigmayhew.com/blog/2010/03/modifying-fstab-to-prevent-password-requests-before-mounting-a-hard-drive/</link>
		<comments>http://www.craigmayhew.com/blog/2010/03/modifying-fstab-to-prevent-password-requests-before-mounting-a-hard-drive/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 07:00:29 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Mount]]></category>
		<category><![CDATA[pysdm]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=1031</guid>
		<description><![CDATA[After a fresh install of Ubuntu Karmic I found that the additional hard drives kept asking for a password each time I logged in and accessed them for the first time.

To fix the problem, simply install pysdm:
sudo apt-get install pysdm
Then run it as root:
sudo pysdm
Choose your device and then mount your partitions accordingly.
]]></description>
			<content:encoded><![CDATA[<p>After a fresh install of Ubuntu Karmic I found that the additional hard drives kept asking for a password each time I logged in and accessed them for the first time.</p>
<p><a href="http://www.craigmayhew.com/blog/wp-content/uploads/2010/03/mount-drive-password.jpg"><img class="alignnone size-full wp-image-1034" title="mount-drive-password" src="http://www.craigmayhew.com/blog/wp-content/uploads/2010/03/mount-drive-password.jpg" alt="mount-drive-password" width="488" height="340" /></a></p>
<p>To fix the problem, simply install pysdm:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">sudo apt-get install pysdm</pre>
<p>Then run it as root:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">sudo pysdm</pre>
<p>Choose your device and then mount your partitions accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2010/03/modifying-fstab-to-prevent-password-requests-before-mounting-a-hard-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieve Drive UUIDs in Ubuntu</title>
		<link>http://www.craigmayhew.com/blog/2010/03/retrieve-drive-uuids-in-ubuntu/</link>
		<comments>http://www.craigmayhew.com/blog/2010/03/retrieve-drive-uuids-in-ubuntu/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 14:20:48 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[UUID]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=1027</guid>
		<description><![CDATA[One easy command to retrieve all drive UUIDs.

ls -lF /dev/disk/by-uuid

]]></description>
			<content:encoded><![CDATA[<p>One easy command to retrieve all drive UUIDs.</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">
ls -lF /dev/disk/by-uuid
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2010/03/retrieve-drive-uuids-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greasemonkey scripts won&#8217;t update on Ubuntu</title>
		<link>http://www.craigmayhew.com/blog/2010/02/greasemonkey-scripts-wont-update-on-ubuntu/</link>
		<comments>http://www.craigmayhew.com/blog/2010/02/greasemonkey-scripts-wont-update-on-ubuntu/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 20:11:00 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Guides/Fixes]]></category>
		<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[Linux Permissions]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=920</guid>
		<description><![CDATA[The usual reason for not being able to update the scripts is that your permissions are wrong in your Firefox folder. Your Grease Monkey scripts will be in your firefox folder. The default place for this is (please substitute {username} for your actual Ubuntu user name):

cd /home/{username}/.mozilla/firefox/gm_scripts/

You need to make sure you are the owner [...]]]></description>
			<content:encoded><![CDATA[<p>The usual reason for not being able to update the scripts is that your permissions are wrong in your Firefox folder. Your Grease Monkey scripts will be in your firefox folder. The default place for this is (please substitute {username} for your actual Ubuntu user name):</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">
cd /home/{username}/.mozilla/firefox/gm_scripts/
</pre>
<p>You need to make sure you are the owner of this folder. This command will make sure you are. Again please substitute whats inside the {} brackets.</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">
chown -R {username}:{usergroup} /home/{username}/.mozilla/firefox/gm_scripts
</pre>
<p>If that still fails to fix the problem, then you also need to make sure you have write permissions on your firefox settings folder.</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">
chmod -R 755 /home/{username}/.mozilla/firefox/gm_scripts
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2010/02/greasemonkey-scripts-wont-update-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Files in Linux</title>
		<link>http://www.craigmayhew.com/blog/2009/12/finding-files-in-linux/</link>
		<comments>http://www.craigmayhew.com/blog/2009/12/finding-files-in-linux/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 13:12:49 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=26</guid>
		<description><![CDATA[Find &#8220;text to find&#8221; in files within the current directory
grep -lir "text to find" *
Find &#8220;example&#8221; in filenames within the current directory
find -name '*example*'
Find a file called &#8220;example.txt&#8221; within the current directory
find -name 'example.txt'
Find all files larger than 1000k within the current directory
find -name '*' -size +1000k
]]></description>
			<content:encoded><![CDATA[<p>Find &#8220;text to find&#8221; in files within the current directory</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">grep -lir "text to find" *</pre>
<p>Find &#8220;example&#8221; in filenames within the current directory</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">find -name '*example*'</pre>
<p>Find a file called &#8220;example.txt&#8221; within the current directory</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">find -name 'example.txt'</pre>
<p>Find all files larger than 1000k within the current directory</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">find -name '*' -size +1000k</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2009/12/finding-files-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slow DNS Lookups in Firefox on Ubuntu 9.10 Karmic Koala</title>
		<link>http://www.craigmayhew.com/blog/2009/11/slow-dns-lookups-in-firefox-on-ubuntu-9-10-karmic-koala/</link>
		<comments>http://www.craigmayhew.com/blog/2009/11/slow-dns-lookups-in-firefox-on-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 15:15:11 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Guides/Fixes]]></category>
		<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=559</guid>
		<description><![CDATA[Unfortunately the IPv6 issue is still at large in Karmic Koala and will effect just about every internet application.
The problem is caused by Ubuntu requesting everything by IPv6 first even if there are no IPv6 Interfaces configured and timing out each time when it doesn&#8217;t get a response.
The workaround in firefox is to go to [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately the IPv6 issue is still at large in Karmic Koala and will effect just about every internet application.</p>
<p>The problem is caused by Ubuntu requesting everything by IPv6 first even if there are no IPv6 Interfaces configured and timing out each time when it doesn&#8217;t get a response.</p>
<p>The workaround in firefox is to go to &#8220;about:config&#8221;, just type it into the address bar and hit enter. Then change the value network.dns.disableIPv6 to TRUE.</p>
<p>The bug can be tracked here:<br />
<a href="https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/417757">https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/417757</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2009/11/slow-dns-lookups-in-firefox-on-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Setting Up PPTP VPN in Ubuntu 9.10 Karmic Koala</title>
		<link>http://www.craigmayhew.com/blog/2009/11/setting-up-vpn-in-ubuntu-9-10-karmic-koala/</link>
		<comments>http://www.craigmayhew.com/blog/2009/11/setting-up-vpn-in-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 07:00:21 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Guides/Fixes]]></category>
		<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[VPN Client]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=543</guid>
		<description><![CDATA[Ubuntu 9.10 doesn&#8217;t come with VPN connectivity out of the box. So you need to install 3 packages to get it to work. Symptoms of these packages not being installed are grayed out &#8220;Add&#8221; buttons and grayed out &#8220;Apply&#8221; buttons in the VPN connection manager.
Here&#8217;s the command to install the 3 packages:

sudo apt-get install network-manager-pptp [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 9.10 doesn&#8217;t come with VPN connectivity out of the box. So you need to install 3 packages to get it to work. Symptoms of these packages not being installed are grayed out &#8220;Add&#8221; buttons and grayed out &#8220;Apply&#8221; buttons in the VPN connection manager.</p>
<p>Here&#8217;s the command to install the 3 packages:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">
sudo apt-get install network-manager-pptp network-manager-vpnc network-manager-openvpn
</pre>
<p>I have no idea why Ubuntu doesn&#8217;t include these packages by default. Looks like a great many people are having this issue: https://bugs.launchpad.net/ubuntu/+source/network-manager-pptp/+bug/107738</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2009/11/setting-up-vpn-in-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
