Build from Source
Previous | Up | Next |
---|---|---|
User Manual:Introduction | User Manual:Index | User Manual:Setting Up |
Contents
Introduction
There are four key parts to MythTV, and setup roughly in this order.
- Start system services that MythTV Needs
- Initialize the system database, mythconverg
- Setup system preferences and tune your tv card using mythtv-setup
- Start main MythTV server, mythtvbackend
- 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 database mythconverg
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.
How to Reset the Root Password(Slackware):
su -
/etc/rc.d/rc.mysqld stop
echo "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');" > /var/lib/mysql/mysql-init
chown mysql.mysql /var/lib/mysql/mysql-init
/usr/bin/mysqld_safe --init-file=/var/lib/mysql/mysql-init &
mysql -u root -p new_password
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
Setup Mythtv backend preferences and tune TV cards
Open a Terminal Window and type
> mythtv-setup
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:-
- General - Just tab through and save
- Capture Cards - You should see your DVB card here
- Video Sources - Create a name of a Video Source eg "Freeview"
- Input connections - Connect the Capture Card name to the Video Source
- 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
http://acaciaclose.co.uk/mediac/400_0/media/mythtune.jpg
When you scan for your channels make sure that you put in a frequency that corresponds to the transmitter that you will be receiving from. ie Crystal Palace. You can find out the frequency on the web for your country and region.
Older TV cards may need all of the parameters from the transmitters tab to be entered, and not just left as "auto". The next version of MythTV (0.19) should have a "Blind" scan, and it should just find the channels for you.
--Mikec 23:21, 24 January 2006 (UTC)
Previous | Up | Next |
---|---|---|
User Manual:Introduction | User Manual:Index | User Manual:Setting Up |