Build from Source
There are four key parts to MythTV, and setup roughly in this order.
0. Start system services that MythTV Needs
1. Initialize the system database, mythconverg
2. Setup system preferences and tune your tv card using mythtv-setup
3. Start main MythTV server, mythtvbackend
4. Start MythTV, mythfrontend
Create a user called mythtv and do all of the following steps as this user
Its a good idea to run these from a terminal window to start with, so we can see that everything is as it should be. Once all has been set up and complete, then we can run mysql/mythbackend/frontend as background server processes.
Start system services
We need to have both "mysql" and "mythbackend" running on startup
For SUSE 10.0
Start YaST -> System ->System Services ( RunLevel)
Select mysql click "enable" Click OK after popup dialog
Select ntp click "enable" Click OK after popup dialog
Notice there is a mythbackend option, would suggest that you do not enable "mythbackend" just yet, till you have tried running in a terminal window as below. If step below all works then enable this to run.
Setup mysql databse mythconverge
Set the root password for the mysql database. (replace mysqlpassword with your own)
Open a Terminal window
> mysqladmin -u root password mysqlpassword
Setup the initial database The following command will prompt for password
> mysql -u root -p < /usr/share/mythtv/database/mc.sql
If you mess up the above command and cant get access to mysql, you will need to stop the mysql process, uninstall mysql, delete /var/lib/mysql directory, delete /etc/mc.cnf then reinstall mysql and start from the top of this page.
Setup Mythtv backend preferences and tune TV cards
Open a Terminal Window and type
You will now see the GUI for MythTV to setup the backend server and in particular the channel tuning for our DVB broadcast streams. You will need to set up:-
a. General - Just tab through and save
b. Capture Cards - You should see your DVB card here
c. Video Sources - Create a name of a Video Source eg "Freeview"
d. Input connections - Connect the Capture Card name to the Video Source
e. Channel Editor - Scan for your channels here
Use the up down and left and right cursor keys to make selections
Multiple tuner cards
If you have more than one TV card, you only need to do the channel scan on one of the cards. All cards of the same type should point to the same video source . For example lets say you have two DVB cards both for Freeview. Create a Video Source called FreeviewUK, now connect both DVB cards to this.
[DVB1] DVB card 1->FreeviewUK
[DVB0] DVB card 2->FreeviewUK