Installing MythTV on RHEL/CentOS

From MythTV Official Wiki
Revision as of 13:04, 9 November 2007 by P41 (talk | contribs) (creation)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a collection of information to help set up MythTV on a RHEL or CentOS 4.5 or 5.0 machine.

Installation Help


Step 1, you need a tuner that will work under your kernel. If you don't already have a tuner that works, beyond the scope of these instructions.

If your kernel doesn't include the modules that support your card, you should look into the CentOS "plus" kernel.

Step 2, get mythtv rpms. For example from ATrpms


and various libraries in next step

Step 3, resolve all dependencies. Make sure you've got all the MySQL stuff, which would include something like the following:


The final may be the only one you didn't already have.

For all the other dependencies, stuff like libmyth, libmythtv, etc, if yum didn't sort it out for you, it may be a bit of a chore.

Step 4, start and configure database

on initial start up, it will say something like the following. Take heed.

Initializing MySQL database:  Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at

Step 6, poplate database.

go to /usr/share/doc/mythtv-docs*/database and run the database setup script to set up the initial database. See section 6 of the mythtv howto (there should be a local copy now), but you will have to do mysql -u root -p < mc.sql

Step 7, configure mythtv You should be able to run mythtv-setup. If it starts up ok, then you should now configure everything.

1 General Config options should be fairly straightforward. 2 Capture card config should have autodetected any card you have installed 3 Configure a video source, call it videosource if you have no better name 4 Configure an input source, this is where you select which video input to the card to use. 5 Channel Editor. This is where you scan for TV channels. If you get an error "Failed to open the card" you may want to try manually setting the video source.

Once you're done configuring, exit the configure utility

Step 8, start mythbackend, then run either mythtv or mythfrontend

Step 9, configure other bells and whistles like schedule grabbing, remote control, etc