CASPER
New member
Mythtv, BEV and Ubuntu Hardy 8.04
NOTE: This howto MAY not work with DN. I am not aimed at their birds and can't test it!
Please post any questions in the forums! Any PMs will be moved to the fourms.
If this is your first attempt, please read the first post in the thread “Myth, Ubuntu, Bev, Working
This howto is confirmed to work with Bev. I haven't tested it with Dish yet.
If you have a previous install of Myth or Sasc-ng, I would reccomend that you start with a clean install of Ubuntu. However, this may not be nessisary and if you want to try it with what you already have, feel free to try. Just make sure that you have a backup, just in case.
Here we go!
Note, all commands in terminal should be done with “sudo” (just in case I forget to add it)
check to make sure your DVB card is detected.
Quote:
sudo ls -al /dev/dvb
The output should look something like this:
Quote:
drwxr-xr-x 3 root root 60 2008-02-21 08:19 .
drwxr-xr-x 14 root root 14280 2008-02-21 08:20 ..
drwxr-xr-x 2 root root 120 2008-02-21 08:19 adapter0
Note the “adapter0” on the bottom right. That means your card is detected and has the drivers installed.
If you don't see your card there, go to the wiki at
Code:
www.linuxtv.org
they have great instructions on installing cards.
Enable restricted repositorys
Open a terminal. Applications>Accessories>terminal.
Quote:
sudo gedit /etc/apt/sources.list
This will open your sources list. Make sure there are no “#” before Universe or Multiverse sources.
Save and exit
Update your system
Quote:
sudo apt-get update
sudo apt-get upgrade
Install all the necessary codecs and drivers. This will also promt you to install mysql. Enable all options. This is a long line of commands. Copy and paste the entire section! It may take a while to run.
Quote:
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 libflac-dev libcdaudio-dev libxml-simple-perl libxml-rss-perl exif libexif-dev liblame-dev liblame0 lame libssl-dev
Get mercurial. This will allow you to use the sasc-ng repository.
Quote:
sudo apt-get install mercurial
Download the appropriate version of sasc-ng. Current as of May 13, 08. Check the files section here, or at DVBN to see if there is a later version!
Quote:
32bit - http://www.zshare.net/download/1198528494e36998/
64bit - http://www.zshare.net/download/1198533560c81caa/
Open and extract the contents to your desktop. You will see two folders named 32bit and 64bit. Open whichever one matches your system and copy the files libcrypto.so.0.9.8 and libsc-nagra-10.so.1.5.5 into your /home/<your user name here> folder.
Download the current (as of now 3.0.3.5) Emunation from the General DVB files of this site.
Open and extract the file. In there you will find a folder called Nagra.
Open, then copy the entire contents of Nagra (the .bin files) and the softcam.key fileto your /home/<your user name here>
Now to install Sasc-NG
EDIT: For some reason the HG repository has been down lately. If you get error messages after the "sudo hg clone..." command, follow the instructions after following Quote box.
Quote:
cd /usr/src
sudo hg clone http://nooneshome.org/privatehg/sasc-ng
cd sasc-ng
sudo mkdir -p sc_files/nagra sc/PLUGINS/lib
#(yes there is a space between nagra and sc, we are creating two directories here)
sudo touch sc_files/ca.cache
sudo ./configure --shared
sudo make USE_DLOAD=1
sudo make module
sudo insmod dvbloopback.ko #(if you already have this module loaded then do rmmod dvbloopback first)
sudo cp ~/libsc-nagra-10.so.1.5.5 sc/PLUGINS/lib/
sudo cp sc/PLUGINS/lib/* /usr/lib/
sudo ldconfig
sudo cp ~/*.bin sc_files/nagra/
sudo cp ~/Softcam.key sc_files/SoftCam.Key #(Notice the change in capital letters here)
Follow Only if the "sudo hg clone..." command produces errors.
This is a little awkward to discribe, so please bear with me...
Download and extract http://www.zshare.net/download/1170013104d24039/ to your desktop.
Open a new terminal and open Nautilus as root. This will allow you to copy and paste files to restricted directories.
Quote:
sudo nautilus
In the window that opens, click on the "Computer" button at the top of the screen and navigate to filesystem/user/src/
Right click and from the popup menu select "Create Folder" and name it "sasc-ng" and open it.
Minimize the window, go to your desktop and open the folder "sasc-ng.hg618orig"
Use <ctrl a> to select all files within the folder.
Right click on any of the files and select "Copy" from the popup menu.
Restore the previous window at /usr/src/sasc-ng.
Right click within the window and select "Paste" from the popup menu.
You should now see all the files.
Close both windows and the terminal window you just opened.
Now go back to the previous quote box above and start from "cd sasc-ng"
Now it's time to setup our key files.
Quote:
sudo gedit /usr/src/sasc-ng/sc_files/SoftCam.Key
If you have used Emunation, this will look familiar. Copy and paste the appropriate keys from TVKeyz.COM into their proper fields.
Save and exit.
Prepare your cache file.
Quote:
sudo gedit /usr/src/sasc-ng/sc_files/ca.cache
You will have a blank file. Copy and past the following into it.
Quote:
## This is a generated file. DO NOT EDIT!!
## This file will be OVERWRITTEN WITHOUT WARNING!!
:::Seca
:::Irdeto
:::Viaccess
:::TpsAu
:::KEY
N 0901 00 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
N 0901 01 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
N 0907 00 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
N 0907 01 CD13C6Fxxxxxxxxxxxxxxxxxxxxxxxxxx
:::ECM
Once again copy and paste the appropriate Keys. Save and exit. If you are using DN, manually enter the key lines in the same format.
The moment of truth!
Quote:
sudo ./sasc-ng -j 0:1 &
This will start sasc-ng. You need this to be running for the remainder of the setup.
Open a new terminal.
Quote:
sudo ls -al /dev/dvb
If you look at the output, you will notice that there should now be two DVB cards listed. Adapter1 is a virtual card that does the decrypting!
Open Synaptic Package Manager. System>Administration>Synaptic.
Click on Search
Enter “mythbuntu-control-centre” click on search
Select install, click on apply.
When completed, go to System>Administration> Mythbuntu Control Centre
click on System Roles
Select “Primary Backend” and “Frontend” (This sets up mysql)
Click apply.
Note! Copy your password. You may need this later.
Go to Applications and Plugins and enable all. You can remove them later if there are any you don't want.
Click apply.
Now everything should be installed.
Go to System>Administration>Myth Backend Setup.
Use the keyboard to through the general setup. There's not much that needs to be setup here. Just make sure that you are set to NTFC. and the channel frequency is set to US Bcast
Set up your DVB Card.
Select Capture cards. Select new capture card.
Select DVB DTV Capture card.
Select adapter1. (This is the virtual card that Sasc-ng created)
Select diseqc Select the approptiate type, give it a name, and set it to North America Circular.
Finish and go back to the main menu.
Setup EPG
Select Video Sources.
Select New Video Source
Give it a name and select Transmitted guide only.
Save and exit
Select Input Connections
Give it a name
Select the video source you just set up
Uncheck “Unencrypted channels only”
Check allow audio channels only.
Select scan for channels
Scan type should be “Full Scan (Tuned)”
For B3V set the fields to:
12224000, Right Circular, 20000000
Select next and let it do it's thing.
*NOTE for some cards, the signal strength will appear to be very weak. My own comes in at about 25%. Don't worry about this. Your real strength is about 3 times that.
Save and exit
If you want to you can go into the channel editor. I like having my channels listed alphabetically. This is where you do it.
Save and exit.
Escape quits the setup program.
Allow Mythfiledatabase to run.
In the terminal
Quote:
sudo mythbackend
Now go to Applications>Sound & Video>MythFrontend.
With keyboard select watch TV.
Your EPG should come up first, if it doesn't, the “S” key will bring it up. Select a channel that you know is working and hit “M” to select it.
It may not tune a channel right away. It takes a while for the ca.cache file to populate. I like to use <alt+tab> to bring up the sasc-ng terminal to see what it's doing.
If it hasn't tuned a channel after about a minute, go back to your EPG and switch to another. I found that for the first tune, it took a couple of channel changes before I was watching TV.
To start Sasc-ng after a reboot, open a terminal.
Quote:
sudo pkill mythbackend
cd /usr/src/sasc-ng
sudo insmod dvbloopback.ko
sudo ./sasc-ng -j 0:1 &
Open a new terminal.
Quote:
sudo mythbackend
Then start the Frontend from your Applications/Sound and Video menu.
There are startup scripts to have this happen automatically at DVBN, but I like to start mine manually.
A couple of useful links.
A list of keyboard shortcuts at
Code:
http://www.keyxl.com/aaa3626/343/MythTV-keyboard-shortcuts.htm
A very good FAQ
Code:
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
__________________
P4 2.4ghz
512 mb ram
Twinhan VP 1020a
ATI All in Wonder 128mb
SB Live 5.1
Stock B3V dish and LNB
No switch
Ubuntu 8.04 Hardy W/Mythtv front/backend.
Remote frontend.
NOTE: This howto MAY not work with DN. I am not aimed at their birds and can't test it!
Please post any questions in the forums! Any PMs will be moved to the fourms.
If this is your first attempt, please read the first post in the thread “Myth, Ubuntu, Bev, Working
This howto is confirmed to work with Bev. I haven't tested it with Dish yet.
If you have a previous install of Myth or Sasc-ng, I would reccomend that you start with a clean install of Ubuntu. However, this may not be nessisary and if you want to try it with what you already have, feel free to try. Just make sure that you have a backup, just in case.
Here we go!
Note, all commands in terminal should be done with “sudo” (just in case I forget to add it)
check to make sure your DVB card is detected.
Quote:
sudo ls -al /dev/dvb
The output should look something like this:
Quote:
drwxr-xr-x 3 root root 60 2008-02-21 08:19 .
drwxr-xr-x 14 root root 14280 2008-02-21 08:20 ..
drwxr-xr-x 2 root root 120 2008-02-21 08:19 adapter0
Note the “adapter0” on the bottom right. That means your card is detected and has the drivers installed.
If you don't see your card there, go to the wiki at
Code:
www.linuxtv.org
they have great instructions on installing cards.
Enable restricted repositorys
Open a terminal. Applications>Accessories>terminal.
Quote:
sudo gedit /etc/apt/sources.list
This will open your sources list. Make sure there are no “#” before Universe or Multiverse sources.
Save and exit
Update your system
Quote:
sudo apt-get update
sudo apt-get upgrade
Install all the necessary codecs and drivers. This will also promt you to install mysql. Enable all options. This is a long line of commands. Copy and paste the entire section! It may take a while to run.
Quote:
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 libflac-dev libcdaudio-dev libxml-simple-perl libxml-rss-perl exif libexif-dev liblame-dev liblame0 lame libssl-dev
Get mercurial. This will allow you to use the sasc-ng repository.
Quote:
sudo apt-get install mercurial
Download the appropriate version of sasc-ng. Current as of May 13, 08. Check the files section here, or at DVBN to see if there is a later version!
Quote:
32bit - http://www.zshare.net/download/1198528494e36998/
64bit - http://www.zshare.net/download/1198533560c81caa/
Open and extract the contents to your desktop. You will see two folders named 32bit and 64bit. Open whichever one matches your system and copy the files libcrypto.so.0.9.8 and libsc-nagra-10.so.1.5.5 into your /home/<your user name here> folder.
Download the current (as of now 3.0.3.5) Emunation from the General DVB files of this site.
Open and extract the file. In there you will find a folder called Nagra.
Open, then copy the entire contents of Nagra (the .bin files) and the softcam.key fileto your /home/<your user name here>
Now to install Sasc-NG
EDIT: For some reason the HG repository has been down lately. If you get error messages after the "sudo hg clone..." command, follow the instructions after following Quote box.
Quote:
cd /usr/src
sudo hg clone http://nooneshome.org/privatehg/sasc-ng
cd sasc-ng
sudo mkdir -p sc_files/nagra sc/PLUGINS/lib
#(yes there is a space between nagra and sc, we are creating two directories here)
sudo touch sc_files/ca.cache
sudo ./configure --shared
sudo make USE_DLOAD=1
sudo make module
sudo insmod dvbloopback.ko #(if you already have this module loaded then do rmmod dvbloopback first)
sudo cp ~/libsc-nagra-10.so.1.5.5 sc/PLUGINS/lib/
sudo cp sc/PLUGINS/lib/* /usr/lib/
sudo ldconfig
sudo cp ~/*.bin sc_files/nagra/
sudo cp ~/Softcam.key sc_files/SoftCam.Key #(Notice the change in capital letters here)
Follow Only if the "sudo hg clone..." command produces errors.
This is a little awkward to discribe, so please bear with me...
Download and extract http://www.zshare.net/download/1170013104d24039/ to your desktop.
Open a new terminal and open Nautilus as root. This will allow you to copy and paste files to restricted directories.
Quote:
sudo nautilus
In the window that opens, click on the "Computer" button at the top of the screen and navigate to filesystem/user/src/
Right click and from the popup menu select "Create Folder" and name it "sasc-ng" and open it.
Minimize the window, go to your desktop and open the folder "sasc-ng.hg618orig"
Use <ctrl a> to select all files within the folder.
Right click on any of the files and select "Copy" from the popup menu.
Restore the previous window at /usr/src/sasc-ng.
Right click within the window and select "Paste" from the popup menu.
You should now see all the files.
Close both windows and the terminal window you just opened.
Now go back to the previous quote box above and start from "cd sasc-ng"
Now it's time to setup our key files.
Quote:
sudo gedit /usr/src/sasc-ng/sc_files/SoftCam.Key
If you have used Emunation, this will look familiar. Copy and paste the appropriate keys from TVKeyz.COM into their proper fields.
Save and exit.
Prepare your cache file.
Quote:
sudo gedit /usr/src/sasc-ng/sc_files/ca.cache
You will have a blank file. Copy and past the following into it.
Quote:
## This is a generated file. DO NOT EDIT!!
## This file will be OVERWRITTEN WITHOUT WARNING!!
:::Seca
:::Irdeto
:::Viaccess
:::TpsAu
:::KEY
N 0901 00 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
N 0901 01 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
N 0907 00 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
N 0907 01 CD13C6Fxxxxxxxxxxxxxxxxxxxxxxxxxx
:::ECM
Once again copy and paste the appropriate Keys. Save and exit. If you are using DN, manually enter the key lines in the same format.
The moment of truth!
Quote:
sudo ./sasc-ng -j 0:1 &
This will start sasc-ng. You need this to be running for the remainder of the setup.
Open a new terminal.
Quote:
sudo ls -al /dev/dvb
If you look at the output, you will notice that there should now be two DVB cards listed. Adapter1 is a virtual card that does the decrypting!
Open Synaptic Package Manager. System>Administration>Synaptic.
Click on Search
Enter “mythbuntu-control-centre” click on search
Select install, click on apply.
When completed, go to System>Administration> Mythbuntu Control Centre
click on System Roles
Select “Primary Backend” and “Frontend” (This sets up mysql)
Click apply.
Note! Copy your password. You may need this later.
Go to Applications and Plugins and enable all. You can remove them later if there are any you don't want.
Click apply.
Now everything should be installed.
Go to System>Administration>Myth Backend Setup.
Use the keyboard to through the general setup. There's not much that needs to be setup here. Just make sure that you are set to NTFC. and the channel frequency is set to US Bcast
Set up your DVB Card.
Select Capture cards. Select new capture card.
Select DVB DTV Capture card.
Select adapter1. (This is the virtual card that Sasc-ng created)
Select diseqc Select the approptiate type, give it a name, and set it to North America Circular.
Finish and go back to the main menu.
Setup EPG
Select Video Sources.
Select New Video Source
Give it a name and select Transmitted guide only.
Save and exit
Select Input Connections
Give it a name
Select the video source you just set up
Uncheck “Unencrypted channels only”
Check allow audio channels only.
Select scan for channels
Scan type should be “Full Scan (Tuned)”
For B3V set the fields to:
12224000, Right Circular, 20000000
Select next and let it do it's thing.
*NOTE for some cards, the signal strength will appear to be very weak. My own comes in at about 25%. Don't worry about this. Your real strength is about 3 times that.
Save and exit
If you want to you can go into the channel editor. I like having my channels listed alphabetically. This is where you do it.
Save and exit.
Escape quits the setup program.
Allow Mythfiledatabase to run.
In the terminal
Quote:
sudo mythbackend
Now go to Applications>Sound & Video>MythFrontend.
With keyboard select watch TV.
Your EPG should come up first, if it doesn't, the “S” key will bring it up. Select a channel that you know is working and hit “M” to select it.
It may not tune a channel right away. It takes a while for the ca.cache file to populate. I like to use <alt+tab> to bring up the sasc-ng terminal to see what it's doing.
If it hasn't tuned a channel after about a minute, go back to your EPG and switch to another. I found that for the first tune, it took a couple of channel changes before I was watching TV.
To start Sasc-ng after a reboot, open a terminal.
Quote:
sudo pkill mythbackend
cd /usr/src/sasc-ng
sudo insmod dvbloopback.ko
sudo ./sasc-ng -j 0:1 &
Open a new terminal.
Quote:
sudo mythbackend
Then start the Frontend from your Applications/Sound and Video menu.
There are startup scripts to have this happen automatically at DVBN, but I like to start mine manually.
A couple of useful links.
A list of keyboard shortcuts at
Code:
http://www.keyxl.com/aaa3626/343/MythTV-keyboard-shortcuts.htm
A very good FAQ
Code:
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
__________________
P4 2.4ghz
512 mb ram
Twinhan VP 1020a
ATI All in Wonder 128mb
SB Live 5.1
Stock B3V dish and LNB
No switch
Ubuntu 8.04 Hardy W/Mythtv front/backend.
Remote frontend.