<?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>MattAustin.me.uk &#187; ubuntu</title> <atom:link href="http://mattaustin.me.uk/tag/ubuntu/feed/" rel="self" type="application/rss+xml" /><link>http://mattaustin.me.uk</link> <description>Python, Django, open source, Linux, and other internet shenanigans</description> <lastBuildDate>Thu, 19 Jan 2012 00:37:32 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Nokia N900</title><link>http://mattaustin.me.uk/2009/12/nokia-n900/</link> <comments>http://mattaustin.me.uk/2009/12/nokia-n900/#comments</comments> <pubDate>Fri, 25 Dec 2009 05:37:52 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[n900]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[maemo]]></category> <category><![CDATA[nokia n900]]></category> <category><![CDATA[python]]></category> <guid
isPermaLink="false">http://mattaustin.me.uk/?p=163</guid> <description><![CDATA[I recently received my N900 (it had to be forwarded on to me in Australia from the UK) &#8211; and it&#8217;s easily the best phone i have ever used. Maemo 5 rocks, and its amazing to be running this kind of software on a device like this. The web browser is fantastic (based on the [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://mattaustin.me.uk/wordpress/wp-content/uploads/2009/12/Screenshot-20091225-141119.png"><img
src="http://mattaustin.me.uk/wordpress/wp-content/uploads/2009/12/Screenshot-20091225-141119.png" alt="" title="Python on the N900" width="580" height="348" class="alignnone size-full wp-image-165" /></a></p><p>I recently received my N900 (it had to be forwarded on to me in Australia from the UK) &#8211; and it&#8217;s easily the best phone i have ever used. Maemo 5 rocks, and its amazing to be running this kind of software on a device like this.</p><p>The web browser is fantastic (based on the gecko backend) &#8211; I&#8217;ve composed all of this post on the device using the standard wordpress backend.</p><p>Seems to work fine with Ubuntu as well &#8211; it shows up as a mass storage device and a GSM connection when I connected it to my machine with USB.</p><p>I have been attempting to improve my python skills, so maybe I&#8217;ll attempt to create some simple python and gtk apps.</p> ]]></content:encoded> <wfw:commentRss>http://mattaustin.me.uk/2009/12/nokia-n900/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Disabling The Annoying Middle-Click Load Clipboard URL Behaviour In Firefox</title><link>http://mattaustin.me.uk/2009/07/disabling-the-annoying-middle-click-load-clipboard-url-behaviour-in-firefox/</link> <comments>http://mattaustin.me.uk/2009/07/disabling-the-annoying-middle-click-load-clipboard-url-behaviour-in-firefox/#comments</comments> <pubDate>Mon, 13 Jul 2009 13:42:56 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[ubuntu]]></category> <category><![CDATA[eeepc]]></category> <category><![CDATA[firefox]]></category> <guid
isPermaLink="false">http://mattaustin.me.uk/?p=148</guid> <description><![CDATA[I recently bought an ASUS EeePC 1000HE, and have been very pleased with it. I immediately installed Ubuntu 9.04, and was delighted to find all functionality working out-of-the-box. However, the one thing that has puzzled me the last couple of weeks has been random websites loading in Firefox as I was scrolling web pages (with [...]]]></description> <content:encoded><![CDATA[<p>I recently bought an ASUS EeePC 1000HE, and have been very pleased with it. I immediately installed Ubuntu 9.04, and was delighted to find all functionality working out-of-the-box.</p><p>However, the one thing that has puzzled me the last couple of weeks has been random websites loading in Firefox as I was scrolling web pages (with the two-finger multi-touch functionality), or sometimes even an error dialogue saying the URL was invalid and could not be loaded.</p><p><img
src="http://mattaustin.me.uk/wordpress/wp-content/uploads/2009/07/Firefox_3.5_logo.png" alt="Firefox logo" title="Firefox" width="128" height="128" class="size-full wp-image-150" /></p><p>It turns out that this is because the touchpad sometimes interpreted my scrolling as a middle-mouse-button click &#8211; which (previously unknown to me) causes Firefox to load the text in the clipboard as a URL.</p><p>This behavior is easily disabled by going to <code>about:config</code> in the address bar, searching for <code>middlemouse.contentLoadURL</code>, and changing the value to <code>false</code>.</p><p>Hopefully this might help anyone experiencing the same issues as me. There is more info on the <code>middlemouse.contentLoadURL</code> property at <a
href="http://kb.mozillazine.org/Middlemouse.contentLoadURL">MozillaZine</a>.</p> ]]></content:encoded> <wfw:commentRss>http://mattaustin.me.uk/2009/07/disabling-the-annoying-middle-click-load-clipboard-url-behaviour-in-firefox/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Epiphany Webkit on Ubuntu 9.04 (Jaunty)</title><link>http://mattaustin.me.uk/2009/06/epiphany-webkit-on-ubuntu-jaunty-9-04/</link> <comments>http://mattaustin.me.uk/2009/06/epiphany-webkit-on-ubuntu-jaunty-9-04/#comments</comments> <pubDate>Mon, 15 Jun 2009 05:37:54 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[ubuntu]]></category> <category><![CDATA[epiphany]]></category> <category><![CDATA[jaunty]]></category> <category><![CDATA[web browser]]></category> <category><![CDATA[webkit]]></category> <guid
isPermaLink="false">http://mattaustin.me.uk/?p=134</guid> <description><![CDATA[Update 05/09/09: since I originally posted this information it looks like the Webkit Team re-organised their PPA. I have updated the instructions &#8211; thanks to those who let me know. I just installed the Epiphany Webkit 2.27.2 browser from the Webkit Team PPA. It seems pretty speedy &#8211; and the flash plugin can now used. [...]]]></description> <content:encoded><![CDATA[<p><strong><em>Update 05/09/09: since I originally posted this information it looks like the Webkit Team re-organised their PPA. I have updated the instructions &#8211; thanks to those who let me know.</em></strong></p><p>I just installed the Epiphany Webkit 2.27.2 browser from the <a
href="https://launchpad.net/~webkit-team">Webkit Team PPA</a>. It seems pretty speedy &#8211; and the flash plugin can now used.</p><ol><li>Add the Webkit Team PPA and Epiphany Webkit Team PPA repositories by adding the following lines to <code>/etc/apt/sources.list</code>:<pre>
# Epiphany Webkit PPA
deb http://ppa.launchpad.net/webkit-team/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/webkit-team/ppa/ubuntu jaunty main
deb http://ppa.launchpad.net/webkit-team/epiphany/ubuntu jaunty main
deb-src http://ppa.launchpad.net/webkit-team/epiphany/ubuntu jaunty main
</pre></li><li>Add the Webkit Team PPA Key:<pre>
wget -O webkit.key http://keyserver.ubuntu.com:11371/pks/lookup?op=get\&#038;search=0x991E6CF92D9A3C5B
sudo apt-key add webkit.key
</pre></li><li>Install epiphany-webkit:<pre>
sudo apt-get update &#038;&#038; sudo apt-get install <a href="apt://epiphany-webkit">epiphany-webkit</a>
</pre></li></ol><p>Not sure if this will replace Firefox on my desktop machine (I won&#8217;t be able to give up my Firefox extensions). But I will certainly use this as my main browser on my netbook.</p> ]]></content:encoded> <wfw:commentRss>http://mattaustin.me.uk/2009/06/epiphany-webkit-on-ubuntu-jaunty-9-04/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>RealPlayer on Ubuntu 8.10 &amp; 9.04 (Intrepid &amp; Jaunty) 64-bit Machines (AMD64)</title><link>http://mattaustin.me.uk/2009/04/realplayer-on-ubuntu-810-intrepid-64-bit-machines-amd64/</link> <comments>http://mattaustin.me.uk/2009/04/realplayer-on-ubuntu-810-intrepid-64-bit-machines-amd64/#comments</comments> <pubDate>Mon, 13 Apr 2009 06:09:35 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[ubuntu]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[helix]]></category> <category><![CDATA[helix player]]></category> <category><![CDATA[intrepid]]></category> <category><![CDATA[mozilla]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[realplayer]]></category> <guid
isPermaLink="false">http://mattaustin.me.uk/?p=112</guid> <description><![CDATA[I recently needed to install RealPlayer and the RealPlayer mozilla firefox plugin so that I could listen to Adam &#38; Joe&#8217;s show on BBC 6 Music. I had previously been using the mplayer mozilla plugin, and although playback worked, it was quite choppy (it didn&#8217;t seem to buffer too well), and I could not pause/resume [...]]]></description> <content:encoded><![CDATA[<p>I recently needed to install RealPlayer and the RealPlayer mozilla firefox plugin so that I could listen to <a
href="http://www.bbc.co.uk/6music/shows/adamandjoe/">Adam &amp; Joe&#8217;s show on BBC 6 Music</a>.</p><p>I had previously been using the mplayer mozilla plugin, and although playback worked, it was quite choppy (it didn&#8217;t seem to buffer too well), and I could not pause/resume or seek.</p><p>My first thought was to look in the Medibuntu repositories, and sure enough, there was a realplayer package &#8211; unfortunately it seems that this did not include the mozilla plugin.</p><p>My next try was to look at the <a
href="http://realplayer.com/linux">RealPlayer for linux website</a>, but it only has a download for the 32-bit version. I did notice that there was a link to <a
href="http://player.helixcommunity.org/2005/downloads">helix player</a> for other platforms. Helix player is an open source media player on which RealPlayer is based. I tried helix player, but this can not play back proprietary codecs (and therefore not the real stream from the BBC website), however it did include a mozilla plugin!</p><p>I tried a combination of both &#8211; I installed RealPlayer from the Medibuntu repositories, and installed the mozilla plugin from the helix tarball to my home directory. And it works!</p><p>Instructions follow:</p><ol><li>Enable the <a
href="https://help.ubuntu.com/community/Medibuntu">Medibuntu repositories</a>.</li><li>Install the RealPlayer and libstdc++5 packages: <br
/><code>sudo apt-get update &#038;&#038; sudo apt-get install <a
href="apt://realplayer">realplayer</a> <a
href="apt://libstdc++5">libstdc++5</a></code></li><li>Load RealPlayer (Applications > Sound &#038; Video > RealPlayer), and in Tools > Preferences, select the hardware tab, and set the audio driver to <code>OSS</code>. Press OK, and close RealPlayer.</li><li>Download and unpack (into a temporary location) the <a
href="http://forms.helixcommunity.org/helix/builds/?category=hxplay-current">Helix Player for AMD64</a> &#8211; I grabbed the <code>linux-2.6-glibc23-amd64</code> tar.</li><li>Copy the contents of the &#8220;<code>mozilla</code>&#8221; folder to <code>~/.mozilla/plugins</code> (in your home directory &#8211; you may need to create the plugins folder).</li></ol><p><strong>Update</strong>: Looks as if I may have jumped the gun a bit &#8211; looking at the files installed by the medibuntu realplayer package, it does indeed look as if it comes with the mozilla plugin. I do not know why it wasn&#8217;t working for me (maybe it places it in the wrong location?) &#8211; but I am running fine with the above solution (even if it is a bit messy).</p> ]]></content:encoded> <wfw:commentRss>http://mattaustin.me.uk/2009/04/realplayer-on-ubuntu-810-intrepid-64-bit-machines-amd64/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Installing thummer 0.01 on Ubuntu 8.04 LTS Server</title><link>http://mattaustin.me.uk/2009/01/installing-thummer-on-ubuntu-804-lts-server/</link> <comments>http://mattaustin.me.uk/2009/01/installing-thummer-on-ubuntu-804-lts-server/#comments</comments> <pubDate>Wed, 14 Jan 2009 11:00:40 +0000</pubDate> <dc:creator>Matt</dc:creator> <category><![CDATA[thummer]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[cutycapt]]></category> <category><![CDATA[django]]></category> <category><![CDATA[gecko]]></category> <category><![CDATA[webkit]]></category> <category><![CDATA[xvfb]]></category> <guid
isPermaLink="false">http://mattaustin.me.uk/?p=25</guid> <description><![CDATA[thummer is a website-snapshot and thumbnailing utility I am working on, built using django. Read my previous thummer blog post to find out more about the project. Assumptions In this article, I am assuming that we are installing thummer on an existing Ubuntu server (8.04 or later) with Apache already installed, and that you are [...]]]></description> <content:encoded><![CDATA[<p>thummer is a website-snapshot and thumbnailing utility I am working on, built using django. Read my <a
href="/2009/01/thummer-website-thumbnail-generator-cutycapt-django/">previous thummer blog post</a> to find out more about the project.</p><h3>Assumptions</h3><p>In this article, I am assuming that we are installing thummer on an existing Ubuntu server (8.04 or later) with Apache already installed, and that you are comfortable with editing apt&#8217;s sources.list file.</p><h2>Step 1: Install A &#8220;Fake&#8221; X-Server</h2><p>If you do not have a desktop environment installed on your server (probably a good thing!), then you will need to install <strong>xvfb</strong>, which provides a virtual screen so that we can capture the rendered output of the website:</p><blockquote><p>Xvfb provides an X server that can run on machines with no display hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory.</p></blockquote><ul><li><code>sudo apt-get install <a
href="apt://xvfb">xvfb</a></code></li></ul><h2>Step 2: Install CutyCapt</h2><p>We now need to install CutyCapt (webkit rendering).</p><p>First, we need to install the cutycapt dependencies and build tools:</p><ul><li><code>sudo apt-get install <a
href="apt://build-essential">build-essential</a></code></li></ul><p>For hardy only: We also need some packages from hardy-backports &#8211; add the following lines to /etc/apt/sources.list.</p><p><code>deb http://archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse<br
/>deb-src http://archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse</code></p><p>Now install the required qt4 packages:</p><ul><li><code>sudo apt-get update</code></li><li><code>sudo apt-get install <a
href="apt://libqt4-dev">libqt4-dev</a> <a
href="apt://libqt4-webkit">libqt4-webkit</a> <a
href="apt://libqt4-svg">libqt4-svg</a></code></li></ul><p>It&#8217;s now probably a good idea to remove (or comment out) the hardy-backports lines from your sources.list file.</p><p>Download cutycapt source, and expand the tarball:</p><ul><li><code>cd ~/</code></li><li><code>wget http://cutycapt.svn.sourceforge.net/viewvc/cutycapt/CutyCapt.tar.gz\?view\=tar</code></li><li><code>tar -xvvzf CutyCapt.tar.gz\?view\=tar</code></li></ul><p>Compile cutycapt:</p><ul><li><code>cd CutyCapt</code></li><li><code>qmake</code></li><li><code>make</code></li></ul><h2>Step 3: Install Django</h2><p>First install some packages we&#8217;ll need later:</p><ul><li><code>sudo apt-get install <a
href="apt://python-django">python-django</a> <a
href="apt://python-imaging">python-imaging</a> <a
href="apt://python-pysqlite2">python-pysqlite2</a> <a
href="apt://libapache2-mod-python">libapache2-mod-python</a></code></li></ul><p>For hardy only: The version of django hardy ships with is too old for thummer. Install Jaunty&#8217;s version of <a
href="https://launchpad.net/ubuntu/jaunty/+package/python-django">python-django</a> from the updates repository by downloading the .deb file from Launchpad (remember to keep an eye out for future security updates):</p><ul><li><code>cd ~/</code></li><li><code>wget http://launchpadlibrarian.net/17665378/python-django_1.0-1ubuntu1_all.deb</code></li><li><code>sudo dpkg -i python-django_1.0-1ubuntu1_all.deb</code></li></ul><h2>Step 4: Install &#038; Configure thummer</h2><p>Download thummer, expand the tarball, and move the extracted files to /var/www:</p><ul><li><code>cd ~/</code></li><li><code>wget http://launchpad.net/thummer/trunk/0.01/+download/thummer_0.01.tar.gz</code></li><li><code>tar -xvvzf thummer_0.01.tar.gz</code></li><li><code>sudo mv thummer_0.01 /var/www/thummer</code></li></ul><p>Make sure subversion is installed:</p><ul><li><code>sudo apt-get install <a
href="apt://subversion">subversion</a></code></li></ul><p>Download the required site-package, sorl-thumbnails:</p><ul><li><code>sudo svn checkout http://sorl-thumbnail.googlecode.com/svn/trunk/sorl /usr/local/lib/python2.5/site-packages/sorl</code></li></ul><p>Create the database, and initial admin user:</p><ul><li><code>cd /var/www/thummer/thummer</code></li><li><code>./manage.py syncdb</code></li></ul><p>Set owner so that the apache process can write to the database:</p><ul><li><code>sudo chown -R www-data /var/www/thummer/database</code></li></ul><p>Set owner so that the apache process can write to the media directory:</p><ul><li><code>sudo chown -R www-data /var/www/thummer/media</code></li></ul><p>Update the django website settings:</p><ul><li><code>sudo nano ./settings.py</code></li></ul><p>Make sure that &#8220;<code>XVFB = True</code>&#8220;, specify the <strong>full path to the database</strong> for DATABASE_NAME.</p><p>Ensure the full path to the CutyCapt binary is correct.</p><h2>Step 5: Configure Apache</h2><p>Ensure that the python module for Apache is enabled:</p><ul><li><code>sudo a2enmod mod_python</code></li></ul><p>Create a virtual-host site configuration file:</p><ul><li><code>sudo nano /etc/apache2/sites-available/thummer</code></li></ul><p>Paste in the following configuration &#8211; replace &#8220;thummer.domainname.com&#8221; with your desired domain name:</p><div><pre>
&#60;VirtualHost *&#62;
  ServerName thummer.domainname.com
  DocumentRoot /var/www/thummer/thummer
  &#60;Directory "/var/www/thummer/thummer"&#62;
    AllowOverride All
    Order Allow,Deny
    Allow from All
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE thummer.settings
    PythonPath "['/var/www/thummer'] + sys.path"
  &#60;/Directory&#62;
  # Static Media Content
  Alias /media /var/www/thummer/media
  &#60;Location "/media"&#62;
    SetHandler None
    Order Allow,Deny
    Allow from All
  &#60;/Location&#62;
  Alias /admin-media /usr/share/python-support/python-django/django/contrib/admin/media
  &#60;Location "/admin-media"&#62;
    SetHandler None
    Order Allow,Deny
    Allow from All
  &#60;/Location&#62;
&#60;/VirtualHost&#62;
</pre></div><p>Enable the site, and restart apache:</p><ul><li><code>sudo a2ensite thummer</code></li><li><code>sudo /etc/init.d/apache2 restart</code></li></ul><p>Bam! Thats It! Enjoy, and let me know how it goes!</p><h2>Usage</h2><p>Just use the following URL syntax to reference the image (e.g. in img elements):</p><p><code>http://thummer.domainname.com/[width]/[height]/[crop]/http://url-to-capture/</code></p><p>the value of [crop] can either be 0 or 1, where 0 = scale &#038; fit, and 1 = scale &#038; crop.</p><p>e.g. to generate a 300&#215;300 pixel cropped thumbnail of the <a
href="http://news.bbc.co.uk/">BBC News</a> website:</p><p><code>http://thummer.domainname.com/300/300/1/http://news.bbc.co.uk/</code></p><p><code>&#60;img src="http://thummer.domainname.com/300/300/1/http://news.bbc.co.uk/" alt="BBC News website thumbnail" /&#62;</code></p><p>And here is the result:</p><p><img
src="http://thummer.mattaustin.me.uk/300/300/1/http://news.bbc.co.uk/" alt="BBC News website thumbnail" /></p><p>Remember you can access the admin interface by going to http://thummer.domainname.com/admin where you can delete snapshots &#8211; so that they are regenerated next time they are requested.</p> ]]></content:encoded> <wfw:commentRss>http://mattaustin.me.uk/2009/01/installing-thummer-on-ubuntu-804-lts-server/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
