<?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>Sprayfly &#187; Linux</title>
	<atom:link href="http://sprayfly.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://sprayfly.com</link>
	<description>Languages, Linux, Life</description>
	<lastBuildDate>Wed, 14 Jul 2010 03:32:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mimms: Handy tool to rip MMS MP3 streams to file in Ubuntu</title>
		<link>http://sprayfly.com/2010/06/28/mimms-handy-tool-to-rip-mms-mp3-streams-to-file-in-ubuntu/</link>
		<comments>http://sprayfly.com/2010/06/28/mimms-handy-tool-to-rip-mms-mp3-streams-to-file-in-ubuntu/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 13:27:27 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[mimms]]></category>
		<category><![CDATA[mms]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[rip]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=465</guid>
		<description><![CDATA[Today, I came across a handy command line tool called mimms that allows you to rip mms:// MP3 streams to an MP3 file on your computer for later listening. It is very easy to install and use. Install mimms: sudo apt-get install mimms Sample usage: mimms mms://iss-video.leeds.ac.uk/smlc/audio/eas/east3031/03Chopsticks.mp3]]></description>
			<content:encoded><![CDATA[<p>Today, I came across a handy command line tool called <a href="http://savannah.nongnu.org/projects/mimms/">mimms</a> that allows you to rip mms:// MP3 streams to an MP3 file on your computer for later listening. It is very easy to install and use.</p>
<p>Install mimms:</p>
<pre>sudo apt-get install mimms</pre>
<p>Sample usage:</p>
<pre>mimms mms://iss-video.leeds.ac.uk/smlc/audio/eas/east3031/03Chopsticks.mp3</pre

You can also rename the file to something else by specifying a filename after the URL
<pre>mimms mms://iss-video.leeds.ac.uk/smlc/audio/eas/east3031/03Chopsticks.mp3 filename-here.mp3</pre>
<p>Of course you can find out more command line options by simply typing <em>mimms &#8211;help</em></p>
<p>Happy ripping!</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2010/06/28/mimms-handy-tool-to-rip-mms-mp3-streams-to-file-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Multimedia and DVD Playback in Ubuntu Lucid</title>
		<link>http://sprayfly.com/2010/06/28/enable-multimedia-and-dvd-playback-in-ubuntu-lucid/</link>
		<comments>http://sprayfly.com/2010/06/28/enable-multimedia-and-dvd-playback-in-ubuntu-lucid/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 13:21:35 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[medibuntu]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=461</guid>
		<description><![CDATA[Whilst Ubuntu comes with some basic multimedia support out of the box, there are a few simple steps that must be carried out in order for you to get the most out of your MP3, DVD and video collection. First we need to add the Medibuntu repository for your version of Ubuntu: sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst Ubuntu comes with some basic multimedia support out of the box, there are a few simple steps that must be carried out in order for you to get the most out of your MP3, DVD and video collection.</p>
<p>First we need to add the Medibuntu repository for your version of Ubuntu:</p>
<pre>sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list  --output-document=/etc/apt/sources.list.d/medibuntu.list</pre>
<p>Next we add the Medibuntu keyring and refresh apt:</p>
<pre>sudo apt-get update &#038;&#038; sudo apt-get install medibuntu-keyring &#038;&#038; sudo apt-get update</pre>
<p>Next we need to install some multimedia packages and codecs:</p>
<pre>sudo apt-get install non-free-codecs libdvdcss4 w32codecs vlc mplayer</pre>
<p>Finally, run this script to enable encrypted DVD playback:</p>
<pre>sudo /usr/share/doc/libdvdread4/install-css.sh</pre>
<p>There we go, now sit back and relax!</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2010/06/28/enable-multimedia-and-dvd-playback-in-ubuntu-lucid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Type Chinese Pinyin Accents in Ubuntu</title>
		<link>http://sprayfly.com/2010/06/23/type-chinese-pinyin-accents-in-ubuntu/</link>
		<comments>http://sprayfly.com/2010/06/23/type-chinese-pinyin-accents-in-ubuntu/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 22:17:53 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ibus]]></category>
		<category><![CDATA[pinyin]]></category>
		<category><![CDATA[romanisation]]></category>
		<category><![CDATA[tone]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=454</guid>
		<description><![CDATA[Chinese learners or speakers may sometimes want to write out the romanisation for certain chinese characters complete with accents indicating the different tones. For example: 你好 [nǐhǎo] This is possible using the Ibus input framework that comes with Ubuntu. The support for pinyin romanisation is provided in the ibus-m17n package. This must first be installed. [...]]]></description>
			<content:encoded><![CDATA[<p>Chinese learners or speakers may sometimes want to write out the romanisation for certain chinese characters complete with accents indicating the different tones. For example:</p>
<p>你好 [nǐhǎo]</p>
<p>This is possible using the Ibus input framework that comes with Ubuntu. The support for pinyin romanisation is provided in the <em>ibus-m17n</em> package. This must first be installed.</p>
<pre>sudo apt-get install ibus-m17n</pre>
<p>Once installed, restart Ibus and add the input method in the menu as in the screenshot below.<br />
<a href="http://www.flickr.com/photos/jonolumb/4728107187/" class="tt-flickr tt-flickr-Medium" title="ibus-pinyin"><img class="aligncenter" src="http://farm2.static.flickr.com/1251/4728107187_b9c199f0d1.jpg" alt="ibus-pinyin" width="401" height="500" /></a> </p>
<p>You should now be able to activate the input method. Simply type the pinyin for a character preceded by the tone number (ranging from 1 to 4).</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2010/06/23/type-chinese-pinyin-accents-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Java on Ubuntu Lucid 10.04</title>
		<link>http://sprayfly.com/2010/06/06/install-java-on-ubuntu-lucid-10-04/</link>
		<comments>http://sprayfly.com/2010/06/06/install-java-on-ubuntu-lucid-10-04/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 22:57:11 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=447</guid>
		<description><![CDATA[I recently ran into some problems trying to use Facebook&#8217;s photo uploader tool in Firefox. It turns out that in Lucid, the Ubuntu developers have opted for OpenJDK instead of standard Java &#8211; and this is what is causing the problem with the uploader. The below steps should allow you to get standard Java setup [...]]]></description>
			<content:encoded><![CDATA[<p>I recently ran into some problems trying to use Facebook&#8217;s photo uploader tool in Firefox. It turns out that in Lucid, the Ubuntu developers have opted for OpenJDK instead of standard Java &#8211; and this is what is causing the problem with the uploader.</p>
<p>The below steps should allow you to get standard Java setup on your Ubuntu box:</p>
<p><strong>Add the repository</strong><br />
First create a new .list file for the repository</p>
<pre>sudo gedit /etc/apt/sources.list.d/java.list</pre>
<p>Paste in the following</p>
<pre>deb http://archive.canonical.com/ lucid partner</pre>
<p>Now update all repositories and install Java</p>
<pre>sudo apt-get update &#038;&#038; sudo apt-get install sun-java6-jre sun-java6-fonts sun-java6-plugin</pre>
<p>Now you need to make sure that the version of Java you just installed is selected as the default Java installation on your system:</p>
<pre>sudo update-alternatives --config java</pre>
<p>Choose the version of Java you just installed.</p>
<p>Finally, we need to install the Java plugin in Firefox:</p>
<pre>mkdir -p ~/.mozilla/plugins</pre>
<p>Make a symlink to the Java plugin:</p>
<pre>ln -s /usr/lib/jvm/java-6-sun/jre/lib/i386/libnpjp2.so /home/jonolumb/.mozilla/plugins/libnpjp2.so</pre>
<p>Finally, you may want to implement the following fix which resolves the problem of Chinese characters displaying as 口口 boxes in Java applications:</p>
<pre>cd /usr/lib/jvm/java-6-sun/jre/lib/fonts
sudo mkdir fallback
cd fallback
sudo ln -s /usr/share/fonts/truetype/arphic/uming.ttc .
sudo ln -s /usr/share/fonts/truetype/arphic/uming.ttc uming.ttf</pre>
<p>Now restart Firefox and everything should be working OK! If you do run into any problems, you may want to consider uninstalling OpenJDK completely as well as the Icedtea Java plugin using Synaptic package manager.</p>
<p>Thanks to <a href="http://felixcat.net/2010/04/install-sun-java6-jre-instead-of-openjdk-in-ubuntu-lucid/">Felix Yan&#8217;s</a> and <a href="http://buck-nasty.blogspot.com/2010/02/installing-firefox-36-and-java-618.html">Buckynasty&#8217;s</a> original posts.</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2010/06/06/install-java-on-ubuntu-lucid-10-04/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fix the &#8220;534 Protection level negotiation failed.&#8221; error in lftp</title>
		<link>http://sprayfly.com/2010/01/15/fix-the-534-protection-level-negotiation-failed-error-in-lftp/</link>
		<comments>http://sprayfly.com/2010/01/15/fix-the-534-protection-level-negotiation-failed-error-in-lftp/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 22:40:59 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[534]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftpes]]></category>
		<category><![CDATA[leeds]]></category>
		<category><![CDATA[lftp]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[university]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=443</guid>
		<description><![CDATA[If you are using lftp to connect to a secure FTP (SFTP) server using SSL, you may sometimes get the following error during file transfers: 534 Protection level negotiation failed. In this case, you need to add the following line to the bottom of your /etc/lftp.conf file set ftp:ssl-protect-data yes Now try connecting again and [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using lftp to connect to a secure FTP (SFTP) server using SSL, you may sometimes get the following error during file transfers:</p>
<pre>534 Protection level negotiation failed.</pre>
<p>In this case, you need to add the following line to the bottom of your /etc/lftp.conf file</p>
<pre>set ftp:ssl-protect-data yes</pre>
<p>Now try connecting again and hopefully everything should work ok &#8211; it sorted my problems when I was trying to connect to the Leeds University SFTP servers using lftp on Ubuntu 9.10 (Karmic).</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2010/01/15/fix-the-534-protection-level-negotiation-failed-error-in-lftp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>View PDF files inline in Firefox on Ubuntu Karmic 9.10</title>
		<link>http://sprayfly.com/2010/01/15/view-pdf-files-inline-in-firefox-on-ubuntu-karmic-9-10/</link>
		<comments>http://sprayfly.com/2010/01/15/view-pdf-files-inline-in-firefox-on-ubuntu-karmic-9-10/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 20:34:07 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[evince]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[xpdf]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=436</guid>
		<description><![CDATA[When using Firefox on Ubuntu, PDF files are opened in a separate PDF viewer rather than being displayed within the browser window itself. If you follow this guide, you should be able to get PDF files to open inline, embedded within the Firefox window as in the screenshot below: To allow PDF files to be [...]]]></description>
			<content:encoded><![CDATA[<p> When using Firefox on Ubuntu, PDF files are opened in a separate PDF viewer rather than being displayed within the browser window itself.</p>
<p>If you follow this guide, you should be able to get PDF files to open inline, embedded within the Firefox window as in the screenshot below:</p>
<p><a href="http://www.flickr.com/photos/jonolumb/4277431528/" class="tt-flickr tt-flickr-Medium" title="firefox-inline-pdf.png"><img class="alignnone" src="http://farm5.static.flickr.com/4060/4277431528_383206e21c.jpg" alt="firefox-inline-pdf.png" width="500" height="302" /></a></p>
<p>To allow PDF files to be opened inline within the browser window, you need to do the following:</p>
<p>Install Mozplugger and Evince:</p>
<pre>sudo apt-get install evince mozplugger</pre>
<p>Edit the Mozplugger config file:</p>
<pre>gksudo gedit /etc/mozpluggerrc</pre>
<p>Find the following block of text (or something very similar):</p>
<pre>
application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
        ACROREAD()
        repeat noisy swallow(kpdf) fill: kpdf "$file"
        repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
        repeat noisy swallow(okular) fill: okular "$file"
        GV()
        repeat noisy fill exits: evince "$file"
</pre>
<p>If you prefer to use the Evince PDF viewer replace the above code with the following:</p>
<pre>
application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
	repeat noisy swallow(evince) fill: evince "$file"
	ACROREAD()
	repeat noisy swallow(kpdf) fill: kpdf "$file"
	repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
	repeat noisy swallow(okular) fill: okular "$file"
	GV()
	repeat noisy fill exits: evince "$file"
</pre>
<p>Or if you prefer to use the xpdf PDF viewer, you can use the following lines (make sure you if not already installed that you install xpdf using the command <em>sudo apt-get install xpdf</em>):</p>
<pre>
application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
	repeat noisy swallow(Xpdf) fill: xpdf "$file"
	ACROREAD()
	repeat noisy swallow(kpdf) fill: kpdf "$file"
	repeat noisy swallow(okular) fill: okular "$file"
	GV()
	repeat noisy fill exits: xpdf "$file"
</pre>
<p>Save changes, close all instances of Firefox and Evince/Xpdf and then open firefox and try viewing a PDF file. Everything should now function as you want it to.</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2010/01/15/view-pdf-files-inline-in-firefox-on-ubuntu-karmic-9-10/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Improve Wireless Performance in Ubuntu Karmic on Asus EeePC 1005HA</title>
		<link>http://sprayfly.com/2009/11/17/improve-wireless-performance-in-ubuntu-karmic-on-asus-eeepc-1005ha/</link>
		<comments>http://sprayfly.com/2009/11/17/improve-wireless-performance-in-ubuntu-karmic-on-asus-eeepc-1005ha/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 11:12:46 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[1005HA]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[backports]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=432</guid>
		<description><![CDATA[We have a problem For the last month or so since I bought my Asus EeePC 1005HA, I&#8217;ve been wanting to throw the thing out of the window, such has my frustration been with it&#8217;s wireless performance. Poor Wireless Performance Whilst the laptop is a great little machine, since I installed Ubuntu Karmic on it, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>We have a problem</strong><br />
For the last month or so since I bought my Asus EeePC 1005HA, I&#8217;ve been wanting to throw the thing out of the window, such has my frustration been with it&#8217;s wireless performance.</p>
<p><strong>Poor Wireless Performance</strong><br />
Whilst the laptop is a great little machine, since I installed Ubuntu Karmic on it, the wireless connection had been completely useless. At first, Network Manager would report great signal strength for wireless networks within range of the netbook. However, once connected to the access point, the wireless signal which was first reported at over 80% would rapidly deteriorate to something much lower, often below 30%. Even when the computer was within metres of the wireless access point, the connection speed would be incredibly slow and I frequently experienced wireless drops, especially when connecting to secure wireless networks.</p>
<p><strong>Solution at hand</strong><br />
However, fear not. After doing much searching around on the internet it seems that there is a solution to this problem. I managed to find a <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/414560?comments=all">bug on launchpad</a> where other EeePC 1005HA users suggested that installing the &#8220;Karmic Wireless Backports Module&#8221; would make most of the problems go away. This module contains all the cutting edge wireless drivers for Ubuntu Karmic from the testing repositories which haven&#8217;t yet been officially released.</p>
<p>After installing the module via apt-get, I have experienced a 30% increase in wireless signal strength, a faster connection and no drops for the last half and hour or so, it would indeed seem that the problem is solved or at least much less annoying. Here are the steps you need to follow to install the backport modules:</p>
<p><strong>Enable Karmic backports</strong><br />
First we need to enable the Karmic backports repository. Open up &#8220;Software Sources&#8221; and browse to the &#8220;Updates&#8221; tab, make sure the karmic-backports option is ticked.</p>
<p><a href="http://www.flickr.com/photos/jonolumb/4112112734/" class="tt-flickr tt-flickr-Medium" title="软件源.png"><img class="alignnone" src="http://farm3.static.flickr.com/2560/4112112734_27d0d1ed0c.jpg" alt="软件源.png" width="404" height="465" /></a> </p>
<p><strong>Install the Karmic wireless backports module</strong><br />
Now open a terminal and enter the following commands to install the backports wireless module.</p>
<pre>sudo apt-get update &#038;&#038; sudo apt-get install linux-backports-modules-wireless-karmic-generic</pre>
<p>Please note that it is not recommended to install <em>linux-backports-modules-karmic-generic</em> as it has been suggested in some posts as this may affect other things on your system apart from the wireless.</p>
<p>Once complete, reboot your computer and enjoy.</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2009/11/17/improve-wireless-performance-in-ubuntu-karmic-on-asus-eeepc-1005ha/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 Settings for Eduroam Wireless Networks</title>
		<link>http://sprayfly.com/2009/09/29/ubuntu-9-04-settings-for-eduroam-wireless-networks/</link>
		<comments>http://sprayfly.com/2009/09/29/ubuntu-9-04-settings-for-eduroam-wireless-networks/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 23:21:38 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=421</guid>
		<description><![CDATA[Many UK universities use Eduroam wireless networks which require certificate authentication along with a username and password. Despite following the official guide to getting my laptop setup at the University of Leeds, my laptop wouldn&#8217;t seem to connect &#8211; however, after a bit of playing I managed to get things up and running. Here are [...]]]></description>
			<content:encoded><![CDATA[<p>Many UK universities use Eduroam wireless networks which require certificate authentication along with a username and password. Despite following the official guide to getting my laptop setup at the University of Leeds, my laptop wouldn&#8217;t seem to connect &#8211; however, after a bit of playing I managed to get things up and running.</p>
<p>Here are the settings you will need:</p>
<li>Set &#8216;Wireless security&#8217; to WPA or WPA2 Enterprise</li>
<li>Set &#8216;EAP method&#8217; to TTLS</li>
<li>Set &#8216;Key type&#8217; to MSCHAP</li>
<li>Set &#8216;Identity&#8217; to your ISS Username with @leeds.ac.uk appended, for example jh1761@leeds.ac.uk</li>
<li>Type your normal ISS password into the password box</li>
<li>Leave &#8216;Anonymous Identity&#8217; blank</li>
<li>Leave &#8216;Client certificate file&#8217; set to (none)</li>
<li>Click the &#8216;CA Certificate file&#8217; option, a file open window should popup &#8211; locate the file: /etc/ssl/certs/GTE_CyberTrust_Global_Root.pem , select it and click open</li>
<p>You should now find that the computer connects without any issues.</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2009/09/29/ubuntu-9-04-settings-for-eduroam-wireless-networks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable the touchpad whilst typing on the Asus EeePC 1005HA in Ubuntu</title>
		<link>http://sprayfly.com/2009/08/23/disable-the-touchpad-whilst-typing-on-the-asus-eeepc-1005ha-in-ubuntu/</link>
		<comments>http://sprayfly.com/2009/08/23/disable-the-touchpad-whilst-typing-on-the-asus-eeepc-1005ha-in-ubuntu/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 19:02:41 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[1005HA]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[fdi]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[shmconfig]]></category>
		<category><![CDATA[synaptics]]></category>
		<category><![CDATA[syndaemon]]></category>
		<category><![CDATA[touchpad]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=419</guid>
		<description><![CDATA[If you install Ubuntu Netbook Remix 9.04 (UNR) on the Asus EeePC 1005HA you do get most features supported out of the box, however there are a couple of things that require a bit of tweaking such as the ethernet and wireless drivers and some of the function keys and touchpad. For a full-on guide [...]]]></description>
			<content:encoded><![CDATA[<p>If you install Ubuntu Netbook Remix 9.04 (UNR) on the Asus EeePC 1005HA you do get most features supported out of the box, however there are a couple of things that require a bit of tweaking such as the ethernet and wireless drivers and some of the function keys and touchpad. For a full-on guide to setting up your machine with Ubuntu, head over to <a href="http://www.jfwhome.com/2009/08/06/perfect-ubuntu-jaunty-on-the-asus-eeepc-1005ha-and-1008ha/">this excellent blog post</a>.</p>
<p><strong>Disable the touchpad whilst typing</strong><br />
One thing that I did not feel was configured properly in the above guide is the touchpad for the 1005HA. On such a small laptop, it is inevitable that whilst typing emails or doing word processing tasks on the netbook, your hands will often brush the touchpad, activating tapping or scrolling features that may cause undesired outcomes such as text being deleted or being moved around within the document. This problem can however be dealt with by using a program that temporarily deactivates the touchpad whilst text is being typed and then reactivates it once typing is finished. Whilst this feature is discussed in the above guide, there is no documentation regarding customisation &#8211; for example users may want to change the amount of time for which the touchpad is disabled or only disable tapping and scrolling (and not the pointer itself). I did some investigation on my own and found the following solution:</p>
<p><strong>Configuring the touchpad device</strong><br />
Before we do anything else, we need to enable configuration of the touchpad by enabling SHMConfig in a configuration file. In a terminal, enter the following commands:</p>
<pre>sudo nano /etc/hal/fdi/policy/shmconfig.fdi</pre>
<p>Paste the following code into the file and save:</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;deviceinfo version="0.2"&gt;&lt;device&gt;&lt;match key="input.x11_driver" string="synaptics"&gt;&lt;merge key="input.x11_options.SHMConfig" type="string"&gt;True&lt;/merge&gt;&lt;/match&gt;&lt;/device&gt;&lt;/deviceinfo&gt;</pre>
<p>You now need to restart X (logout and log back in again) or restart the computer for changes to take effect.</p>
<p><strong>Syndaemon &#8211; disable the touchpad on typing</strong><br />
Next, we will use syndaemon to setup automatic disabling of the touchpad when typing. Here are the configuration options for this daemon.</p>
<pre>Usage: syndaemon [-i idle-time] [-m poll-delay] [-d] [-t] [-k]
  -i How many seconds to wait after the last key press before
     enabling the touchpad. (default is 2.0s)
  -m How many milli-seconds to wait until next poll.
     (default is 200ms)
  -d Start as a daemon, ie in the background.
  -p Create a pid file with the specified name.
  -t Only disable tapping and scrolling, not mouse movements.
  -k Ignore modifier keys when monitoring keyboard activity.
  -K Like -k but also ignore Modifier+Key combos.
  -S Use SHMConfig even if input device properties are available.</pre>
<p>It is best to setup syndaemon to run as a daemon process in the background &#8211; if you run it as a normal command in a terminal then it will terminate when you quit the terminal session. Here is the command I use to run syndaemon:</p>
<pre>syndaemon -t -K -d -i 1</pre>
<p>The -t flag only disables tapping and scrolling whilst typing. This is useful as it means that you can continue to move the mouse pointer whilst or immediately after typing &#8211; but you will not accidentally click on text or scroll within a window whilst you are typing when your hands brush against the touchpad.</p>
<p>The -K flag means that the touchpad will only be deactivated when you are typing real text and not when you are using shortcut keys within programs.</p>
<p>Finally, I personally prefer a slightly shorter time delay of just one second before the touchpad is reactivated, this is set by the -i flag followed by the delay time in seconds.</p>
<p><strong>Automation</strong><br />
Instead of running this manually in a terminal every time you need it, you can setup syndaemon to run automatically on session startup. In the menu, go to System &#8211;> Preferences &#8211;> Startup Programs and add an entry named &#8220;Syndaemon&#8221;. You can then copy and paste the above command into the dialogue box and hit ok.</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2009/08/23/disable-the-touchpad-whilst-typing-on-the-asus-eeepc-1005ha-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>用 tsocks 和 proxychains 使 Linux 下所有软件能够翻墙</title>
		<link>http://sprayfly.com/2009/07/09/%e7%94%a8-tsocks-%e4%bd%bf-linux-%e4%b8%8b%e6%89%80%e6%9c%89%e8%bd%af%e4%bb%b6%e8%83%bd%e5%a4%9f%e7%bf%bb%e5%a2%99/</link>
		<comments>http://sprayfly.com/2009/07/09/%e7%94%a8-tsocks-%e4%bd%bf-linux-%e4%b8%8b%e6%89%80%e6%9c%89%e8%bd%af%e4%bb%b6%e8%83%bd%e5%a4%9f%e7%bf%bb%e5%a2%99/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 05:31:36 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[china]]></category>
		<category><![CDATA[翻墙]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[gfw]]></category>
		<category><![CDATA[gwibber]]></category>
		<category><![CDATA[proxychains]]></category>
		<category><![CDATA[SOCKS]]></category>
		<category><![CDATA[tsocks]]></category>
		<category><![CDATA[封锁]]></category>
		<category><![CDATA[封杀]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=403</guid>
		<description><![CDATA[情况 由于最近在中国某个地方爆发了 riot, 所以境内很多网站又是无法访问 (twitter.com、facebook.com 等)，让我们这些网民很无奈。 使用 SSH 翻墙 我曾经介绍过如何使用 SSH 来建立一个 SOCKS 代理服务器，让你能够在 Firefox 里正常访问以上所提起的网址。然而不是所有 Linux 软件都能支持代理服务器。如果你最热爱的 Linux 工具需要访问&#8221;被封&#8221;的网站，又没有嵌入的代理支持，该怎么办呢？ 遇到这种情况当然不要放弃该软件&#8230; 毕竟我们用的系统是 Linux 而不是以前让我们咳声叹气，丧失信心的 Windows，总有一个方法去解决问题。 举个例子吧 我不久前发现了 Twitter 这个网站。我一开始不经常用，也搞不明白别人为什么对这个 web 2.0 服务都着了迷。后来我在推特上跟的人越来越多，跟着我的人亦是日益增多，不知不觉我也迷上了该网站，天天都会上。凡是经常用推特的人一般都会用一个推特的客户端，这才能跟得上朋友们的状态更新和最火热的网络新闻。本人作为 Ubuntu 的用户，我自然就选了 Gwibber 这个基于 GNOME 的客户端来访问我的推特。这个软件功能很丰富，用起来得心应手，不过总有一个问题让我有点遗憾，就是 Gwibber 还不听从 GNOME 的代理设置。平时这也不是一个很大的问题，但是每遇中国网络封锁较严重时，都会让我暂时无法使用该软件。 解决方案&#8230; Tsocks 经过几个 Google 搜索，我最终很高兴地发现 Linux 有一个能够强迫任何软件通过 SOCKS 代理上网的工具，其名就是 tsocks。Tsocks 是一个透明 SOCKS 代理软件，只要你电脑有一个连接到国外服务器的 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>情况</strong><br />
由于最近在中国某个地方爆发了 riot, 所以境内很多网站又是无法访问 (twitter.com、facebook.com 等)，让我们这些网民很无奈。</p>
<p><strong>使用 SSH 翻墙</strong><br />
<a href="http://sprayfly.com/2009/07/05/%E5%9C%A8-linux-%E4%B8%8B%E4%BD%BF%E7%94%A8%E4%BD%A0%E7%9A%84%E7%BD%91%E7%AB%99%E4%B8%BB%E6%9C%BA%E4%BD%9C%E4%B8%BA%E5%8A%A0%E5%AF%86%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8/">我曾经介绍过</a>如何使用 SSH 来建立一个 SOCKS 代理服务器，让你能够在 Firefox 里正常访问以上所提起的网址。然而不是所有 Linux 软件都能支持代理服务器。如果你最热爱的 Linux 工具需要访问&#8221;被封&#8221;的网站，又没有嵌入的代理支持，该怎么办呢？<br />
遇到这种情况当然不要放弃该软件&#8230; 毕竟我们用的系统是 Linux 而不是以前让我们咳声叹气，丧失信心的 Windows，总有一个方法去解决问题。</p>
<p><strong>举个例子吧</strong><br />
我不久前发现了 Twitter 这个网站。我一开始不经常用，也搞不明白别人为什么对这个 web 2.0 服务都着了迷。后来我在推特上跟的人越来越多，跟着我的人亦是日益增多，不知不觉我也迷上了该网站，天天都会上。凡是经常用推特的人一般都会用一个推特的客户端，这才能跟得上朋友们的状态更新和最火热的网络新闻。本人作为 Ubuntu 的用户，我自然就选了 <a href="https://launchpad.net/gwibber">Gwibber</a> 这个基于 GNOME 的客户端来访问我的推特。这个软件功能很丰富，用起来得心应手，不过总有一个问题让我有点遗憾，就是 Gwibber <a href="https://bugs.launchpad.net/gwibber/+bug/259830">还不听从 GNOME 的代理设置</a>。平时这也不是一个很大的问题，但是每遇中国网络封锁较严重时，都会让我暂时无法使用该软件。</p>
<p><strong>解决方案&#8230; Tsocks</strong><br />
经过几个 Google 搜索，我最终很高兴地发现 Linux 有一个能够强迫任何软件通过 SOCKS 代理上网的工具，其名就是 tsocks。Tsocks 是一个透明 SOCKS 代理软件，只要你电脑有一个<a href="http://sprayfly.com/2009/07/05/%E5%9C%A8-linux-%E4%B8%8B%E4%BD%BF%E7%94%A8%E4%BD%A0%E7%9A%84%E7%BD%91%E7%AB%99%E4%B8%BB%E6%9C%BA%E4%BD%9C%E4%B8%BA%E5%8A%A0%E5%AF%86%E4%BB%A3%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8/">连接到国外服务器的 SSH 隧道</a>，你就能让任何软件翻墙。</p>
<p><strong>安装并配置 Tsocks</strong><br />
以下说明都是为了那些使用 Ubuntu  的 Linux 用户，不过在别的 Linux 发行版下，安装的过程应该与此差不多。</p>
<p>在终端中:</p>
<pre>sudo apt-get install tsocks</pre>
<p>修改配置文件:</p>
<pre>sudo nano /etc/tsocks.conf</pre>
<p>将其内容改成以下几行并保存退出:</p>
<pre>local = 192.168.1.0/255.255.255.0 #local表示本地的网络，也就是不使用socks代理的网络
server = 127.0.0.1 # SOCKS 服务器的 IP
server_type = 5 # SOCKS 服务版本
server_port = 9999 ＃SOCKS 服务使用的端口</pre>
<p>你可能需要修改一下以上内容，用你自己的 SSH 隧道设置。</p>
<p><strong>运行软件</strong><br />
用 tsocks 运行你的软件很简单，在终端中:</p>
<pre>tsocks 你的软件 &#038;</pre>
<p>我现在运行 Gwibber 都是这样运行的:</p>
<pre>tsocks gwibber &#038;</pre>
<p>祝你们翻墙愉快！</p>
<p><strong>EDIT&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;></strong></p>
<p>我今天还发现了另外一个工具，其功能似乎比 tsocks 要更丰富，配置起来更简单，而且不会那么容易出错。这个工具就是 <a href="proxychains.sourceforge.net/">proxychains</a>。以下有配置方法:</p>
<pre>sudo apt-get install proxychains</pre>
<p>修改配置文件 (/etc/proxychains.conf)，应该如下：</p>
<pre># proxychains.conf  VER 2.0
#
#        HTTP, SOCKS4, SOCKS5 tunneling proxifier.
#

# The option below identifies how the ProxyList is treated.
# only one option should be uncommented at time,
# otherwise the last appearing option will be accepted
#
# Dynamic - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# at least one proxy must be online to play in chain
# (dead proxies are skipped)
# otherwise EINTR is returned to the app
#
# Strict - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# all proxies must be online to play in chain
# otherwise EINTR is returned to the app
#
# Random - Each connection will be done via random proxy
# (or proxy chain, see  chain_len) from the list
# this option is good for scans

dynamic_chain
#strict_chain
#random_chain

# Make sense only if random_chain
chain_len = 2

# Quiet mode (no output)
#quiet_mode

# Write stats about good proxies to proxychains.stats
#write_stats

#Some timeouts in milliseconds
#
tcp_read_time_out 15000
tcp_connect_time_out 10000

[ProxyList]
# ProxyList format
#       type  host  port [user pass]
#       (values separated by 'tab' or 'blank')
#
#
#        Examples:
#
#            	socks5	192.168.67.78	1080	lamer  secret
#		http	192.168.89.3	8080	justu	hidden
#	 	socks4	192.168.1.49	1080
#	        http	192.168.39.93	8080
#
#
#       proxy types: http, socks4, socks5
#        ( auth types supported: "basic"-http  "user/pass"-socks )
#
#http 	10.0.0.5 3128
socks5 127.0.0.1 9999
socks4 127.0.0.1 9050
</pre>
<p>注意事项:</p>
<ol>
<li>要选 dynamic_chain 而不是 random_chain</li>
<li>可以列举几个代理服务器，proxychains  会按顺序用，代理无法访问即自动选用下一个</li>
<li>代理服务器要根据自己电脑的情况自行调整</li>
</ol>
<p><strong>运行 proxychains</strong><br />
运行 proxychains 跟运行 tsocks 完全一样。在终端中:</p>
<pre>proxychains 你的软件 &#038;</pre>
<p>比如说:</p>
<pre>proxychains chromium-browser &#038;</pre>
<p>我还是推荐你使用 proxychains！</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2009/07/09/%e7%94%a8-tsocks-%e4%bd%bf-linux-%e4%b8%8b%e6%89%80%e6%9c%89%e8%bd%af%e4%bb%b6%e8%83%bd%e5%a4%9f%e7%bf%bb%e5%a2%99/feed/</wfw:commentRss>
		<slash:comments>55</slash:comments>
		</item>
	</channel>
</rss>
