« Archives in October, 2007

Diff and Patch

These examples is going to how to create a diff file with the differences between the original source directory and the patched directory. And how to patch the original source directory with the changes done in the patched directory.

Creating the diff file:

diff -Nuar source -orig/ source -patched/ > patch-file.diff

The patch is ‘applied’ using the ‘patch‘ command.
cd into the original directory (without the changes)

patch -p 1 < ../patch-file.diff

The ‘-p 1‘ option removes 1 path/directory from the top of the patch.

Me TV 0.4.0 and Ubuntu 7.10

Me TV is a digital television (DVB) viewer for GNOME.

Me TV was developed for the modern digital lounge room with a PC for a media centre that is capable of normal PC tasks (web surfing, word processing and watching TV). It is not designed to be a full-blown media centre, such as MythTV, but will integrate well with the existing GNOME desktop.

Features currently include:

* Completely mouse driven
* Current and future program information
* Instant Record
* Double-click fullscreen
* DVB-T and DVB-C support
* Very simple installation and set up

First off you need to download and install Me TV 0.4.0 for Ubuntu 7.10:

wget https://launchpad.net/me-tv/stable/0.4/+download/me-tv_0.4.0_i386.deb

then cd to the directory were you saved the deb and type:

sudo dpkg -i me-tv_0.4.0_i386.deb

Now create ~/.me-tv/ if it does not already exist:

mkdir ~/.me-tv/

Now to install dvd-utils to get the TV channels:

sudo apt-get install dvb-utils

Once dvb utils is installed we need to scan for TV channels and this is how we do that:

scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/au-Adelaide > ~/.me-tv/channels.conf

Note: You will have to ls the /usr/share/doc/dvb-utils/examples/scan/dvb-t/ directory for your location an substitute au-Adelaide for your location.

Final step now is to launch Me TV:

Applications –> Sound and Video –> Me TV

Screenshots of version 0.4.0

Me TV 0.4.0 Me TV 0.4.0 File Menu Me TV 0.4.0 View Menu Me TV 0.4.0 Help Menu Me TV 0.4.0 EPG

Official Me TV Home Page
Me TV Project Website
Linux TV Wiki
UHF Log-Periodic Array


Power usage is a hot topic for computer users everywhere. For some, it’s a matter of how long a laptop lasts without being plugged in. For others, it’s controlling the temperature of hundreds of systems within a datacenter. For all of us, it’s about keeping the electricity bill under control and being kind to the environment.

Saving Power with Linux on Intel Platforms

I am still yet to test this program out, but as soon as i get my laptop back from the repairer. I will be able to tell you more about it and the extra power I have been able to save in a future post.

Nvidia Linux Drivers and Ubuntu

If you are like me and install the Nvidia Linux driver yourself, well this is the problem I have encountered a few days ago with Ubuntu 7.10 Beta / Release Candidate. It took me a little bit of hunting to work out what was going on as the logs were not saying what was going, but what I ended doing was starting X the old fashioned way from terminal with startx. Starting X this way was more revealing, that there was a conflict in the driver versions cause of the Ubuntu linux-restricted-modules and the Nvidia drivers I installed.

This is what I did to fix the conflict in drivers.

Switch to a usable terminal and login:

Ctrl + Alt + F2

Backup the linux-restricted-modules-common file

sudo cp /etc/default/linux-restricted-modules-common /etc/default/linux-restricted-modules-common.backup

Edit linux-restricted-modules-common file:

sudo nano /etc/default/linux-restricted-modules-common

Add nv to the DISABLED_MODULES line

Here is an example of what my linux-restricted-modules-common file looks like:

# This file is sourced from the linux-restricted-modules-common init
# script and is used to disable the link-on-boot feature, one module
# at a time.  This can be useful if you want to use hand-compiled
# versions of one or more modules, but keep linux-restricted-modules
# installed on your system, or just to disable modules you don't use
# and speed up your boot process by a second or two.
# Use a space-separated list of modules you wish to not have linked
# on boot.  The following example shows a (condensed) list of all
# modules shipped in the linux-restricted-modules packages:
# DISABLED_MODULES="ath_hal fc fglrx ltm nv"
# Note that disabling "fc" disables all fcdsl drivers, "ltm" disables
# ltmodem and ltserial, and "nv" disables the three nvidia drivers.
# You can also name each module individually, if you prefer a subset.

DISABLED_MODULES="ath_hal fc fglrx ltm nv"

Now reboot:

sudo shutdown -r now

After the reboot you should be back to a working system.