<?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; Ubuntu</title>
	<atom:link href="http://sprayfly.com/category/ubuntu/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>Use regular expressions to match essay citations</title>
		<link>http://sprayfly.com/2010/03/17/use-regular-expressions-to-match-essay-citations/</link>
		<comments>http://sprayfly.com/2010/03/17/use-regular-expressions-to-match-essay-citations/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 10:51:14 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[citations]]></category>
		<category><![CDATA[essay]]></category>
		<category><![CDATA[expressions]]></category>
		<category><![CDATA[harvard]]></category>
		<category><![CDATA[quotations]]></category>
		<category><![CDATA[regular]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=445</guid>
		<description><![CDATA[I have recently been busy with a number of essay assignments on my university course. Most of these essays have a word limit but citations made within the body of the essay text are not to be included in this word count. To save me from manually removing these citations from the essay, a tedious [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently been busy with a number of essay assignments on my university course. Most of these essays have a word limit but citations made within the body of the essay text are not to be included in this word count.</p>
<p>To save me from manually removing these citations from the essay, a tedious process, I discovered that I could use regular expressions to find and remove all citations in one particular text.</p>
<p>For most essays, the Harvard system of (author date) citation is used, for example:</p>
<pre>(Chan 1991)</pre>
<p>Therefore, to match this quotation, I needed a regex that would match any brackets in which there was a single word starting with a capital letter followed by a four digit number. I came up with the following:</p>
<pre>\([A-Z][a-z]*[ ][0-9][0-9][0-9][0-9]\)</pre>
<p>Using this regular expression in a find &#038; replace operation in a text editor, quotes can be quickly removed in bulk from a text &#8211; whilst ensuring that other information contained within brackets is not removed.</p>
<p>Timesaver!</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2010/03/17/use-regular-expressions-to-match-essay-citations/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>使用 totem-pps 在 Ubuntu 下完美地观看 PPS 电影</title>
		<link>http://sprayfly.com/2009/10/24/%e4%bd%bf%e7%94%a8-totem-pps-%e5%9c%a8-ubuntu-%e4%b8%8b%e5%ae%8c%e7%be%8e%e5%9c%b0%e8%a7%82%e7%9c%8b-pps-%e7%94%b5%e5%bd%b1/</link>
		<comments>http://sprayfly.com/2009/10/24/%e4%bd%bf%e7%94%a8-totem-pps-%e5%9c%a8-ubuntu-%e4%b8%8b%e5%ae%8c%e7%be%8e%e5%9c%b0%e8%a7%82%e7%9c%8b-pps-%e7%94%b5%e5%bd%b1/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 23:19:00 +0000</pubDate>
		<dc:creator>Jono</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[films]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[pps]]></category>
		<category><![CDATA[totem]]></category>
		<category><![CDATA[totem-pps]]></category>
		<category><![CDATA[中文，在线视频]]></category>

		<guid isPermaLink="false">http://sprayfly.com/?p=425</guid>
		<description><![CDATA[我之前在 Ubuntu 的中文论坛里看到过不少有关使用一个 Totem 插件来观看 PPS 在线视频的帖子，而且我最近还注意到了 PPS 的官方下载页面上竟然多出了一个 Linux 版本的链接与相关安装说明。 本人作为一个热爱看中国电影的老外，只要闲着都会跑一趟图书馆去借一些中国片子。我得知有如此有用的 Totem 插件之后，就根据帖子里面的说明安装到我电脑上了。然而，我很快就发现安装上述插件的过程并非简单，需要我自己下载源代码，将其编译好。虽然我最终还是安装成功了，但是后来发现这个插件有不少缺陷，其中最主要的是你只能在 Totem 里用这个插件来浏览 PPS 所提供的在线视频而不能用浏览器直接上官方网站去找。插件的浏览界面很简单又超级慢，其电影的分类杂乱无章，也没有搜索电影功能。因此，我怎么都找不到我想看的片子，实在是太不好用了，还是算了吧！ 既然在 Ubuntu 下收看在线视频如此的麻烦，所以我暂且在 Virtualbox 的虚拟机里安装了 XP 和 PPS，每次想看电影时我就会启动虚拟机，打开 PPS 后就能开始收看电影了。不过，由于我这用的是笔记本，所以每当我同时开着 Ubuntu 和 Windows，电脑就会变得非常热，内存占满，处理器忙不过来，以至于电影的画面质量大大降低，收看的体验大打折扣，我实在是看不下去了。 面临着如此大的困难，我今天又在谷歌上搜了一下，想知道有没有别的办法让我能够顺顺利利地看一些在线电影。令我吃惊的是，在一两个月的时间内，上述插件的开发者都已经发布了一个新的版本，名叫 totem-pps。这次开发者还提供了一个 DEB 的软件包，让用户能摆脱十分复杂的手动安装过程。不仅如此，开发者还编了一个非常棒的 Greasemonkey 脚本。使用 Firefox 的用户安装这个脚本后便能直接到 PPS 的官方网站上去找电影看，只要点击电影的缩略图即可，视频将在 Firefox 的窗口里自动开始播放。 总之，totem-pps 这个插件使 Ubuntu 用户能享受到一个完美的，非常便捷的收看在线视频的体验。它的功能非常丰富，性能也很强，而且如果你将它与 Greasemonkey 并用的话，搜索到你最想看的电影已经不成一个问题了。有人感兴趣的话，可以按照下面的安装步骤，自己试一下这个非常棒的 Totem 插件。 如何安装: 先把 Mingming 的 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/jonolumb/4037821949/" class="tt-flickr tt-flickr-Medium" title="在 Ubuntu 下运行 PPS"><img class="alignnone" src="http://farm4.static.flickr.com/3493/4037821949_77d8ca0236.jpg" alt="在 Ubuntu 下运行 PPS" width="500" height="302" /></a> </p>
<p>我之前在 Ubuntu 的中文论坛里看到过不少有关使用一个 Totem 插件来观看 PPS 在线视频的帖子，而且我最近还注意到了 PPS 的<a href="http://dl.pps.tv/">官方下载页面</a>上竟然多出了一个 Linux 版本的链接与相关安装说明。</p>
<p><a href="http://www.flickr.com/photos/jonolumb/4039447860/" class="tt-flickr tt-flickr-Medium" title="pps-linux.png"><img class="alignnone" src="http://farm3.static.flickr.com/2799/4039447860_d040cffc47.jpg" alt="pps-linux.png" width="500" height="229" /></a> </p>
<p>本人作为一个热爱看中国电影的老外，只要闲着都会跑一趟图书馆去借一些中国片子。我得知有如此有用的 Totem 插件之后，就根据帖子里面的说明安装到我电脑上了。然而，我很快就发现安装上述插件的过程并非简单，需要我自己下载源代码，将其编译好。虽然我最终还是安装成功了，但是后来发现这个插件有不少缺陷，其中最主要的是你只能在 Totem 里用这个插件来浏览 PPS 所提供的在线视频而不能用浏览器直接上官方网站去找。插件的浏览界面很简单又超级慢，其电影的分类杂乱无章，也没有搜索电影功能。因此，我怎么都找不到我想看的片子，实在是太不好用了，还是算了吧！</p>
<p>既然在 Ubuntu 下收看在线视频如此的麻烦，所以我暂且在 Virtualbox 的虚拟机里安装了 XP 和 PPS，每次想看电影时我就会启动虚拟机，打开 PPS 后就能开始收看电影了。不过，由于我这用的是笔记本，所以每当我同时开着 Ubuntu 和 Windows，电脑就会变得非常热，内存占满，处理器忙不过来，以至于电影的画面质量大大降低，收看的体验大打折扣，我实在是看不下去了。</p>
<p>面临着如此大的困难，我今天又在谷歌上搜了一下，想知道有没有别的办法让我能够顺顺利利地看一些在线电影。令我吃惊的是，在一两个月的时间内，上述插件的开发者都已经发布了一个新的版本，名叫 <a href="http://code.google.com/p/totem-pps/">totem-pps</a>。这次开发者还提供了一个 DEB 的软件包，让用户能摆脱十分复杂的手动安装过程。不仅如此，开发者还编了一个非常棒的 Greasemonkey 脚本。使用 Firefox 的用户安装这个脚本后便能直接到 PPS 的官方网站上去找电影看，只要点击电影的缩略图即可，视频将在 Firefox 的窗口里自动开始播放。</p>
<p>总之，totem-pps 这个插件使 Ubuntu 用户能享受到一个完美的，非常便捷的收看在线视频的体验。它的功能非常丰富，性能也很强，而且如果你将它与 Greasemonkey 并用的话，搜索到你最想看的电影已经不成一个问题了。有人感兴趣的话，可以按照下面的安装步骤，自己试一下这个非常棒的 Totem 插件。</p>
<p><strong>如何安装:</strong></p>
<p>先把 Mingming 的 Launchpad PPA 添加到你的软件源：</p>
<p>Ubuntu Karmic: </p>
<pre>sudo add-apt-repository ppa:portis25/ppa</pre>
<p>Ubuntu Jaunty:</p>
<p>将下面两行添加到 /etc/apt/sources.list/totem-pps.list</p>
<pre>deb http://ppa.launchpad.net/portis25/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/portis25/ppa/ubuntu karmic main</pre>
<p>在终端中执行下面的命令来获取上述 PPA 源的密钥。</p>
<pre>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EF666E7B1E758171B82B7C5327F5B2C1B3EAC8D9</pre>
<p>更新软件包列表：</p>
<pre>sudo apt-get update</pre>
<p>安装 totem-pps 和 totem-mozilla (Totem 的 Firefox 插件）：</p>
<pre>sudo apt-get install totem-pps totem-mozilla</pre>
<p><strong>在 Totem 里启用 totem-pps 插件:</strong></p>
<p><a href="http://www.flickr.com/photos/jonolumb/4038696095/" class="tt-flickr tt-flickr-Medium" title="配置插件.png"><img class="alignnone" src="http://farm3.static.flickr.com/2421/4038696095_7f557229a3.jpg" alt="配置插件.png" width="500" height="301" /></a> </p>
<p>打开 Totem（电影播放器），然后在菜单里面选：</p>
<p>编辑 &#8211;> 插件</p>
<p>在所打开的窗口里勾上 &#8220;PPS 浏览器&#8221; 此插件就可以了</p>
<p><strong>在 Firefox 里安装 Greasemonkey 脚本:</strong></p>
<p>你如果没有安装过 Greasemonkey，要先到<a href="https://addons.mozilla.org/en-US/firefox/addon/748">此网页</a>，安装后要重启 Firefox。</p>
<p><a href="http://userscripts.org/scripts/source/59991.user.js">点击此链接来安装脚本</a></p>
<p>脚本的配置如下：</p>
<p><a href="http://www.flickr.com/photos/jonolumb/4039449450/" class="tt-flickr tt-flickr-Medium" title="管理用户脚本.png"><img class="alignnone" src="http://farm4.static.flickr.com/3490/4039449450_f8e79e6052.jpg" alt="管理用户脚本.png" width="500" height="416" /></a> </p>
<p><strong>测试一下:</strong></p>
<p>到 <a href="http://kan.pps.tv/">http://kan.pps.tv/</a> 找自己想看的电影并点开，等视频在 Firefox 的窗口中开始播放就行了。 （要等待视频缓冲完了才能开始看，等候时间根据自己的网速而定）</p>
<p>要想知道更多关于这个插件的开发，可以到它的<a href="http://code.google.com/p/totem-pps/">Google Code</a>页面去看看。</p>
<div id="mainphotoarea"></div>]]></content:encoded>
			<wfw:commentRss>http://sprayfly.com/2009/10/24/%e4%bd%bf%e7%94%a8-totem-pps-%e5%9c%a8-ubuntu-%e4%b8%8b%e5%ae%8c%e7%be%8e%e5%9c%b0%e8%a7%82%e7%9c%8b-pps-%e7%94%b5%e5%bd%b1/feed/</wfw:commentRss>
		<slash:comments>38</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>
	</channel>
</rss>
