Build from Source

From MythTV Official Wiki
Revision as of 08:04, 7 April 2006 by 217.198.100.129 (Setup mysql database mythconverg)

Jump to: navigation, search
Previous Up Next
Go-prev.png User Manual:Introduction Go-up.png User Manual:Index User Manual:Setting Up Go-next.png


Introduction

There are four key parts to MythTV, and setup roughly in this order.

  1. Start system services that MythTV Needs
  2. Initialize the system database, mythconverg
  3. Setup system preferences and tune your tv card using mythtv-setup
  4. Start main MythTV server, mythtvbackend
  5. 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:-

  1. General - Just tab through and save
  2. Capture Cards - You should see your DVB card here
  3. Video Sources - Create a name of a Video Source eg "Freeview"
  4. Input connections - Connect the Capture Card name to the Video Source
  5. 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
Go-prev.png User Manual:Introduction Go-up.png User Manual:Index User Manual:Setting Up Go-next.png