Monthly Archive for January, 2009

Rebuild f-spot on Ubuntu Hardy

Got source files from
https://launchpad.net/ubuntu/+source/f-spot

Add the lines above to ubuntu sources..

echo "deb http://ppa.launchpad.net/ruben/ubuntu hardy main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/ruben/ubuntu hardy main" | sudo tee -a /etc/apt/sources.list

Install missing libs:

apt-get install cli-common-dev mono-gmcs libmono-dev libmono-system-runtime2.0-cil 
apt-get install libgnome-keyring1.0-cil libusb-dev libgphoto2-2-dev 
apt-get install libglitz1-dev libglitz-glx1-dev gtk-sharp2-gapi mono-mcs
apt-get install gtk-sharp2-gapi
apt-get install libglib2.0-cil

Clean up the mess and rebuild it..

rm -rf f-spot-0.5.0.3
dpkg-source -x f-spot_0.5.0.3-0ubuntu4.dsc
cd f-spot-0.5.0.3
dpkg-buildpackage -rfakeroot -b

Download a NRK nett-tv MMS stream

NRK on the goThis will print the stream url of the actual stream when you want to download the video of http://www1.nrk.no/nett-tv/klipp/450753

wget `wget --header "Cookie: NetTV2.0Speed=NetTV2.0Speed=10000" http://www1.nrk.no/nett-tv/klipp/450753 -q -O- | grep -i Filename | cut -d\" -f4` -O- -q | grep "ref href" | cut -d\" -f2 | head -n 1

Or make a small bash script called: nrk-nett-tv.sh:

#!/bin/sh
a=`wget --header "Cookie: NetTV2.0Speed=NetTV2.0Speed=10000" $1 -q -O- | grep -i Filename | cut -d\" -f4`
b=`wget $a -O- -q | grep "ref href" | cut -d\" -f2 | head -n 1`
c=`echo $b | sed s@/@-@gi | sed s/mms:--//gi`
echo $b
echo $c

Run the script with the url in your browser. Like this: nrk-nett-tv.sh http://www1.nrk.no/nett-tv/klipp/450753

After that, just use VLC to download it.