<?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>prupert &#187; Linux</title>
	<atom:link href="http://www.prupert.co.uk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prupert.co.uk</link>
	<description>putting the know back in technology</description>
	<lastBuildDate>Sat, 04 Feb 2012 14:58:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>XBMC Ubuntu Minimal Maverick Install Script</title>
		<link>http://www.prupert.co.uk/2011/01/01/xbmc-ubuntu-minimal-maverick-install-script/</link>
		<comments>http://www.prupert.co.uk/2011/01/01/xbmc-ubuntu-minimal-maverick-install-script/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 20:12:39 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[HTPC]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=451</guid>
		<description><![CDATA[As a little New Year&#8217;s present, I have updated a script that has been knocking around to allow you to install XBMC on a minimal version of Ubuntu Maverick. If you simply install Ubuntu from the mini.iso containing the basic Ubuntu Maverick install, then on reboot, download my script using: wget www.prupert.co.uk/scripts/xbmcmaverickrevo.sh make it executable, [...]]]></description>
			<content:encoded><![CDATA[<p>As a little New Year&#8217;s present, I have updated a script that has been knocking around to allow you to install XBMC on a minimal version of Ubuntu Maverick.</p>
<p>If you simply install Ubuntu from the mini.iso containing the basic Ubuntu Maverick install, then on reboot, download my script using:</p>
<p><code>wget www.prupert.co.uk/scripts/xbmcmaverickrevo.sh</code></p>
<p>make it executable, using:</p>
<p><code>chmod a+x xbmcmaverickrevo.sh</code></p>
<p>then finally run it using:</p>
<p><code>sudo ./xbmcmaverickrevo.sh</code></p>
<p>I find it is best to run it again, once the script reboots the machine, as this fixes a few issues.</p>
<p>It is still a work in progress, as you can&#8217;t yet shutdown / restart etc via XBMC since it seems the method to add permissions in Ubuntu 10.10 have changed and they conflict with the setup here, so I am still looking into that. To shutdown / reboot at the moment, I log in via SSH and issue:</p>
<p><code>sudo shutdown -hP now</code></p>
<p>Also, it is designed to work just with the Acer Aspire Revo 3610, but there is no reason why it wont work with any other device (apart from maybe the audio configurations).</p>
<p>Enjoy.</p>
<p><a title="xbmcmaverickrevo.sh" href="http://www.prupert.co.uk/scripts/xbmcmaverickrevo.sh" target="_blank">Download It Here</a></p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=451" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2011/01/01/xbmc-ubuntu-minimal-maverick-install-script/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Install the Latest Version of LCD4LINUX on Ubuntu</title>
		<link>http://www.prupert.co.uk/2010/08/12/install-the-latest-version-of-lcd4linux-on-ubuntu/</link>
		<comments>http://www.prupert.co.uk/2010/08/12/install-the-latest-version-of-lcd4linux-on-ubuntu/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 14:00:40 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=438</guid>
		<description><![CDATA[Update: It seems that I need to add some additional steps when installing on a completely vanilla version of Ubuntu. So I have added all the steps that should now be required. Despite the most recent version (0.11.0) of lcd4linux being released in November 2009, Ubuntu Lucid comes with an older version and thus misses [...]]]></description>
			<content:encoded><![CDATA[<p>Update: It seems that I need to add some additional steps when installing on a completely vanilla version of Ubuntu. So I have added all the steps that should now be required.</p>
<p>Despite the most recent version (0.11.0) of <a href="http://ssl.bulix.org/projects/lcd4linux/" target="_blank">lcd4linux</a> being released in November 2009, Ubuntu Lucid comes with an older version and thus misses out on some new features and drivers, in particular drivers for the cool and cheap Pertelian X2040. <a href="http://ssl.bulix.org/projects/lcd4linux/wiki/Pertelian"><img class="alignright size-medium wp-image-439" title="Pertelian" src="http://www.prupert.co.uk/wp-content/uploads/2010/08/model1-300x224.jpg" alt="" width="300" height="224" /></a></p>
<p>It is however, possible to build the latest version of lcd4linux from source, but you need to do a few things in order to get it to work.</p>
<p>This little guide assumes you have built stuff before on Ubuntu, so have all the necessary build tools.</p>
<p>First, navigate to the folder you want to download and build the source in.</p>
<p>Then, download the latest version via svn:</p>
<p><code>svn co https://ssl.bulix.org/svn/lcd4linux/trunk lcd4linux</code></p>
<p>Next, navigate into the newly created source folder using <code>cd lcd4linux</code> and install some dependencies:</p>
<p><code>sudo apt-get install automake autoconf m4 perl libtool gettext</code></p>
<p>Then, run ./configure, if you want to include a specific driver, for instance for Pertelian, include it here, like this:<br />
<code>./configure --with-drivers=Pertelian</code><br />
Now, if you try to make, it wont work, I am not sure why, but there are some issues. To fix these, issue the two following commands:<br />
<code>mkdir m4</code><br />
<code>sudo ln -sf /usr/share/libtool/config/ltmain.sh .</code><br />
Now, you can run:<br />
<code>make</code><br />
<code>sudo make install</code><br />
And you now have a working and up-to-date lcd4linux. I&#8217;d recommend using checkinstall rather than make install, because you can uninstall the package at a later date if you want.</p>
<p>Doing all this allows me to run my Pertelan display on my little thin client that I use as a baby monitor. It now tells me the PIDs of FFmpeg and motion (so that I know that they are working and running), that the Internet connection is UP and the system load, alongside the date and time!<img class="alignleft size-medium wp-image-441" title="My Pertelian display." src="http://www.prupert.co.uk/wp-content/uploads/2010/08/2010-08-12-14.19.23-300x225.jpg" alt="" width="300" height="225" /></p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=438" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/08/12/install-the-latest-version-of-lcd4linux-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Configure Wireless / WiFi Networking in Ubuntu via the Command Line (CLI)</title>
		<link>http://www.prupert.co.uk/2010/06/25/how-to-configure-wireless-wifi-networking-in-ubuntu-via-the-command-line-cli/</link>
		<comments>http://www.prupert.co.uk/2010/06/25/how-to-configure-wireless-wifi-networking-in-ubuntu-via-the-command-line-cli/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 15:42:40 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WiFi]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=370</guid>
		<description><![CDATA[There are a number of tutorials available on-line for sorting out WiFi in Ubuntu via the CLI, but most of them seem quite outdated, so I decided to do my own. I did this on a minimal install of Ubuntu Lucid, so it is as up-to-date as possible. The PC I was using has no [...]]]></description>
			<content:encoded><![CDATA[<p>There are a number of <a title="Ubuntu HowTo" href="http://ubuntuforums.org/showthread.php?t=202834" target="_blank">tutorials </a>available on-line for sorting out WiFi in Ubuntu via the CLI, but most of them seem quite outdated, so I decided to do my own.</p>
<p>I did this on a minimal install of Ubuntu Lucid, so it is as up-to-date as possible. The PC I was using has no Windows Manager of Graphical Display Manager, just the good old terminal so all this is done via the CLI only. I did this using a USB WiFI dongle, but it should be the same whether you use an internal card or a USB card.</p>
<p>First, you need to install the relevant software. You need to have a wired connection at this point, otherwise this wont work.</p>
<p><code>sudo apt-get install wireless-tools wpasupplicant</code></p>
<p>If you are connecting to an open network, you wont need wpasupplicant. Next, you need to &#8220;bring up&#8221; (essentially this means activate) your WiFi interface. So, issue:</p>
<p><code>sudo ifconfig wlan0 up</code></p>
<p>Next, to make sure your wireless device is working as it should issue:</p>
<p><code>iwconfig</code><br />
and then<br />
<code>sudo iwlist scan</code></p>
<p>This should show you some wireless networks as proof that the WiFi device is working, if something goes wrong here, then there is a problem with your device or driver and you need to get googling.</p>
<p>If you are accessing a secured network and you really should be, you need to access the correct version of your WiFi key. To get your key, issue this command:</p>
<p><code>wpa_passphrase YOURSSID YOURWIFIPASSWORD </code></p>
<p>This will result in something that looks like this:</p>
<p><code>network={<br />
ssid="YOURSSID"<br />
#psk="YOURWIFIPASSWORD"<br />
psk=fe727aa8b64ac9b3f54c72432da14faed933ea511ecab1 5bbc6c52e7522f709a<br />
} </code></p>
<p>You need to make a note of the long phrase after psk= (NOT #psk=) as this your WiFi password in hex format.</p>
<p>Next, you need to edit your interfaces file, so issue:</p>
<p><code>sudo nano /etc/network/interfaces</code></p>
<p>At the end of this file, you need to add your WiFi configuration. Here are the options you can add.</p>
<p>auto wlan0     #change this to the name of your WiFi interface<br />
iface wlan0 inet dhcp     #this is normally fine, if you want a static IP address replace &#8220;dhcp&#8221; with &#8220;static&#8221;<br />
netmask 255.255.255.0     #change this as appropriate for your network, this value is usually right<br />
gateway 192.168.1.1     #change this as appropriate for your network<br />
address 192.168.1.100     #only needed for a static IP address<br />
dns-nameservers 192.168.1.1     #only needed for a static IP address<br />
wpa-driver wext     #you shouldn&#8217;t need to change this<br />
wpa-ssid YOURSSID     #just type the name of your SSID here<br />
wpa-ap-scan 1     #if the name of your SSID is hidden usually, type 2 instead of 1<br />
wpa-proto WPA    #if you use WPA1 type WPA, if you use WPA2 type RSN<br />
wpa-pairwise CCMP     #if you use AES type CCMP, if you use TKIP type TKIP<br />
wpa-group CCMP     #if you use AES type CCMP, if you use TKIP type TKIP<br />
wpa-key-mgmt WPA-PSK     #usually WPA-PSK (if you share a key) but sometimes WPA-EAP (for enterprises)<br />
wpa-psk YOURHEXKEYFROMABOVE     #the hex key that you generated earlier</p>
<p>Thus, since I am using a WiFi card that is identified as wlan0 and am connecting to a WPA1 AES encrypted network called MYPLACE that isn&#8217;t hidden without a static IP address, this is what I added:</p>
<p><code><br />
auto wlan0<br />
iface wlan0 inet dhcp<br />
netmask 255.255.255.0<br />
gateway 192.168.1.1<br />
wpa-driver wext<br />
wpa-ssid MYPLACE<br />
wpa-ap-scan 1<br />
wpa-proto WPA<br />
wpa-pairwise CCMP<br />
wpa-group CCMP<br />
wpa-key-mgmt WPA-PSK<br />
wpa-psk 71c81a844973ae7bb1243141e5caa7b6bb0e2d7eetcetcetc</code></p>
<p>Finally, comment out the top section so it looks like this:<br />
<code><br />
#auto eth0<br />
#iface eth0 inet dhcp</code></p>
<p>This stops your wired network from working. This helps to ensure there are no conflicts. Remember, if you want your wired network to work again, remove these two comments (the #).</p>
<p>Finally, save the file by pressing CTRL and X and then pressing Y to save to the file. Now, reboot and your network should come up. Yay!</p>
<p>Some people have found that this doesn&#8217;t always work, so the next thing to do is to edit the configuration file for the wpasupplicant program. Do this by issuing:</p>
<p><code>sudo nano /etc/wpa_supplicant.conf</code></p>
<p>Basically, you add pretty much the same information here as you did to the interfaces file, except without the wpa- part. So, my file looks like this:</p>
<p><code><br />
ap_scan=1<br />
ctrl_interface=/var/run/wpa_supplicant<br />
network={<br />
ssid="MYPLACE"<br />
scan_ssid=0<br />
psk=71c81a844973ae7bb1243141e5caa7b6bb0e2d7eetcetcetc<br />
key_mgmt=WPA-PSK<br />
proto=WPA<br />
pairwise=CCMP<br />
group=CCMP<br />
}</code></p>
<p>As far as I am aware, the options are the same. So, edit this file as necessary, make sure you add the ctrl_interface and network={ at the beginning and the } part at the end. Save it and try restarting again. If it still doesn&#8217;t work, then kick your PC, wish you had installed Windows 7 instead and go off and do some Googling. You&#8217;ll find the answer on the Ubuntu forums and you&#8217;ll be happy again.</p>
<p>Best of luck!</p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=370" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/06/25/how-to-configure-wireless-wifi-networking-in-ubuntu-via-the-command-line-cli/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>FINALLY: A Bash Progress Indicator for ffmpeg that WORKS</title>
		<link>http://www.prupert.co.uk/2010/05/11/finally-a-bash-progress-indicator-for-ffmpeg-that-works/</link>
		<comments>http://www.prupert.co.uk/2010/05/11/finally-a-bash-progress-indicator-for-ffmpeg-that-works/#comments</comments>
		<pubDate>Tue, 11 May 2010 16:39:40 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Transcode]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=352</guid>
		<description><![CDATA[I decided to write a progress indicator for ffmpeg video conversions. This was much much much harder than I ever anticipated. I was in for a tough time. Annoyingly, for what ever reason, ffmpeg doesn&#8217;t use Carriage Returns and Line Feeds in the expected way when it outputs its output during a conversion, resulting in [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to write a progress indicator for ffmpeg video conversions. This was much much much harder than I ever anticipated. I was in for a tough time. Annoyingly, for what ever reason, ffmpeg doesn&#8217;t use Carriage Returns and Line Feeds in the expected way when it outputs its output during a conversion, resulting in two days of stress for a noobie bashophile like me.</p>
<p><img class="alignleft size-medium wp-image-357" title="ffmpeg-logo" src="http://www.prupert.co.uk/wp-content/uploads/2010/05/ffmpeg-logo-300x75.png" alt="" width="300" height="75" /></p>
<p>Eventually, after hours of googling, I came across the solution. This script should be a very accurate indicator of the progress of a ffmpeg video conversion. It currently only tells you how far the conversion has progressed as a percentage, <span style="text-decoration: line-through;">but I will soon add an ETA and time to it as well (now added, see update below)</span>. It does this, by looking at the number of frames your input video file has, and then reading what frame ffmpeg is currently on every ten seconds, and printing out the percentage.</p>
<p><img class="size-medium wp-image-355 alignright" title="ffmpeg-progress" src="http://www.prupert.co.uk/wp-content/uploads/2010/05/Screenshot-2-300x134.png" alt="" width="300" height="134" /></p>
<p>You have to put in your own ffmpeg command if you want, mine is just for converting .mpg DVB-T recordings from MythTV to mkv files.<br />
To use the script, call the script with the full path of the file to be converted afterwards, e.g.: &#8220;./ffmpeg-progress.sh /home/prupert/FIVE.mpg&#8221; and it gives you something like this:</p>
<p>UPDATE:</p>
<p>I have now added an ETA function, which, as far as I can tell, should be pretty accurate, I&#8217;ll be testing it tomorrow to see how well it works. It is based on the remaining number of frames to process and the current fps that ffmpeg is working at. I also plan to convert the script to python, if possible, to make it cross platform and give it a GUI. It will also be called YAFF (Yet Another Ffmpeg Frontend).</p>
<p>Essentially, the script turns ffmpeg output from this:</p>
<p><code>frame=42992 fps= 21 q=29.0 size=  217692kB time=1717.72 bitrate=1038.2kbits/s dup=12 drop=0<br />
frame=43002 fps= 21 q=29.0 size=  217692kB time=1718.12 bitrate=1038.0kbits/s dup=12 drop=0<br />
frame=43018 fps= 21 q=29.0 size=  217756kB time=1718.76 bitrate=1037.9kbits/s dup=12 drop=0<br />
frame=43036 fps= 21 q=29.0 size=  217788kB time=1719.48 bitrate=1037.6kbits/s dup=12 drop=0<br />
frame=43050 fps= 21 q=29.0 size=  217820kB time=1720.04 bitrate=1037.4kbits/s dup=12 drop=0<br />
frame=43062 fps= 21 q=29.0 size=  217852kB time=1720.52 bitrate=1037.3kbits/s dup=12 drop=0<br />
frame=43078 fps= 21 q=29.0 size=  217884kB time=1721.16 bitrate=1037.0kbits/s dup=12 drop=0<br />
frame=43090 fps= 21 q=29.0 size=  217916kB time=1721.64 bitrate=1036.9kbits/s dup=12 drop=0<br />
frame=43106 fps= 21 q=29.0 size=  217948kB time=1722.28 bitrate=1036.7kbits/s dup=12 drop=0<br />
    Last message repeated 2 times<br />
[mpeg2video @ 0x8f7ebf0]ac-tex damaged at 15 0<br />
[mpeg2video @ 0x8f7ebf0]concealing 90 DC, 90 AC, 90 MV errors<br />
frame=43122 fps= 21 q=29.0 size=  217981kB time=1722.92 bitrate=1036.4kbits/s dup=12 drop=0<br />
frame=43140 fps= 21 q=29.0 size=  218045kB time=1723.64 bitrate=1036.3kbits/s dup=12 drop=0<br />
frame=43155 fps= 21 q=29.0 size=  218077kB time=1724.24 bitrate=1036.1kbits/s dup=12 drop=0<br />
frame=43168 fps= 21 q=29.0 size=  218141kB time=1724.76 bitrate=1036.1kbits/s dup=12 drop=0<br />
frame=43182 fps= 21 q=29.0 size=  218205kB time=1725.32 bitrate=1036.1kbits/s dup=12 drop=0<br />
frame=43194 fps= 21 q=29.0 size=  218237kB time=1725.80 bitrate=1035.9kbits/s dup=12 drop=0<br />
frame=43207 fps= 21 q=29.0 size=  218269kB time=1726.32 bitrate=1035.8kbits/s dup=12 drop=0</code></p>
<p>In to this:</p>
<p><code>/home/rupert/Downloads/Village of the Damned.mpg..mpg has 172447 frames, now converting<br />
ffmpeg PID = 24868<br />
ffmpeg: 43062 of 172447 frames, progress: 24% and ETA: 1h 42m 41s</code></p>
<p>Which must be a good thing in anyone&#8217;s book <img src='http://www.prupert.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The script is hosted at github, enjoy:<br />
<script src="http://gist.github.com/397509.js?file=ffmpeg-progress.sh"></script></p>
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/uk/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.0/uk/88x31.png" /></a><br /><span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/Text" property="dc:title" rel="dc:type">YAFF</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="www.prupert.co.uk" property="cc:attributionName" rel="cc:attributionURL">Rupert Plumridge</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/uk/">Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England &amp; Wales License</a></p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=352" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/05/11/finally-a-bash-progress-indicator-for-ffmpeg-that-works/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Ubuntu Lynx (10.04 LTS)</title>
		<link>http://www.prupert.co.uk/2010/04/27/ubuntu-lynx-10-4-lts/</link>
		<comments>http://www.prupert.co.uk/2010/04/27/ubuntu-lynx-10-4-lts/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 14:01:18 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=313</guid>
		<description><![CDATA[I&#8217;m a regular user of Ubuntu, using it now on my laptop, one of my work PCs (the other runs XP for Microsoft Office compatibility), my HTPC and my XBMC box. Yeah, I know, I have too many PCs. It seems Canonical (the developers of Ubuntu) are keen to push the next release, called Lucid [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a regular user of Ubuntu, using it now on my laptop, one of my work PCs (the other runs XP for Microsoft Office compatibility), my HTPC and my XBMC box. Yeah, I know, I have too many PCs.</p>
<p>It seems Canonical (the developers of Ubuntu) are keen to push the next release, called Lucid Lynx, or 10.4 LTS (Long Term Support). To help the push, they have published a number of badges for websites.</p>
<p>Here are all of them, since I love Ubuntu so much <img src='http://www.prupert.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display.js"></script></p>
<p><script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display1.js"></script></p>
<p><script type="text/javascript" src="http://www.ubuntu.com/files/countdown/display2.js"></script></p>
<p><a href="http://www.ubuntu.com/"><img src="http://www.ubuntu.com/files/countdown/static.png" width="180" height="150" alt="Ubuntu: For Desktops, Servers, Netbooks and in the cloud" border="0" /></a></p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=313" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/04/27/ubuntu-lynx-10-4-lts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some random Linux tips: mutt 127 exec error and rsync operation not supported error</title>
		<link>http://www.prupert.co.uk/2010/02/07/some-random-linux-tips-mutt-127-exec-error-and-rsync-operation-not-supported-error/</link>
		<comments>http://www.prupert.co.uk/2010/02/07/some-random-linux-tips-mutt-127-exec-error-and-rsync-operation-not-supported-error/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 02:43:41 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=265</guid>
		<description><![CDATA[I&#8217;ve been fixing a few issues with my Linux server recently and had to search to find the fixes, so I though I&#8217;d post the fixes here. Up until about a week ago, I was using ssmtp as my mail server to allow my Ubuntu server to email me certain things. It uses the gmail [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been fixing a few issues with my Linux server recently and had to search to find the fixes, so I though I&#8217;d post the fixes here.</p>
<p>Up until about a week ago, I was using ssmtp as my mail server to allow my Ubuntu server to email me certain things. It uses the gmail ssmtp server to send me mail. It was working fine for about a year, but suddenly stopped working recently, so I thought I would sort the problem out. I ended up removing ssmtp and installing postfix, which now is installed by default on ubuntu systems, using the guide from <a title="Ubuntu wiki" href="https://help.ubuntu.com/community/PostfixBasicSetupHowto" target="_blank">here</a>. It worked very well, except my default user wasn&#8217;t able to send email using the default mail client I was using (mutt). I kept on getting the same error:<code> Error sending message, child exited 127 (Exec error.)</code></p>
<p>It turns out I had a .muttrc file in my home folder, from an earlier failed attempt to set up an email server that had some stupid settings, most noticeably a sendmail setting. I simply deleted the .muttrc file and the above error went away.</p>
<p>However, it turned out that installing postfix meant that my server started emailing me whenever cron ran a job from /etc/crontab. Which in some cases was every two minutes! So, I found out that simply adding:<code> " &gt;/dev/null   2&gt;&amp;1 "</code> to the end of every entry would stop the results being emailed to me.</p>
<p>This turned out to be quite useful, since cron emailed me with the results of my daily back up, that uses rsync, saying that it had failed with litteraly hundreds of the following error:<code> /bin/cp: cannot create link Operation not supported </code> some more googling revealed that this usually occurs when cp (copy) is trying to make a symlink on a disk that does not support symlinks, such as a Windows formatted NTFS disk. This was exactly my situation, so I simply reformatted my backup disk using gparted as ext3 and now rsync is much happier.</p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=265" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/02/07/some-random-linux-tips-mutt-127-exec-error-and-rsync-operation-not-supported-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automount a drive in Ubuntu</title>
		<link>http://www.prupert.co.uk/2010/01/14/automount-a-drive-in-ubuntu/</link>
		<comments>http://www.prupert.co.uk/2010/01/14/automount-a-drive-in-ubuntu/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 08:56:19 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=247</guid>
		<description><![CDATA[I wrote this as a post on XBMC forum, but I thought I should share the wealth. The following is a guide to automounting a drive in a minimal install of Ubuntu with no GUI or desktop, only CLI access. To manually get a minimal install of Ubuntu to auto-mount a USB drive at boot: [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this as a post on XBMC forum, but I thought I should share the wealth. The following is a guide to automounting a drive in a minimal install of Ubuntu with no GUI or desktop, only CLI access.</p>
<p>To manually get a minimal install of Ubuntu to auto-mount a USB drive at boot:</p>
<p>First off, you need command line access (also called The Terminal) to your installation and also you need to boot WITHOUT your USB drive connected. So, shutdown your box and then disconnect your USB drive. Now restart the box. Then, when XBMC has loaded, press Alt and F7 together, which should bring up a new Terminal screen with a log in.</p>
<p>Then log in using your username and password that you set up when you installed Ubuntu.</p>
<p>Next you need to type the following:</p>
<p><code>tail -f /var/log/syslog</code></p>
<p>This basically prints out the system log as it changes. Once you have typed this, plug in your USB drive. You should see a load of new stuff being printed in your terminal, this is the Ubuntu system recognising and loading your USB drive (though not mounting it). You should see something like this:</p>
<p><code><br />
Jan  8 13:13:34 xpuntu kernel: [ 1671.616121] usb 2-2: new high speed USB device using ehci_hcd and address 5<br />
Jan  8 13:13:34 xpuntu kernel: [ 1671.750917] usb 2-2: configuration #1 chosen from 1 choice<br />
Jan  8 13:13:34 xpuntu kernel: [ 1671.752477] scsi6 : SCSI emulation for USB Mass Storage devices<br />
Jan  8 13:13:34 xpuntu kernel: [ 1671.752815] usb-storage: device found at 5<br />
Jan  8 13:13:34 xpuntu kernel: [ 1671.752820] usb-storage: waiting for device to settle before scanning<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.753513] usb-storage: device scan complete<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.754606] scsi 6:0:0:0: Direct-Access     WDC WD16 00AABB-56PUA0    7H00 PQ: 0 ANSI: 2 CCS<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.755793] sd 6:0:0:0: Attached scsi generic sg2 type 0<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.756402] sd 6:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.757163] sd 6:0:0:0: [sdb] Write Protect is off<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.757171] sd 6:0:0:0: [sdb] Mode Sense: 00 38 00 00<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.757176] sd 6:0:0:0: [sdb] Assuming drive cache: write through<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.761108] sd 6:0:0:0: [sdb] Assuming drive cache: write through<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.761119]  sdb: sdb1<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.774572] sd 6:0:0:0: [sdb] Assuming drive cache: write through<br />
Jan  8 13:13:39 xpuntu kernel: [ 1676.774583] sd 6:0:0:0: [sdb] Attached SCSI disk</code></p>
<p>You want to look out for the reference to &#8220;[sd*]&#8220;, in my case it is [sdb]. This is the name that Ubuntu has given to your USB drive.</p>
<p>Next stop the tail command, so press:</p>
<p>Ctrl and C</p>
<p>This stops the tail command, then type the following:</p>
<p><code>sudo blkid</code></p>
<p>You will have to enter your password. This should give you something like the following:</p>
<p><code>/dev/sda1: UUID="1024B74F24B73696" TYPE="ntfs"<br />
/dev/sda5: UUID="015273a3-e1a8-4d53-867f-ffec83b3df60" TYPE="swap"<br />
/dev/sda6: UUID="50b2512a-4d07-4a83-860e-be608a5b2cb7" TYPE="ext4"<br />
/dev/sdb1: LABEL="" UUID="48D3-B1C9" TYPE="vfat"</code></p>
<p>What you see should be different from this. This basically lists all the drives attached to your system, alongside two important pieces of info, the drives UUID number and what the drive is formatted as. You need to find the reference to the &#8220;sd*&#8221; that you found out earlier, so in my case it is /dev/sdb1. Then, make a note of the UUID number and the TYPE as well, in my case it is vfat.</p>
<p>So, now we know where our USB drive is and what it is called.</p>
<p>Next, we want to tell Ubuntu to automount it each time it boots.</p>
<p>So, you need to edit the /etc/fstab file that tells Ubuntu what drives to mount at boot. Be careful here, don&#8217;t delete or change anything that is already in this file, since it will stop your device from booting. It is ok to add new stuff to this file however. To be safe, we shall make a backup of the /etc/fstab file, just incase we mess up. If we do mess up, simple copy this backup over the /etc/fstab file and reboot and everything will be back as we found it. So, to make a backup simple type:</p>
<p><code>sudo cp /etc/fstab /etc/fstabackup</code></p>
<p>This copies the /etc/fstab file to /etc/fstabackup, which we can use as a backup.</p>
<p>To edit the /etc/fstab file, you need to use the command line Text editor called Vi ([url]http://en.wikipedia.org/wiki/Vi[/url] and [url]http://www.cs.colostate.edu/helpdocs/vi.html[/url]) I would recommend reading about it first, since it is a bit of an arse to use in Terminal mode.</p>
<p>Start Vi to edit your file using:</p>
<p><code>sudo vi /etc/fstab</code></p>
<p>Use your arrow keys to move down to the very end of the file. Then press &#8220;a&#8221; to Append stuff to the end of the file. Press Return to start a new line and then type the following:</p>
<p><code>UUID=YOURUUIDNUMBERHERE /home/xbmc/usb vfat defaults 0 0</code></p>
<p>Add your own UUID number after the = and change the TYPE if yours wasn&#8217;t vfat. /home/xbmc/usb is where you will be mounting your USB drive, this can be anything you want, but to make your life easy, since XBMC defaults to showing your home directory in the file browser, put it under your home directory, so in my case, the main user on my box is xbmc, so I use /home/xbmc/usb.</p>
<p>Press Enter again after typing that, then press Escape, then press and hold Shift and press Z twice, this saves and exits Vi.</p>
<p>Next, you need to make the folder that the drive will be mounted in, so type:</p>
<p><code>mkdir /home/xbmc/usb</code></p>
<p>Replace /home/xbmc/usb with whatever you put in the /etc/fstab file earlier.</p>
<p>Finally, that is it. Hopefully, if all went well, you can now simply reboot, with your USB drive attached, and the drive will be found at /home/xbmc/usb which you can navigate to from XBMC.</p>
<p>Best of luck!!</p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=247" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2010/01/14/automount-a-drive-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Conky and Ubuntu 9.04 to play nice</title>
		<link>http://www.prupert.co.uk/2009/08/21/getting-conky-and-ubuntu-9-04-to-play-nice/</link>
		<comments>http://www.prupert.co.uk/2009/08/21/getting-conky-and-ubuntu-9-04-to-play-nice/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 13:45:44 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=163</guid>
		<description><![CDATA[Ever since the most recent upgrade to Ubuntu (9.04) my conky installation just has not been happy. I am guessing it is something to do with the fancy desktop effects provided by Compiz, and until there is a fix, you kinda have to implement a hack. First, the only way to ensure that conky doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since the most recent upgrade to Ubuntu (9.04) my conky installation just has not been happy. I am guessing it is something to do with the fancy desktop effects provided by Compiz, and until there is a fix, you kinda have to implement a hack. </p>
<div id="attachment_165" class="wp-caption alignleft" style="width: 237px"><a href="http://www.prupert.co.uk/wp-content/uploads/2009/08/conky-jc.png"><img src="http://www.prupert.co.uk/wp-content/uploads/2009/08/conky-jc-227x300.png" alt="Conky screenshot" title="conky-jc" width="227" height="300" class="size-medium wp-image-165" /></a><p class="wp-caption-text">Conky screenshot</p></div>
<p>First, the only way to ensure that conky doesn&#8217;t overlay ALL your windows, is to use these settings in your .conkyrc:</p>
<p><code># Create own window instead of using desktop (required in nautilus)<br />
own_window yes</p>
<p># If own_window is yes, you may use type normal, desktop or override<br />
own_window_type override</code></p>
<p>Then, you need to create a little script that you run each time you boot up your computer. The script has to say:<br />
<code><br />
killall conky<br />
conky</code></p>
<p>Run this script after the computer has booted up, and conky behaves nicely, and stays on the desktop as it is meant to.</p>
<p>If anyone has a better solution than this then give me a shout, but this is the only way I have found of getting conky to not sit on top of everything else, not blank out all icon on the desktop, or not completley dissapear <img src='http://www.prupert.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=163" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2009/08/21/getting-conky-and-ubuntu-9-04-to-play-nice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fsck.ext3: Bad magic number in super-block</title>
		<link>http://www.prupert.co.uk/2009/07/15/fsckext3-bad-magic-number-in-super-block/</link>
		<comments>http://www.prupert.co.uk/2009/07/15/fsckext3-bad-magic-number-in-super-block/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 13:48:34 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=153</guid>
		<description><![CDATA[So, every so often after upgrading my Ubuntu server, I occasionally get an error during boot, saying the following: fsck.ext3: Superblock invalid, trying backup blocks&#8230; fsck.ext3: Bad magic number in super-block while trying to open /dev/sdc1 fsck died with exit code 8 After some rooting around, it turns out to be an error on my [...]]]></description>
			<content:encoded><![CDATA[<p>So, every so often after upgrading my Ubuntu server, I occasionally get an error during boot, saying the following:</p>
<p><em>fsck.ext3: Superblock invalid, trying backup blocks&#8230;</em></p>
<p><em>fsck.ext3: Bad magic number in super-block while trying to open /dev/sdc1</em></p>
<p><em>fsck died with exit code 8</em></p>
<p>After some rooting around, it turns out to be an error on my part. It is all down to my /etc/fstab file (a text file which tells Ubuntu how and where to mount all the hard drives in your system). A while ago, Ubuntu changed the way it records drives details, whereas it use to use /dev/sdX to refer to a drive (with X being a-z) it now uses UUIDs instead. These are unique ID numbers that the system gives to a drive. It changed from /dev/sdX to UUID since occasionally the sdX number would change upon a reboot.</p>
<p>This was exactly what was happening to me. In my fstab file I used /dev/sdc1 to refer to one USB hard drive, and a UUID to refer to another. fstab correctly mounted the UUID drive, but the /dev/sdc1 had changed from the original USB drive it referred to, to the same USB drive that I mounted via the UUID number, thus it failed to mount. When fsck (Ubuntu&#8217;s file checking program) runs, it uses fstab to find out info about the hard drives you have. If you have a situation like mine where two entries where referring to the same hard drive, fsck freaks out and dies, thus the error.</p>
<p>To fix this, you need to edit your fstab. Now, if you are lucky, you can simply type EXIT at the prompt you get when this error occurs and the system will boot up. If not, I&#8217;d recommend using an Ubuntu LiveCD to boot up the system and then edit your fstab file.</p>
<p>So, open /etc/fstab in a text editor, make sure you use a user with the correct privileges to do this. Then, open a command prompt and type</p>
<p><em>sudo fdisk -l</em></p>
<p>This will list all your hard drives, allowing you to identify them. Next, type:</p>
<p><em>sudo blkid</em></p>
<p>This will list all your hard drives and their UUID numbers.</p>
<p>Using the info from the first command, fdisk and the UUID number from the second command, blkid, you can work out which device has which UUID number. Then make sure in your /etc/fstab file, you refer to devices using UUID=XXXXXXXXXXXXXXX instead of /dev/sdXX.</p>
<p>This way, your disks will always mount correctly and you shouldn&#8217;t get anymore fsck errors on boot, well until your hard drive dies lol!</p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=153" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2009/07/15/fsckext3-bad-magic-number-in-super-block/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Finding missing packages when building from source on Ubuntu</title>
		<link>http://www.prupert.co.uk/2009/03/25/finding-missing-packages-when-building-from-source-on-ubuntu/</link>
		<comments>http://www.prupert.co.uk/2009/03/25/finding-missing-packages-when-building-from-source-on-ubuntu/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 18:35:00 +0000</pubDate>
		<dc:creator>prupert</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.prupert.co.uk/?p=137</guid>
		<description><![CDATA[So, you are building a program from source on Ubuntu and you have run into dependency issues, what do you do? One solution is to use apt-file. Install this with sudo apt-get install apt-file. Then run apt-file update to update it&#8217;s cache. Now, you can use it to search for your missing dependencies by running [...]]]></description>
			<content:encoded><![CDATA[<p>So, you are building a program from source on Ubuntu and you have run into dependency issues, what do you do?</p>
<p>One solution is to use apt-file. Install this with sudo apt-get install apt-file. Then run apt-file update to update it&#8217;s cache. Now, you can use it to search for your missing dependencies by running apt-file search mymissingfile.so (replace mymissingfile.so with whatver you want) and it will show you what packages provide that dependency. The go ahead and install that package to solve your problems, it even shows you where that dependency is installed to!</p>
 <img src="http://www.prupert.co.uk/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=137" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.prupert.co.uk/2009/03/25/finding-missing-packages-when-building-from-source-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

