All pastes #817711 Raw Edit

sasg

public text v1 · immutable
·published 2007-12-15 20:46 UTC
rendered paste body
# First - install Ubuntu Edgy pretty simple install, just like 5 steps.
# you can find an iso at your closest mirror listed at:
# http://www.ubuntu.com/products/GetUbuntu/download#currentrelease

#Open a new terminal
#Uncomment all the Universe/Multiverse lines from /etc/apt/sources.list
#Add the word multiverse to the line "deb http://us.archive.ubuntu.com/ubuntu/ edgy universe multiverse" (this is for lame packages)

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libc6-dev kernel-package libqt3-mt-dev libncurses-dev libttf-dev libqt4-core libqt4-dev mysql-common mysql-server phpmyadmin xmltv xmltv-gui build-essential fakeroot qt3-dev-tools libqt3-mt-dev liblircclient-dev libasound2-dev libdts-dev libdvdnav-dev libxv-dev libxvmc-dev libxxf86vm-dev libqt3-mt-mysql libxxf86vm-dev libqt3-mt-mysql subversion libdvdread3-dev libsamplerate0 subversion libsamplerate0 liba52-0.7.4-dev liba52-0.7.4-dev libcdio-dev kdelibs4-dev flac flac123 libflac-dev libcdaudio-dev libxml-simple-perl libxml-rss-perl exif libexif-dev liblame-dev liblame0 lame libssl-dev



cd /usr/src



# Twinhan cards ?????
sudo modprobe dvb-bt8xx
sudo modprobe bttv
sudo modprobe dst

dmesg #at this point the dvb card should have loaded and you can see it at the bottom of a dmesg

ls -al /dev/dvb #and you can see adapter0 in the dev dvb folder.
# if not, check http://www.linuxtv.org/wiki/index.php/PCI_devices_DVB-S or around there depending on your card to ensure that the correct modules are loaded.


cd /usr/src

#Get Mythtv SVN or Mythtv 20-fixes. Pick one set of the three checkouts

sudo svn co http://svn.mythtv.org/svn/branches/release-0-20-fixes/mythtv
sudo svn co http://svn.mythtv.org/svn/branches/release-0-20-fixes/mythplugins
sudo svn co http://svn.mythtv.org/svn/branches/release-0-20-fixes/myththemes

#get patches
sudo svn co http://opensvn.csie.org/myth_dvb_ng

#get sasc-ng
sudo svn co http://opensvn.csie.org/sascng sasc-ng


cd /usr/src/sasc-ng/trunk
# sudo vi Makefile #edit the makefile, add the line INCLUDES += -I/usr/src/linux/include # no longer required along with kernel recompile.
sudo ./configure
sudo make #sasc-ng
sudo make module #dvbloopback module
sudo insmod dvbloopback.ko
cd sc_files
#Setup your sc_files folder to look like this:
# -rw-r--r-- 1 root src 1381 2006-12-31 09:24 ca.cache
# drwxr-sr-x 2 root src 4096 2006-12-31 15:43 nagra
# -rw-r--r-- 1 root src 1642 2006-12-27 11:36 SoftCam.Key
#
# ./nagra:
# -rw-r--r-- 1 root src 18432 2006-12-27 11:36 EEP01_102.bin
# -rw-r--r-- 1 root src 18432 2006-12-27 11:36 EEP08_102.bin
# -rw-r--r-- 1 root src 98304 2006-12-27 11:36 ROM102.bin
# to do so:
sudo touch ca.cache #creates blank one
sudo wget http://www.geocities.com/vlivecd/vdr-live/SoftCam.Key
sudo wget http://www.geocities.com/vlivecd/vdr-live/au-bins2.tar.zip
sudo unzip au-bins2.tar.zip
sudo tar jxvf au-bins2.tar.bz2
sudo mv au-bins2 nagra
#start sasc-ng
cd ..
#sasc-ng -r 0 -v 1 Previous syntax (pre R64??? format)
sudo ./sasc-ng -j 0:1



#Open a new terminal
cd /usr/src/mythtv
#apply patches to mythtv SVN or mythtv 20-fixes. 

sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/1_SDT/myth_sdt_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/2_EIT/myth_eit-bev-dn3_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/4_SISCAN/myth_siscan_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/5_RADIO/myth_radiots_r?????.diff # *** Radio Transport Stream Pid 200 (Required for audio channels only)
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/5_RADIO/myth_killerradio_r?????.diff # *** Radio song display (not required)

#configure mythtv with whatever options you like, you need at least --enable-dvb... XVMC is recommended.
#XVMC is known to cause problems with some NVIDIA graphics cards, If you are not planning on using TV-OUT or OSD dont enable XVMC
sudo ./configure --enable-dvb --enable-xvmc
sudo make #Wait a while for compile... hopefully error free Smile
sudo make install #Copys files to /usr/local/bin

cd ../myth_dvb_ng/20-FIXES/5_RADIO/
sh copyts.sh # *** Radio Transport stream copy to your backend themes folder, 20-FIXES and TRUNK use the same file.  (Required for audio channels only)

cd /usr/src/mythtv

sudo mysql -u root -p < ./database/mc.sql #create initial database

#To make remote database connections (ie running frontend and backend on different boxes):
sudo mysql
grant all privileges on mythconverg.* TO 'mythtv'@'%' identified by 'mythtv';
exit
sudo /etc/init.d/mysql restart

sudo echo /usr/local/lib >> /etc/ld.so.conf # fixes where to look for library files.
sudo ldconfig #updates the LD cache.


sudo mythtv-setup
#setup your card, ensure you use card 1 (or whatever virtual adapter number, not card 0. For NA providers, use Circular Dish setup
#setup your Video Sources
#setup your Input connections
#Scan channels etc. For initial transponders, use one frequency that locks from the list:
#D**hnet 119 -> http://www.lyngsat.com/packages/dish119.html
#D**hnet 110 -> http://www.lyngsat.com/packages/dish110.html
#B*v 91 -> http://www.lyngsat.com/nimiq1.html
#B*v 82 -> http://www.lyngsat.com/nimiq2.html
#Add 3 zeros to the end of each freq (ie 12224 R should be 12224000, Right Circular, 20000000)
#setup a storage directory


sudo mythbackend

#Open a new terminal
mythfrontend

#Watch tv a few times (like 12 - note newer sasc-ng seems to not kick out of myth when rolling keys, so once maybe twice will do) 
#to roll the first key (or seed ca.cache). You should see things happening in the sasc-ng terminal window