<?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>Alex Sleat &#187; HowTo</title>
	<atom:link href="http://alexsleat.co.uk/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexsleat.co.uk</link>
	<description>/home/alex</description>
	<lastBuildDate>Mon, 21 May 2012 22:17:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Toggle Touchpad With Keyboard Shortcut in Ubuntu</title>
		<link>http://alexsleat.co.uk/2012/03/22/toggle-touchpad-with-keyboard-shortcut-in-ubuntu/</link>
		<comments>http://alexsleat.co.uk/2012/03/22/toggle-touchpad-with-keyboard-shortcut-in-ubuntu/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 09:56:16 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[enable]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[jupiter]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[touchpad]]></category>
		<category><![CDATA[trackpad]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=26369</guid>
		<description><![CDATA[<br/>Install Jupiter <p>Instructions for Ubuntu 11.10, 11.04, 10.10, 10.04: http://www.webupd8.org/2011/09/jupiter-applet-finally-available-for.html</p> sudo add-apt-repository ppa:webupd8team/jupiter sudo apt-get update sudo apt-get install jupiter <p>Jupiter comes with a useful script to disable and re-enable the touchpad/track pad, it can be ran using the following command:</p> sudo /usr/lib/jupiter/scripts/touchpad <p>Now all you&#8217;ll need to do is add this command to a [...]]]></description>
			<content:encoded><![CDATA[<br/><h5>Install Jupiter</h5>
<p>Instructions for Ubuntu 11.10, 11.04, 10.10, 10.04: <a href="http://www.webupd8.org/2011/09/jupiter-applet-finally-available-for.html">http://www.webupd8.org/2011/09/jupiter-applet-finally-available-for.html</a></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> add-apt-repository ppa:webupd8team/jupiter <br />
<span class="kw2">sudo</span> apt-get update <br />
<span class="kw2">sudo</span> apt-get <span class="kw2">install</span> jupiter</div>
<p>Jupiter comes with a useful script to disable and re-enable the touchpad/track pad, it can be ran using the following command:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> /usr/lib/jupiter/scripts/touchpad</div>
<p>Now all you&#8217;ll need to do is add this command to a keyboard shortcut, below are instructions for several desktop environments.</p>
<p>
<hr /></p>
<h6>In xfce:</h6>
<p>Applications &gt; Settings &gt; Settings Manager</p>
<p>Click Keyboard</p>
<p style="text-align: center;"><a href="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-xfce.png"><img class="aligncenter  wp-image-26574" title="Screenshot xfce" src="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-xfce.png" alt="" width="563" height="377" /></a></p>
<p>Click on the &#8220;Applications Shortcuts&#8221; tab.</p>
<p>Click Add:</p>
<p style="text-align: center;"><a href="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-120112-174438.png"><img class="aligncenter  wp-image-26571" title="Screenshot - 120112 - 17:44:38" src="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-120112-174438.png" alt="" width="563" height="377" /></a></p>
<p>Here you will be promped with a new window asking for the command you wish to run, enter the following:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> /usr/lib/jupiter/scripts/touchpad</div>
<p><a href="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-120112-174503.png"><img class="aligncenter size-full wp-image-26572" title="Screenshot - 120112 - 17:45:03" src="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-120112-174503.png" alt="" width="330" height="223" /></a></p>
<p>Click OK and it will now ask for a keyboard shortcut. Simply press the key combination you want to assign to disabling the touchpad (for example, I used Alt+F1) the keys you&#8217;re pressing will show up and the window will close.</p>
<p><a href="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-120112-174516.png"><img class="aligncenter size-full wp-image-26573" title="Screenshot - 120112 - 17:45:16" src="http://alexsleat.co.uk/wp-content/uploads/2012/01/Screenshot-120112-174516.png" alt="" width="338" height="196" /></a></p>
<p>You&#8217;ll now see the command and shortcut in the list and you can now press that key combo to disable the trackpad and press it again to re-enable it.</p>
<p>
<hr /></p>
<h6>In Gnome:</h6>
<p>
<hr /></p>
<h6>In Unity:</h6>
<p>
<hr /></p>
<p>bish bash bosh.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2012/03/22/toggle-touchpad-with-keyboard-shortcut-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updating The Kernel in Ubuntu</title>
		<link>http://alexsleat.co.uk/2012/01/11/updating-the-kernel-in-ubuntu/</link>
		<comments>http://alexsleat.co.uk/2012/01/11/updating-the-kernel-in-ubuntu/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 12:35:25 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[check kernel verison]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=26414</guid>
		<description><![CDATA[<br/>Download the latest from here: <p>http://kernel.ubuntu.com/~kernel-ppa/mainline/</p> <p>The folders correspond to kernel versions and should also include the ubuntu version, for example I chose to update 11.10 (oneiric) from &#8220;3.0.0-14-generic&#8221; to &#8220;3.1.4&#8243;, this was in a directory called &#8220;v3.1.4-oneiric/&#8220;.</p> You&#8217;ll need 3 files (replace * with the kernel version you&#8217;ve downloaded): <p>linux-headers-*_all.deb</p> For 64 bit [...]]]></description>
			<content:encoded><![CDATA[<br/><h6>Download the latest from here:</h6>
<p><a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/">http://kernel.ubuntu.com/~kernel-ppa/mainline/</a></p>
<p>The folders correspond to kernel versions and should also include the ubuntu version, for example I chose to update 11.10 (oneiric) from &#8220;3.0.0-14-generic&#8221; to &#8220;3.1.4&#8243;, this was in a directory called &#8220;<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/">v3.1.4-oneiric/</a>&#8220;.</p>
<h6>You&#8217;ll need 3 files <em>(replace * with the kernel version you&#8217;ve downloaded)</em>:</h6>
<p>linux-headers-*_all.deb</p>
<h6>For 64 bit systems <em>(replace * with the kernel version you&#8217;ve downloaded)</em>:</h6>
<p>linux-headers-*_amd64.deb<br />
linux-image-*_amd64.deb</p>
<h6>For 32 bit systems <em>(replace * with the kernel version you&#8217;ve downloaded)</em>:</h6>
<p>linux-headers-*_i386.deb<br />
linux-image-*_i386.deb</p>
<h6>Once you have the files, install them in the following order using these commands <em>(of course, replacing the version number for the ones you&#8217;ve downloaded)</em>:</h6>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> dpkg -U linux-headers<span class="nu0">-3.1</span><span class="nu0">.4</span>-030104_3<span class="nu0">.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>.201111281851_all.deb<br />
<span class="kw2">sudo</span> dpkg -U linux-headers<span class="nu0">-3.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>-generic_3<span class="nu0">.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>.201111281851_amd64.deb<br />
<span class="kw2">sudo</span> dpkg -U linux-image<span class="nu0">-3.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>-generic_3<span class="nu0">.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>.201111281851_amd64.deb</div>
<p>Once that&#8217;s done, reboot. Once you&#8217;re back use the following command to check that the kernel you&#8217;re using is the one you&#8217;ve just downloaded and installed!</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">uname</span> -r</div>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2012/01/11/updating-the-kernel-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Disable Mouse Scroll to Switch Desktop &#8211; OpenBox</title>
		<link>http://alexsleat.co.uk/2011/05/15/howto-disable-mouse-scroll-to-switch-desktop-openbox/</link>
		<comments>http://alexsleat.co.uk/2011/05/15/howto-disable-mouse-scroll-to-switch-desktop-openbox/#comments</comments>
		<pubDate>Sun, 15 May 2011 19:39:46 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[archbang]]></category>
		<category><![CDATA[blackbox]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openbox]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=16061</guid>
		<description><![CDATA[<br/><p>Open up the openbox config file, it should be located in /home/username/.config/openbox/ but if it&#8217;s not you might have to do a little digging. </p> nano /~.config/openbox/rc.xml <p>Find the following lines and remove or comment them out, you can use Ctrl+W in nano to find:</p> &#160; &#160; &#160;&#60;mousebind action=&#34;Click&#34; button=&#34;Up&#34;&#62; &#160; &#160; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Open up the openbox config file, it should be located in /home/username/.config/openbox/ but if it&#8217;s not you might have to do a little digging. </p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">nano</span> /~.config/openbox/rc.xml</div>
<p>Find the following lines and remove or comment them out, you can use Ctrl+W in nano to find:</p>
<div class="dean_ch" style="white-space: wrap;"> &nbsp; &nbsp; &nbsp;<span class="sc3"><span class="re1">&lt;mousebind</span> <span class="re0">action</span>=<span class="st0">&quot;Click&quot;</span> <span class="re0">button</span>=<span class="st0">&quot;Up&quot;</span><span class="re2">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;action</span> <span class="re0">name</span>=<span class="st0">&quot;DesktopPrevious&quot;</span><span class="re2">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/mousebind<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;mousebind</span> <span class="re0">action</span>=<span class="st0">&quot;Click&quot;</span> <span class="re0">button</span>=<span class="st0">&quot;Down&quot;</span><span class="re2">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;action</span> <span class="re0">name</span>=<span class="st0">&quot;DesktopNext&quot;</span><span class="re2">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/mousebind<span class="re2">&gt;</span></span></span></div>
<p>Note: XML comments are as follow:<-- Comment --></p>
<p>Save with Ctrl+X, Y, Enter (if you&#8217;re using nano) and restart OpenBox (Preferences -> OpenBox Config -> Restart) and all should be done.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/05/15/howto-disable-mouse-scroll-to-switch-desktop-openbox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HowTo: Remove Every Other Line in Text Files &#8211; Linux</title>
		<link>http://alexsleat.co.uk/2011/04/26/howto-remove-every-other-line-in-text-files-linux/</link>
		<comments>http://alexsleat.co.uk/2011/04/26/howto-remove-every-other-line-in-text-files-linux/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 23:38:57 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[remove every n line]]></category>
		<category><![CDATA[remove every other line]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[text file]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=15294</guid>
		<description><![CDATA[<br/><p>Let&#8217;s say you&#8217;ve got a text file, of any size, big or small, and you want to remove every other line of that file, well here are a few commands in Linux that allow you to do this.</p> <p>Example, you want to get from this:</p> 1 2 3 4 5 6 7 8 9 [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Let&#8217;s say you&#8217;ve got a text file, of any size, big or small, and you want to remove every other line of that file, well here are a few commands in Linux that allow you to do this.</p>
<p>Example, you want to get from this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">1</span><br />
<span class="nu0">2</span><br />
<span class="nu0">3</span><br />
<span class="nu0">4</span><br />
<span class="nu0">5</span><br />
<span class="nu0">6</span><br />
<span class="nu0">7</span><br />
<span class="nu0">8</span><br />
<span class="nu0">9</span><br />
<span class="nu0">10</span></div>
<p>To this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">1</span><br />
<span class="nu0">3</span><br />
<span class="nu0">5</span><br />
<span class="nu0">7</span><br />
<span class="nu0">9</span></div>
<p><strong>The sed way:</strong></p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sed</span> -n <span class="st0">&quot;p;N;&quot;</span> <span class="kw2">file</span>.txt &gt; newfile.txt</div>
<p><strong>The awk way:</strong></p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">awk</span> <span class="st0">&#8216;NR%2 != 0&#8242;</span> <span class="kw2">file</span>.txt &gt; newfile.txt</div>
<p>Here you can actually specify N lines, replace 2 in the above command and you&#8217;ll be able to take out every N&#8217;th number. As an example, here&#8217;s the above replaced with a 3 on the file:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">1</span><br />
<span class="nu0">2</span><br />
<span class="nu0">4</span><br />
<span class="nu0">5</span><br />
<span class="nu0">7</span><br />
<span class="nu0">8</span><br />
<span class="nu0">10</span></div>
<p>Easy as pie, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/04/26/howto-remove-every-other-line-in-text-files-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing packages from CD in Arch Linux</title>
		<link>http://alexsleat.co.uk/2011/03/10/installing-packages-from-cd-in-arch-linux/</link>
		<comments>http://alexsleat.co.uk/2011/03/10/installing-packages-from-cd-in-arch-linux/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 22:02:58 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[core-pkgs.sqfs]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[pacman]]></category>
		<category><![CDATA[pkgs]]></category>
		<category><![CDATA[sqfs]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[x86_64]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=12317</guid>
		<description><![CDATA[<br/><p>Okay, so you have Arch Linux installed and let&#8217;s say you&#8217;re wifi isn&#8217;t working and you need the package &#8220;iwlwifi-3945-ucode-15.32.2.9-2-any.pkg.tar.gz&#8221; to fix this but you don&#8217;t have a wired connect. What do you do? Blast in your Arch cd, mount it, mount the packages sqfs file and install using pacman. </p> <p>Mount cdrom:</p> mkdir [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Okay, so you have Arch Linux installed and let&#8217;s say you&#8217;re wifi isn&#8217;t working and you need the package &#8220;iwlwifi-3945-ucode-15.32.2.9-2-any.pkg.tar.gz&#8221; to fix this but you don&#8217;t have a wired connect. What do you do? Blast in your Arch cd, mount it, mount the packages sqfs file and install using pacman. </p>
<p><strong>Mount cdrom:</strong></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">mkdir</span> /mnt/cdrom/<br />
<span class="kw2">mount</span> /dev/cdrom /mnt/cdrom/</div>
<p><strong>Mount *-pkgs.sqfs:</strong></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">mkdir</span> /mnt/pkgs/<br />
<span class="kw2">mount</span> -o loop core-pkgs.sqfs /mnt/pkgs/<br />
<span class="kw3">cd</span> /mnt/pkgs/</div>
<p><strong>Install pkg.tar.gz:</strong></p>
<div class="dean_ch" style="white-space: wrap;">pacman -U package-name.pkg.<span class="kw2">tar</span>.gz</div>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/03/10/installing-packages-from-cd-in-arch-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Realtek RTL8191S in Ubuntu 10.10</title>
		<link>http://alexsleat.co.uk/2011/02/15/realtek-rtl8191s-in-ubuntu-10-10/</link>
		<comments>http://alexsleat.co.uk/2011/02/15/realtek-rtl8191s-in-ubuntu-10-10/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 22:09:22 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[card]]></category>
		<category><![CDATA[dongle]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[realtek]]></category>
		<category><![CDATA[rtl8191s]]></category>
		<category><![CDATA[rtl819xU]]></category>
		<category><![CDATA[wifi]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=12248</guid>
		<description><![CDATA[<br/><p>Errors:</p> $ sudo ifconfig wlan1 up SIOCSIFFLAGS: Resource temporarily unavailable</p> <p>$ dmesg usb rtl819xU:FirmwareDownload92S&#40;&#41;: failed with TCR-Status: a rtl819xU:ERR!!! _rtl8192_up&#40;&#41;: initialization is failed! <p>Solution 1:</p> <p>To get this wifi dongle working I simply had to download the above firmware and place it in /lib/firmware/RTL8192SU/ and then reboot my computer. You should check that location [...]]]></description>
			<content:encoded><![CDATA[<br/><p><strong>Errors:</strong></p>
<div class="dean_ch" style="white-space: wrap;">$ <span class="kw2">sudo</span> ifconfig wlan1 up<br />
SIOCSIFFLAGS: Resource temporarily unavailable</p>
<p>$ <span class="kw2">dmesg</span> usb<br />
rtl819xU:FirmwareDownload92S<span class="br0">&#40;</span><span class="br0">&#41;</span>: failed with TCR-Status: a<br />
rtl819xU:ERR!!! _rtl8192_up<span class="br0">&#40;</span><span class="br0">&#41;</span>: initialization is failed!</div>
<p><strong>Solution 1:</strong></p>
<p>To get this wifi dongle working I simply had to download the above firmware and place it in /lib/firmware/RTL8192SU/ and then reboot my computer. You should check that location before hand and make a backup of anything inside of it if you&#8217;re not sure what you are doing. If it&#8217;s empty you can use the following commands to make the directory and then download the firmware directly.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> <span class="kw2">mkdir</span> /lib/firmware/RTL8192SU/<br />
<span class="kw3">cd</span> /lib/firmware/RTL8192SU/<br />
<span class="kw2">sudo</span> <span class="kw2">wget</span> http://svn.debian.org/wsvn/kernel/dists/trunk/firmware-nonfree/realtek/RTL8192SU/rtl8192sfw.bin</div>
<p><strong>Solution 2:</strong></p>
<p>Alternatively download the source and build it:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">wget</span> http://launchpadlibrarian.net/<span class="nu0">33927923</span>/rtl8192se_linux_2<span class="nu0">.6</span><span class="nu0">.0010</span><span class="nu0">.1012</span><span class="nu0">.2009</span>.<span class="kw2">tar</span>.gz<br />
<span class="kw2">tar</span> -zxvf rtl8192se_linux_2<span class="nu0">.6</span><span class="nu0">.0010</span><span class="nu0">.1012</span><span class="nu0">.2009</span>.<span class="kw2">tar</span>.gz<br />
<span class="kw3">cd</span> rtl8192se_linux_2<span class="nu0">.6</span><span class="nu0">.0010</span><span class="nu0">.1012</span><span class="nu0">.2009</span><br />
<span class="kw2">make</span><br />
<span class="kw2">sudo</span> <span class="kw2">make</span> <span class="kw2">install</span></div>
<p><strong>Downloads:</strong><br />
Firmware: http://svn.debian.org/wsvn/kernel/dists/trunk/firmware-nonfree/realtek/RTL8192SU/rtl8192sfw.bin</p>
<p>Source: http://launchpadlibrarian.net/33927923/rtl8192se_linux_2.6.0010.1012.2009.tar.gz</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/02/15/realtek-rtl8191s-in-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using pdfcrop to Remove White Margins &#124; Ubuntu</title>
		<link>http://alexsleat.co.uk/2011/01/25/using-pdfcrop-to-remove-white-margins-ubuntu/</link>
		<comments>http://alexsleat.co.uk/2011/01/25/using-pdfcrop-to-remove-white-margins-ubuntu/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 21:54:03 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[font size]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[JPEG]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[kindle]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[nook]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[pdfcrop]]></category>
		<category><![CDATA[resize pdf font]]></category>
		<category><![CDATA[smart phone]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=11737</guid>
		<description><![CDATA[<br/><p>One of the most annoying things about PDF files are their fixed font size, the only real way of getting a better view at the text is to zoom the whole page in. This isn&#8217;t really a fix for that annoyance but it&#8217;s a way of getting more info to screen ratio by removing [...]]]></description>
			<content:encoded><![CDATA[<br/><p>One of the most annoying things about PDF files are their fixed font size, the only real way of getting a better view at the text is to zoom the whole page in. This isn&#8217;t really a fix for that annoyance but it&#8217;s a way of getting more info to screen ratio by removing the wasted white space around the body of the file for each page, this really comes in useful when displaying PDF files on your Kindle, Nook, Smart Phone or other eBook Readers.</p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sudo</span> apt-get <span class="kw2">install</span> texlive-extra-utils</div>
<p>It&#8217;s really simple to use and by default it crops all the white space from around an image, it does this per page rather than for the entire document which allows for the best results (as long as you don&#8217;t mind changes in font size when you&#8217;re reading it).</p>
<p><em>Change input.pdf to the name of the file you want to crop and output.pdf to the output cropped file.</em></p>
<div class="dean_ch" style="white-space: wrap;"> pdfcrop input.pdf output.pdf</div>
<p>Some PDFs have better results than others and some PDFs will look the same on eBook readers if they crop the whitespace, but it&#8217;s a useful tool to have for some of those old pesky JPEG PDF files with massive borders all the way around.</p>
<p><strong>Example: Left = input, right = output</strong></p>
<p style="text-align: center;"><a href="http://alexsleat.co.uk/wp-content/uploads/2011/01/pdfcrop.png"><img class="aligncenter size-full wp-image-11821" title="pdfcrop" src="http://alexsleat.co.uk/wp-content/uploads/2011/01/pdfcrop.png" alt="" width="539" height="392" /></a></p>
<p>Some PDF files seem to bring up the following error:</p>
<div class="dean_ch" style="white-space: wrap;">!!! Error: Ghostscript exited with error code <span class="nu0">1</span>!</div>
<p>I&#8217;m currently not sure what causes this, possibly something to do with the encoding type of the PDF? or maybe just some missing dependencies..</p>
<p>For more info about pdfcrop check out the Ubuntu Manpage: <a href="http://manpages.ubuntu.com/manpages/gutsy/man1/pdfcrop.1.html">http://manpages.ubuntu.com/manpages/gutsy/man1/pdfcrop.1.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/01/25/using-pdfcrop-to-remove-white-margins-ubuntu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Auto Sync Kindle in Ubuntu</title>
		<link>http://alexsleat.co.uk/2011/01/17/auto-sync-kindle-in-ubuntu/</link>
		<comments>http://alexsleat.co.uk/2011/01/17/auto-sync-kindle-in-ubuntu/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 12:23:21 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[diy kindle stand]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[kindle]]></category>
		<category><![CDATA[kindle 3]]></category>
		<category><![CDATA[kindle 3 stand]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[maverick]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[rules.d]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=11625</guid>
		<description><![CDATA[<br/><p></p> <p>For Christmas I got a Kindle 3 and it was instantly filled with Free eBooks (http://www.gutenberg.org/wiki/Main_Page) and research papers (PDFs). I found myself wanting to be able to automatically synchronize it with a folder on my desktop when it was plugged in and found no one else had posted online how to do [...]]]></description>
			<content:encoded><![CDATA[<br/><p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/01/2010-12-27-14.11.38.jpg"><img class="size-large wp-image-11639 alignleft" title="DIY Kindle Stand" src="http://alexsleat.co.uk/wp-content/uploads/2011/01/2010-12-27-14.11.38-1024x614.jpg" alt="" width="368" height="221" /></a></p>
<p>For Christmas I got a Kindle 3 and it was instantly filled with Free eBooks (http://www.gutenberg.org/wiki/Main_Page) and research papers (PDFs). I found myself wanting to be able to automatically synchronize it with a folder on my desktop when it was plugged in and found no one else had posted online how to do this, so I began researching into udev and rsync to get something working.</p>
<p><strong>Setting up udev rules to run a script when the Kindle is plugged in.</strong></p>
<p>Firstly, we need to find some parameters of the Kindle which are unique to it so that udev can identify that it is the Kindle being plugged in and not another USB mass storage device. We&#8217;ll need to find out where the device is mounted in /dev/ which can be a little tricky because this folder is pretty full.</p>
<p>An easier way to do this is to first, without the Kindle plugged in do the following command (list the directory and pipe the output to a file called dev1 in the home dir):</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">ls</span> /dev/ &gt; ~/dev1</div>
<p>Now plug the Kindle in and redo the command, changing the destination output:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">ls</span> /dev/ &gt; ~/dev2</div>
<p>The difference between the two files will show what has changed in the /dev/ directory:</p>
<div class="dean_ch" style="white-space: wrap;"> sdiff ~/dev1 ~/dev2</div>
<p>The output for mine (<em>show in the image below</em>) shows that 3 things changed when I plugged in the Kindle, sdb, sdb1 and sg2 directorys were added (shown by the &gt; sign to the left). The folder I am looking for is the sdb1, this is where the mass storage device is found.<br />
<a href="http://alexsleat.co.uk/wp-content/uploads/2011/01/Screenshot-alex@icarus-Desktop-.png"><img class="aligncenter size-full wp-image-11630" title="sdiff /dev/" src="http://alexsleat.co.uk/wp-content/uploads/2011/01/Screenshot-alex@icarus-Desktop-.png" alt="" width="953" height="488" /></a></p>
<p>Write down where it&#8217;s found in /dev/ and then you can clean up those two files you previously made:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">rm</span> ~/dev1 | <span class="kw2">rm</span> ~/dev2</div>
<p>The next thing we want to do is use udevadm to collect some useful information about the device which we can do by the following command (I have chosen to pipe the output to a file called kindle in the home dir, because the output was pretty big. If you don&#8217;t want to remove the &gt; ~/kindle from the end of the command):</p>
<div class="dean_ch" style="white-space: wrap;">udevadm info -a -p $<span class="br0">&#40;</span>udevadm info -q path -n /dev/sdb1<span class="br0">&#41;</span> &gt; ~/kindle</div>
<p><strong>WARNING:</strong> This can look pretty daunting but, (in the words of Douglas Adams) <strong>Don&#8217;t Panic.</strong></p>
<div style="overflow: auto; height: 350px; border: 1px solid black;">
<div class="dean_ch" style="white-space: wrap;"> &nbsp;looking at device <span class="st0">&#8216;/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/host21/target21:0:0/21:0:0:0/block/sdb/sdb1&#8242;</span>:<br />
&nbsp; &nbsp; <span class="re2">KERNEL=</span>=<span class="st0">&quot;sdb1&quot;</span><br />
&nbsp; &nbsp; <span class="re2">SUBSYSTEM=</span>=<span class="st0">&quot;block&quot;</span><br />
&nbsp; &nbsp; <span class="re2">DRIVER=</span>=<span class="st0">&quot;&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>partition<span class="br0">&#125;</span>==<span class="st0">&quot;1&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>start<span class="br0">&#125;</span>==<span class="st0">&quot;16&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span><span class="kw2">size</span><span class="br0">&#125;</span>==<span class="st0">&quot;6410672&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>alignment_offset<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>discard_alignment<span class="br0">&#125;</span>==<span class="st0">&quot;4294959104&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span><span class="kw2">stat</span><span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; 151 &nbsp; &nbsp; 3389 &nbsp; &nbsp; 4239 &nbsp; &nbsp; 3776 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 2424 &nbsp; &nbsp; 3776&quot;</span><br />
&nbsp; &nbsp; ATTR<span class="br0">&#123;</span>inflight<span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp;0&quot;</span></p>
<p>&nbsp; looking at parent device <span class="st0">&#8216;/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/host21/target21:0:0/21:0:0:0/block/sdb&#8217;</span>:<br />
&nbsp; &nbsp; <span class="re2">KERNELS=</span>=<span class="st0">&quot;sdb&quot;</span><br />
&nbsp; &nbsp; <span class="re2">SUBSYSTEMS=</span>=<span class="st0">&quot;block&quot;</span><br />
&nbsp; &nbsp; <span class="re2">DRIVERS=</span>=<span class="st0">&quot;&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>range<span class="br0">&#125;</span>==<span class="st0">&quot;16&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>ext_range<span class="br0">&#125;</span>==<span class="st0">&quot;256&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>removable<span class="br0">&#125;</span>==<span class="st0">&quot;1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>ro<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw2">size</span><span class="br0">&#125;</span>==<span class="st0">&quot;6410688&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>alignment_offset<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>discard_alignment<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>capability<span class="br0">&#125;</span>==<span class="st0">&quot;51&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw2">stat</span><span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; 156 &nbsp; &nbsp; 3389 &nbsp; &nbsp; 4279 &nbsp; &nbsp; 3808 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 2456 &nbsp; &nbsp; 3808&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>inflight<span class="br0">&#125;</span>==<span class="st0">&quot; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp;0&quot;</span></p>
<p>&nbsp; looking at parent device <span class="st0">&#8216;/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/host21/target21:0:0/21:0:0:0&#8242;</span>:<br />
&nbsp; &nbsp; <span class="re2">KERNELS=</span>=<span class="st0">&quot;21:0:0:0&quot;</span><br />
&nbsp; &nbsp; <span class="re2">SUBSYSTEMS=</span>=<span class="st0">&quot;scsi&quot;</span><br />
&nbsp; &nbsp; <span class="re2">DRIVERS=</span>=<span class="st0">&quot;sd&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>device_blocked<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw3">type</span><span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>scsi_level<span class="br0">&#125;</span>==<span class="st0">&quot;3&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>vendor<span class="br0">&#125;</span>==<span class="st0">&quot;Kindle &nbsp;&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>model<span class="br0">&#125;</span>==<span class="st0">&quot;Internal Storage&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span><span class="kw2">rev</span><span class="br0">&#125;</span>==<span class="st0">&quot;0100&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>state<span class="br0">&#125;</span>==<span class="st0">&quot;running&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>timeout<span class="br0">&#125;</span>==<span class="st0">&quot;30&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>iocounterbits<span class="br0">&#125;</span>==<span class="st0">&quot;32&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>iorequest_cnt<span class="br0">&#125;</span>==<span class="st0">&quot;0xe1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>iodone_cnt<span class="br0">&#125;</span>==<span class="st0">&quot;0xe1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>ioerr_cnt<span class="br0">&#125;</span>==<span class="st0">&quot;0&#215;1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>modalias<span class="br0">&#125;</span>==<span class="st0">&quot;scsi:t-0&#215;00&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>evt_media_change<span class="br0">&#125;</span>==<span class="st0">&quot;0&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>dh_state<span class="br0">&#125;</span>==<span class="st0">&quot;detached&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>queue_depth<span class="br0">&#125;</span>==<span class="st0">&quot;1&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>queue_type<span class="br0">&#125;</span>==<span class="st0">&quot;none&quot;</span><br />
&nbsp; &nbsp; ATTRS<span class="br0">&#123;</span>max_sectors<span class="br0">&#125;</span>==<span class="st0">&quot;240&quot;</span></div>
</div>
<p>While this many look daunting, what you want to do if find some attributes from the output which mean only your Kindle will be found when looking for them all, the problem I have found is that, with udev rules you cannot go too far down in the parent tree which stops me being able to use the Kindles serial to identify it. This could mean that my computer will sync any Kindle that&#8217;s plugged into it but I don&#8217;t have 2 to check. The following are the attributes I chose:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re2">KERNEL=</span>=<span class="st0">&quot;sd?&quot;</span>, ATTRS<span class="br0">&#123;</span>vendor<span class="br0">&#125;</span>==<span class="st0">&quot;Kindle &nbsp;&quot;</span>, ATTRS<span class="br0">&#123;</span>modalias<span class="br0">&#125;</span>==<span class="st0">&quot;scsi:t-0&#215;00&quot;</span></div>
<p>Now you&#8217;ll want to write the udev rule in /etc/udev/rules.d/</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw3">cd</span> /etc/udev/rules.d/</div>
<p>According to the readme the numbers represent the priority of the rule (higher overriding lower) followed by a descriptive name and it must end in .rules eg (xx-description.rules).</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> gedit <span class="nu0">81</span>-kindle-<span class="kw2">sync</span>.rules</div>
<p>The following is the whole line I used for the udev rule, the only addition to the above is the RUN+=&#8221;/home/alex/.scripts/kindlesync.sh&#8221; which will run the script in that directory, this script contains the rsync command.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re2">KERNEL=</span>=<span class="st0">&quot;sd?&quot;</span>, ATTRS<span class="br0">&#123;</span>vendor<span class="br0">&#125;</span>==<span class="st0">&quot;Kindle &nbsp;&quot;</span>, ATTRS<span class="br0">&#123;</span>modalias<span class="br0">&#125;</span>==<span class="st0">&quot;scsi:t-0&#215;00&quot;</span>, RUN+=<span class="st0">&quot;/home/alex/.scripts/./kindlesync.sh&quot;</span></div>
<p>Save and close the file and then restart the udev service:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> service udev restart</div>
<p><strong>Writing a script to sync a folder on the Desktop with a folder on the Kindle using rsync:</strong><br />
Change the first directory from &#8220;/home/alex/ebooks/kindle_sync&#8221; to the directory on your computer where you want to keep the files that will be synced onto your Kindle and the second from &#8220;/media/Kindle/documents/sync/&#8221; to the location on your mounted Kindle where you want the files to be stored, save this file as kindlesync.sh. This is the script you call from the udev rules so for mine it&#8217;s saved as &#8220;/home/alex/.scripts/kindlesync.sh&#8221;.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/bash</span></p>
<p><span class="re3">#Sync</span><br />
rsync -av /home/alex/eBooks/kindle_sync/ /media/Kindle/documents/<span class="kw2">sync</span>/</div>
<p>Go to the location of the script and make it executable with the following command:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">chmod</span> +x kindlesync.<span class="kw2">sh</span></div>
<p>Now try plugging in your Kindle and make sure it syncs up!</p>
<p><strong>Problems</strong></p>
<p>In the udev rule, ACTION==&#8221;add&#8221; can be used to specify when the Kindle is first plugged in, however when trying to use this Ubuntu&#8217;s auto-mounting service mounts the drive after the script is ran so the sync becomes useless. Without this it runs the script 3 times, twice before it has mounted and then once it has mounted &#8211; this is currently the best I have found but it&#8217;s extremely messy.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/01/17/auto-sync-kindle-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: Take Untethered Screenshots in Froyo</title>
		<link>http://alexsleat.co.uk/2010/11/07/howto-take-untethered-screenshots-in-froyo/</link>
		<comments>http://alexsleat.co.uk/2010/11/07/howto-take-untethered-screenshots-in-froyo/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 00:26:14 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[froyo]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[samsung galaxy s]]></category>
		<category><![CDATA[screen capture]]></category>
		<category><![CDATA[screen grab]]></category>
		<category><![CDATA[screen shot]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[sgs]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[untethered]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=6557</guid>
		<description><![CDATA[<br/><p></p> <p>With the latest update of Android &#8220;Froyo&#8221;, it&#8217;s now possible to take screenshots/screen captures without the need to be plugged into a computer, mess around with the Android SDK or Root your phone. You are easily able to take screenshots of the home screen and while in any app. I have only been [...]]]></description>
			<content:encoded><![CDATA[<br/><p><a href="http://alexsleat.co.uk/wp-content/uploads/2010/11/screencap.png"><img class="alignleft size-thumbnail wp-image-6558" title="screencap" src="http://alexsleat.co.uk/wp-content/uploads/2010/11/screencap-150x150.png" alt="" width="120" height="120" /></a></p>
<p>With the latest update of Android &#8220;Froyo&#8221;, it&#8217;s now possible to take screenshots/screen captures without the need to be plugged into a computer, mess around with the Android SDK or Root your phone. You are easily able to take screenshots of the home screen and while in any app. I have only been able to test this with a Samsung Galaxy S (I9000-GT) running</p>
<p style="text-align: center;">
<p>Froyo so comment on your results.</p>
<p><span style="text-decoration: underline;">Here&#8217;s how to take a screenshot in Froyo:</span></p>
<p style="padding-left: 30px;"><strong>Hold down Back and then press the Home button.</strong></p>
<p>You should now see a pop-up near the bottom saying &#8220;Screen captured. Saved as image file&#8221; as in the following image. The files will be saved to a folder named ScreenCapture in your home directory as a .PNG.</p>
<p style="text-align: center;"><img class="size-medium wp-image-6577   aligncenter" title="SC20101107-001409" src="http://alexsleat.co.uk/wp-content/uploads/2010/11/SC20101107-001409-180x300.png" alt="" width="180" height="300" /></p>
<p>By holding down the Back button it doesn&#8217;t actually go back if held down, it waits for you to press Home. After a few seconds of holding it down however(I can&#8217;t quite figure it out) pressing Home will continue the &#8220;going back&#8221; operation as if the Back button was tapped.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2010/11/07/howto-take-untethered-screenshots-in-froyo/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>HowTo: Fix &#8220;Briefly unavailable for scheduled maintenance. Check back in a minute.&#8221;</title>
		<link>http://alexsleat.co.uk/2010/07/07/howto-fix-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/</link>
		<comments>http://alexsleat.co.uk/2010/07/07/howto-fix-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 16:20:35 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=243</guid>
		<description><![CDATA[<br/><p>After installing an update to WordPress I received the error:</p> <p>&#8220;Briefly unavailable for scheduled maintenance. Check back in a minute.&#8221;</p> <p>I was unsure if this was down to my hosts servers being temporarily down, going down during the update or if WordPress had simply failed to update whatever it was updating. Turns out it [...]]]></description>
			<content:encoded><![CDATA[<br/><p>After installing an update to WordPress I received the error:</p>
<blockquote><p>&#8220;Briefly unavailable for scheduled maintenance. Check back in a minute.&#8221;</p></blockquote>
<p>I was unsure if this was down to my hosts servers being temporarily down, going down during the update or if WordPress had simply failed to update whatever it was updating. Turns out it was the latter and it&#8217;s really easy to fix, first log on to your ftp, file manager or whatever for your hosting and browse to your wordpress install, in the root of this there should be a .maintenance file, just delete this and everything should be back to normal. Once back in the WordPress dashboard you may be asked to reinstall whatever failed however sometimes it will have completed the install and just not managed to delete this file.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2010/07/07/howto-fix-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

