<?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>david winter &#187; ubuntu</title>
	<atom:link href="http://davidwinter.me.uk/articles/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidwinter.me.uk</link>
	<description>you were expecting someone else?</description>
	<lastBuildDate>Mon, 28 Jun 2010 20:37:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Avoid giving 777 permissions</title>
		<link>http://davidwinter.me.uk/articles/2010/06/28/avoid-giving-777-permissions/</link>
		<comments>http://davidwinter.me.uk/articles/2010/06/28/avoid-giving-777-permissions/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 20:37:42 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/?p=211</guid>
		<description><![CDATA[Just a quick post for me to remember the following workflow of commands: sudo find . -type d -exec chmod 755 {} \; sudo find . -type f -exec chmod 644 {} \; sudo chgrp -R www-data . sudo chmod -R g+w .]]></description>
			<content:encoded><![CDATA[<p>Just a quick post for me to remember the following workflow of commands:</p>

<pre><code>sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 644 {} \;
sudo chgrp -R www-data .
sudo chmod -R g+w .
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2010/06/28/avoid-giving-777-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove startup scripts on Ubuntu</title>
		<link>http://davidwinter.me.uk/articles/2009/10/20/remove-startup-scripts-on-ubuntu/</link>
		<comments>http://davidwinter.me.uk/articles/2009/10/20/remove-startup-scripts-on-ubuntu/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 19:55:40 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2009/10/20/remove-startup-scripts-on-ubuntu/</guid>
		<description><![CDATA[sudo update-rc.d -f script_name remove]]></description>
			<content:encoded><![CDATA[<pre><code>sudo update-rc.d -f script_name remove
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2009/10/20/remove-startup-scripts-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable PHP error logging</title>
		<link>http://davidwinter.me.uk/articles/2009/07/14/enable-php-error-logging/</link>
		<comments>http://davidwinter.me.uk/articles/2009/07/14/enable-php-error-logging/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 20:02:03 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2009/07/14/enable-php-error-logging/</guid>
		<description><![CDATA[In php.ini: display_errors = Off log_errors = On error_log = /var/log/php-errors.log Make the log file, and writable by www-data: sudo touch /var/log/php-errors.log sudo chown www-data:www-data /var/log/php-errors.log]]></description>
			<content:encoded><![CDATA[<p>In php.ini:</p>

<pre><code>display_errors = Off
log_errors = On
error_log = /var/log/php-errors.log
</code></pre>

<p>Make the log file, and writable by www-data:</p>

<pre><code>sudo touch /var/log/php-errors.log
sudo chown www-data:www-data /var/log/php-errors.log
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2009/07/14/enable-php-error-logging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP and nginx on Ubuntu: the easy way</title>
		<link>http://davidwinter.me.uk/articles/2009/06/13/php-and-nginx-the-easy-way/</link>
		<comments>http://davidwinter.me.uk/articles/2009/06/13/php-and-nginx-the-easy-way/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 19:31:08 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/?p=139</guid>
		<description><![CDATA[I&#8217;ve now changed my slice from running lighttpd to nginx. Here&#8217;s the simplest way, in around 6 commands, to get PHP up and running via FastCGI. Install and setup Install PHP 5: sudo aptitude install php5-cgi Install nginx: sudo aptitude install nginx Create PHP 5 FastCGI start-up script: sudo nano /etc/init.d/php-fastcgi Inside, put: #!/bin/bash BIND=127.0.0.1:9000 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve now changed my slice from running lighttpd to nginx. Here&#8217;s the simplest way, in around 6 commands, to get PHP up and running via FastCGI.</p>

<h2>Install and setup</h2>

<p>Install PHP 5:</p>

<pre><code>sudo aptitude install php5-cgi
</code></pre>

<p>Install nginx:</p>

<pre><code>sudo aptitude install nginx
</code></pre>

<p>Create PHP 5 FastCGI start-up script:</p>

<pre><code>sudo nano /etc/init.d/php-fastcgi
</code></pre>

<p>Inside, put:</p>

<pre><code>#!/bin/bash
BIND=127.0.0.1:9000
USER=www-data
PHP_FCGI_CHILDREN=15
PHP_FCGI_MAX_REQUESTS=1000

PHP_CGI=/usr/bin/php-cgi
PHP_CGI_NAME=`basename $PHP_CGI`
PHP_CGI_ARGS="- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI -b $BIND"
RETVAL=0

start() {
      echo -n "Starting PHP FastCGI: "
      start-stop-daemon --quiet --start --background --chuid "$USER" --exec /usr/bin/env -- $PHP_CGI_ARGS
      RETVAL=$?
      echo "$PHP_CGI_NAME."
}
stop() {
      echo -n "Stopping PHP FastCGI: "
      killall -q -w -u $USER $PHP_CGI
      RETVAL=$?
      echo "$PHP_CGI_NAME."
}

case "$1" in
    start)
      start
  ;;
    stop)
      stop
  ;;
    restart)
      stop
      start
  ;;
    *)
      echo "Usage: php-fastcgi {start|stop|restart}"
      exit 1
  ;;
esac
exit $RETVAL
</code></pre>

<p>Make start-up script executable:</p>

<pre><code>sudo chmod +x /etc/init.d/php-fastcgi
</code></pre>

<p>Launch PHP:</p>

<pre><code>sudo /etc/init.d/php-fastcgi start
</code></pre>

<p>Launch at start-up:</p>

<pre><code>sudo update-rc.d php-fastcgi defaults
</code></pre>

<p>That&#8217;s it. All installed and ready to go.</p>

<h2>Test</h2>

<p>In your server config, add the following:</p>

<pre><code>location ~ \.php$ {
    fastcgi_pass    127.0.0.1:9000;
    fastcgi_index   index.php;
    fastcgi_param   SCRIPT_FILENAME /var/www/nginx-default$fastcgi_script_name;
    include         fastcgi_params;
}
</code></pre>

<p>Restart nginx:</p>

<pre><code>sudo /etc/init.d/nginx restart
</code></pre>

<p>Create a file in your web root (in the example above, /var/www/nginx-default/test.php):</p>

<pre><code>&lt;?php

phpinfo();
</code></pre>

<p>Visit the page in your browser and you should see the standard PHP info page. And you&#8217;re done.</p>

<p>Source: <a href="http://tomasz.sterna.tv/2009/04/php-fastcgi-with-nginx-on-ubuntu/">Aberration</a></p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2009/06/13/php-and-nginx-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Quick lighttpd, PHP, iMagick setup on Ubuntu 8.10 Intrepid</title>
		<link>http://davidwinter.me.uk/articles/2009/01/17/quick-lighttpd-php-imagick-setup-on-ubuntu-810-intrepid/</link>
		<comments>http://davidwinter.me.uk/articles/2009/01/17/quick-lighttpd-php-imagick-setup-on-ubuntu-810-intrepid/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 17:17:14 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[imagick]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2009/01/17/quick-lighttpd-php-imagick-setup-on-ubuntu-810-intrepid/</guid>
		<description><![CDATA[Install lighttpd: sudo aptitude install lighttpd Install PHP and ImageMagick: sudo aptitude install php5-common php5-dev php5-mysql php5-sqlite php5-cgi php5-curl php5-gd php-pear libmagick9-dev Install iMagick: sudo pecl install imagick Press enter on prompt. Add the following to the bottom of /etc/php5/cgi/php.ini: extension=imagick.so Then: sudo lighttpd-enable-mod fastcgi sudo /etc/init.d/lighttpd reload]]></description>
			<content:encoded><![CDATA[<p>Install <code>lighttpd</code>:</p>

<pre><code>sudo aptitude install lighttpd
</code></pre>

<p>Install <code>PHP</code> and <code>ImageMagick</code>:</p>

<pre><code>sudo aptitude install php5-common php5-dev php5-mysql php5-sqlite php5-cgi php5-curl php5-gd php-pear libmagick9-dev
</code></pre>

<p>Install <code>iMagick</code>:</p>

<pre><code>sudo pecl install imagick
</code></pre>

<p>Press enter on prompt.</p>

<p>Add the following to the bottom of <code>/etc/php5/cgi/php.ini</code>:</p>

<pre><code>extension=imagick.so
</code></pre>

<p>Then:</p>

<pre><code>sudo lighttpd-enable-mod fastcgi
sudo /etc/init.d/lighttpd reload
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2009/01/17/quick-lighttpd-php-imagick-setup-on-ubuntu-810-intrepid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merge video files with mencoder</title>
		<link>http://davidwinter.me.uk/articles/2008/05/17/merge-video-files-with-mencoder/</link>
		<comments>http://davidwinter.me.uk/articles/2008/05/17/merge-video-files-with-mencoder/#comments</comments>
		<pubDate>Sat, 17 May 2008 19:48:04 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/?p=95</guid>
		<description><![CDATA[To merge video files together with mencoder is simple: mencoder -oac copy -ovc copy file1.avi file2.avi file3.avi -o full_movie.avi]]></description>
			<content:encoded><![CDATA[<p>To merge video files together with <code>mencoder</code> is simple:</p>

<pre><code>mencoder -oac copy -ovc copy file1.avi file2.avi file3.avi -o full_movie.avi
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/05/17/merge-video-files-with-mencoder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GDM Login Screen Resolution Too Big</title>
		<link>http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/</link>
		<comments>http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 10:06:39 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/</guid>
		<description><![CDATA[If you&#8217;ve noticed that the login screen for Ubuntu Gutsy (GDM) is too big, and that you can use the mouse to move the screen around, you&#8217;ll need to update your xorg.conf file. sudo gvim /etc/X11/xorg.conf When gVim opens, type in the following: /Virtual Then hit enter. That&#8217;ll search the file for the line that [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve noticed that the login screen for Ubuntu Gutsy (GDM) is too big, and that you can use the mouse to move the screen around, you&#8217;ll need to update your <code>xorg.conf</code> file.</p>

<pre><code>sudo gvim /etc/X11/xorg.conf
</code></pre>

<p>When gVim opens, type in the following:</p>

<pre><code>/Virtual
</code></pre>

<p>Then hit enter. That&#8217;ll search the file for the line that we need to comment out. When it&#8217;s found, hit <code>i</code> on the keyboard to enter the Insert mode of gVim. Now prepend a <code>#</code> before the <code>Virtual</code> keyword to comment out the entire line.</p>

<p>Hit escape on the keyboard, then type in <code>:wq</code> to save and quit.</p>

<p>Next time you have the login screen in front of you, it should be using the correct screen resolution.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/02/26/gdm-login-screen-resolution-too-big/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Me TV &#8211; EyeTV for Ubuntu?</title>
		<link>http://davidwinter.me.uk/articles/2008/02/10/me-tv-eyetv-for-ubuntu/</link>
		<comments>http://davidwinter.me.uk/articles/2008/02/10/me-tv-eyetv-for-ubuntu/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 21:39:37 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[eyetv]]></category>
		<category><![CDATA[freeview]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[me-tv]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[tv]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2008/02/10/me-tv-eyetv-for-ubuntu/</guid>
		<description><![CDATA[My search for an open source, Ubuntu alternative for EyeTV on OS X is nearly over. I stumbled across &#8216;Me TV&#8216; a few days ago&#8211;and I&#8217;ve left it as long before writing up a post about it so that I could have a good play with it. Installation For those using Gutsy, you&#8217;ll need to [...]]]></description>
			<content:encoded><![CDATA[<p>My search for an open source, Ubuntu alternative for EyeTV on OS X is nearly over. I stumbled across &#8216;<a href="http://me-tv.sourceforge.net/index.html">Me TV</a>&#8216; a few days ago&#8211;and I&#8217;ve left it as long before writing up a post about it so that I could have a good play with it.</p>

<p><span id="more-78"></span></p>

<h2>Installation</h2>

<p>For those using Gutsy, you&#8217;ll need to add the Launchpad repository to your Apt sources:</p>

<pre><code>sudo nano /etc/apt/sources.list
</code></pre>

<p>Add the following to the bottom of the file:</p>

<pre><code># Me TV
deb http://ppa.launchpad.net/michael-lamothe/ubuntu gutsy main
deb-src http://ppa.launchpad.net/michael-lamothe/ubuntu gutsy main
</code></pre>

<p>Save the file, and then:</p>

<pre><code>sudo apt-get update
sudo apt-get install me-tv
</code></pre>

<p><del datetime="20080211">If you&#8217;re running Hardy, Me TV is in the Universal repository, so you can just run <code>sudo apt-get install me-tv</code>.</del> <ins datetime="20080211"><strong>Update:</strong> After contacting Michael, the developer of Me TV, he&#8217;s said that the package in the Hardy Universe repository is out of date. For the time being, you&#8217;re better off adding the LaunchPad repository, as above.</ins></p>

<h2>Features</h2>

<p>Just a reminder of the features that I&#8217;m looking for in an application to replace EyeTV:</p>

<ul>
<li>Watch all Freeview (DVB-T) channels.</li>
<li>Be able to pause, rewind, and forward up to live TV.</li>
<li>Schedule programs to record.</li>
<li>See the TV listings for the channels I have (EPG)</li>
<li>Fullscreen or windowed viewing.</li>
</ul>

<p>Out of all of the above, there is only one feature&#8211;&#8217;Be able to pause, rewind, and forward to live TV&#8217;&#8211;that isn&#8217;t currently available with Me TV, though I believe it should be possible to implement it in the future with developer support. </p>

<p>Here&#8217;s a brief run down of those features:</p>

<h3>Watch all Freeview (DVB-T) channels</h3>

<p>When you first launch the app, it asks if you would like it to create a <code>channels.conf</code> file, and then scans for the channels it can find. </p>

<div><a href="/wp-content/uploads/2008/02/scan.png" rel="lightbox[metv]" title="Me TV asks to scan for channels." class="image_link"><img src="/wp-content/uploads/2008/02/scan.thumbnail.png" alt="Scan Prompt" /></a></div>

<div><a href="/wp-content/uploads/2008/02/region.png" rel="lightbox[metv]" title="Me TV asks for the region closest to you." class="image_link"><img src="/wp-content/uploads/2008/02/region.thumbnail.png" alt="Region Prompt" /></a></div>

<div><a href="/wp-content/uploads/2008/02/channels-found.png" rel="lightbox[metv]" title="Me TV displays the channels it finds." class="image_link"><img src="/wp-content/uploads/2008/02/channels-found.thumbnail.png" alt="Channels Found" /></a></div>

<p>Once this small step is complete, the main window opens with one of the channels on. You&#8217;ll also notice below the EPG. You can switch channels by scrolling up and down the EPG and clicking on the channel name.</p>

<h3>Schedule Programs to Record</h3>

<p>This is as simple as finding the program in the EPG, clicking on Record and then accepting the recording schedule. You can also set, if you want, Me TV to repeat the schedule, say; daily, weekly, etc.</p>

<div><a href="/wp-content/uploads/2008/02/record.png" rel="lightbox[metv]" title="Me TV's recording confirmation." class="image_link"><img src="/wp-content/uploads/2008/02/record.thumbnail.png" alt="Recording" /></a></div>

<div><a href="/wp-content/uploads/2008/02/record-details.png" rel="lightbox[metv]" title="Me TV's record details dialog." class="image_link"><img src="/wp-content/uploads/2008/02/record-details.thumbnail.png" alt="Recording Details" /></a></div>

<h3>Electronic Program Guide &#8211; EPG</h3>

<p>This can be toggled on or off by right clicking in the window. You can scan through the listings every 3 hours, and switch back to what is currently on.</p>

<div><a href="/wp-content/uploads/2008/02/epg.png" rel="lightbox[metv]" title="Me TV's EPG view." class="image_link"><img src="/wp-content/uploads/2008/02/epg.thumbnail.png" alt="EPG" /></a></div>

<h3>Full Screened or Windowed Viewing</h3>

<p>Simply double click in the main window. Voila.</p>

<div><a href="/wp-content/uploads/2008/02/tv.png" rel="lightbox[metv]" title="Me TV's standard TV view." class="image_link"><img src="/wp-content/uploads/2008/02/tv.thumbnail.png" alt="TV" /></a></div>

<h2>Some Suggestions</h2>

<p>Me TV is already very user friendly, however, there are a few small things that I think could be altered or added that would make the experience even better:</p>

<ul>
<li>On the initial launch, rather than asking if Me TV should create a <code>channels.conf</code> file, instead why not just a notification such as; &#8216;Me TV needs to scan for channels that you can watch.&#8217; Non-technical users may get intimidated by the question about a <code>channels.conf</code> file. Me TV <em>has</em> to scan for channels. Just let the user know that&#8217;s what it&#8217;s doing.</li>
<li>For the region selection, include a drop down box for the various countries, and then display the regions for that selected country below&#8211;minus the country prefix. </li>
<li>Ditch the &#8216;Found Channel&#8217; text when scanning for channels. Just show the channel name that has been found.</li>
<li>Move the EPG into it&#8217;s own window. It always seems as though the TV and EPG are competing against eachother. You always have to resize the window so that you can drag the EPG sizer up so that you can get a good glance at what is on across the channels. Then, when you close the EPG, the TV window is perhaps too big for viewing, so you then have to shrink the window again.</li>
<li>By moving the EPG into it&#8217;s own window, it doesn&#8217;t have to be restricted by the size of the TV window that you want. Users can make it larger, and therefore, rather than sticking to the 3 hour step between programs, why not just include a full 12/24 hours. At the top of the EPG window, have a button to skip by day. You can see a lot more of what&#8217;s on in one glance with a larger window, than having to scroll around with a smaller one.</li>
<li>When recording a program from the EPG, after clicking the Record button, don&#8217;t show the detailed schedule window afterwards. In most cases, I would bet that the user doesn&#8217;t need to see or change the details. And if they do, they can go to the scheduler to do that. You only really need the details if you&#8217;re manually creating a recording, or want to set a repeat.</li>
<li>For quick channel change, perhaps include a drop down box at either the top or bottom of the TV window. This removes the dependancy on switching to the EPG to switch channels, as you currently have to.</li>
</ul>

<p>Some of these are very small, or rather picky suggestions, but none-the-less more user friendly.</p>

<h2>Conclusion</h2>

<p>Overall, Me TV is an <strong>excellent</strong> application. Obviosuly a lot of time has gone into developing it. If the feature set remained as it was, I would use it from now on, though I believe there are a few things that would make it an &#8216;easier&#8217; experience for the user. And the one feature missing that would make it the best ever in Linux, and, hands down, the EyeTV alternative for OS X converts to Ubuntu, would be pause, rewind and forward to live TV.</p>

<p>I&#8217;ll be suggesting Me TV to all that I know from now on!</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/02/10/me-tv-eyetv-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>DVB and Mplayer</title>
		<link>http://davidwinter.me.uk/articles/2008/02/09/dvb-and-mplayer/</link>
		<comments>http://davidwinter.me.uk/articles/2008/02/09/dvb-and-mplayer/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 10:27:36 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freeview]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[tv]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2008/02/09/dvb-and-mplayer/</guid>
		<description><![CDATA[As a follow up to yesterday&#8217;s post, here is a quick run through of how to use Mplayer to view DVB channels. Basically, you just need to generate a channels.conf file (see this article) and place it inside ~/.mplayer/. Then run mplayer dvb:// in a terminal window. You&#8217;ll get a video window appear, and the [...]]]></description>
			<content:encoded><![CDATA[<p>As a follow up to <a href="/articles/2008/02/08/watching-freeview-dvb-t-tv-with-vlc-player-on-ubuntu/">yesterday&#8217;s post</a>, here is a quick run through of how to use <a href="http://www.mplayerhq.hu/design7/news.html">Mplayer</a> to view DVB channels.</p>

<p>Basically, you just need to generate a <code>channels.conf</code> file (<a href="/articles/2008/02/08/watching-freeview-dvb-t-tv-with-vlc-player-on-ubuntu/">see this article</a>) and place it inside <code>~/.mplayer/</code>. Then run <code>mplayer dvb://</code> in a terminal window. You&#8217;ll get a video window appear, and the first channel within your <code>channels.conf</code> file will start playing. To switch up and down between channels, you can press <strong>h</strong> and <strong>k</strong>. There&#8217;s a <a href="http://www.keyxl.com/aaa2fa5/302/MPlayer-keyboard-shortcuts.htm">bunch of other helpful keyboard commands</a> though not all of them will work with DVB.</p>

<p>While using Mplayer this way isn&#8217;t very user friendly, it may be helpful for some.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/02/09/dvb-and-mplayer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Watching Freeview (DVB-T) TV with VLC Player on Ubuntu</title>
		<link>http://davidwinter.me.uk/articles/2008/02/08/watching-freeview-dvb-t-tv-with-vlc-player-on-ubuntu/</link>
		<comments>http://davidwinter.me.uk/articles/2008/02/08/watching-freeview-dvb-t-tv-with-vlc-player-on-ubuntu/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 16:56:17 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freeview]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tv]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vlc]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/articles/2008/02/08/watching-freeview-dvb-t-tv-with-vlc-player-on-ubuntu/</guid>
		<description><![CDATA[Watching TV on my desktop. What do I want to be able to do? Watch all Freeview (DVB-T) channels. Be able to pause, rewind, and forward to live TV. Schedule programs to record. See the TV listings for the channels I have. Fullscreen or windowed viewing. I was able to do all of the above [...]]]></description>
			<content:encoded><![CDATA[<p>Watching TV on my desktop. What do I want to be able to do?</p>

<ul>
<li>Watch all <a href="http://www.freeview.co.uk/home">Freeview</a> (DVB-T) channels.</li>
<li>Be able to pause, rewind, and forward to live TV.</li>
<li>Schedule programs to record.</li>
<li>See the TV listings for the channels I have.</li>
<li>Fullscreen or windowed viewing.</li>
</ul>

<p>I was able to do all of the above using <a href="http://www.elgato.com/elgato/int/mainmenu/home.en.html">EyeTV</a> on my Mac. However, I&#8217;m trying to make the complete switch to <a href="http://www.ubuntu.com">Ubuntu</a>, and an open-source alternative is needed.</p>

<p><span id="more-75"></span></p>

<p>I initially setup <a href="http://www.mythtv.org/">MythTV</a>. It consists of two parts, a server and a client. Multiple clients around the home (or over the internet) can connect to the server. That was a little over-the-top for my needs, but MythTV is a very popular choice for TV on Linux, and does do most of the things I want from the list above, hence my decision to use it.</p>

<p>Once installed, I had TV playing perfectly. Though, when I wanted to start doing some work, while still watching TV, it was a little annoying that I couldn&#8217;t find anyway of watching the TV in a window&#8211;only fullscreen. Trying to find a solution on IRC, some users said there was an option to play TV in a window, however, when I tried to enable the option numerous times, I had no luck.</p>

<p>At this point I thought that my journey to Ubuntu was over. I needed TV on my computer, and if I couldn&#8217;t watch it in a window while doing other things, then I&#8217;d have to keep my Mac around to do that.</p>

<p>I&#8217;m not too sure how I stumbled across it, but I found a web page explaining that you could use <a href="http://www.videolan.org/vlc/">VLC Player</a> to tune into a TV card! And since then, for the last few hours, I&#8217;ve been working on getting that working. At the moment, it only ticks off a few of the boxes, but I&#8217;m sure, with a bit more Googling, I&#8217;ll be able to get the other things functioning. With the following, I can watch all my Freeview channels, in full screen or in a window.</p>

<h2>Setting it all up</h2>

<p>Assuming that you have your TV card drivers installed, you can start off with:</p>

<pre><code>sudo apt-get install dvb-utils vlc
</code></pre>

<p>That installs VLC and the DVB programs needed to scan for your channels.</p>

<p>Now, find the digital transmitter nearest to you by visiting <a href="http://www.digitaluk.co.uk/postcodechecker/">DigitalUK</a>. Enter in your postcode, and the result you get back will tell you which transmitter you&#8217;re feeding off of. If you&#8217;re not in the UK, I&#8217;m not sure how you can find your closest one&#8211;<a href="http://google.com">Google</a> is your friend.</p>

<p>You can see a list of the UK transmitters by doing:</p>

<pre><code>ls /usr/share/doc/dvb-utils/examples/scan/dvb-t/ | grep uk-
</code></pre>

<p>Now find the filename that matches your transmitter, and substitute <code>uk-CrystalPalace</code> for it.</p>

<pre><code>scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/uk-CrystalPalace -o zap | tee ~/channels.conf
</code></pre>

<p>The above command will scan for channels that your TV card can pick-up, and store the configuration in a file. This file VLC then uses to tune in.</p>

<p>Now open up VLC. <strong>File</strong> > <strong>Quick Open File</strong>. Browse to <code>channels.conf</code> and open. Live TV should now start playing. To see a list of channels to switch between, go to <strong>View</strong> > <strong>Playlist</strong>. </p>

<p><a href="/wp-content/uploads/2008/02/tv-vlc.png" rel="lightbox" title="Watching TopGear from Freeview in VLC player" class="image_link"><img src="/wp-content/uploads/2008/02/tv-vlc.thumbnail.png" alt="VLC Player" /></a></p>

<p>To speed things up when wanting to launch the TV each time, you can create a launcher. I&#8217;ll create it on the Desktop for examples sake. Right click, and select <strong>Create Launcher</strong>. Give it a name, like TV, and in the Command text box, enter <code>vlc /path/to/channels.conf</code>. Hit ok, and you&#8217;re done. Now double click on the launcher and VLC will launch, and you&#8217;ll have the TV back on.</p>

<p>That&#8217;s it! Now all that is left for me to do, is to see if there is a way I can get the other things on my list operational; pause, schedule, tv listings. I&#8217;ll report back on here with any developments I find. Tune in again next week for more exciting adventures with Ubuntu!</p>

<p>What TV app do you use on Ubuntu?</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2008/02/08/watching-freeview-dvb-t-tv-with-vlc-player-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>
