Build from Source

From MythTV Official Wiki
Revision as of 23:13, 24 January 2006 by 86.138.154.233

Jump to: navigation, search

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

> mythtv-setup