Installing MythTV on RHEL/CentOS
This is a collection of information to help set up MythTV on a RHEL or CentOS 4.5 or 5.0 machine.
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
mythtv-backend-0.20.2-168.el4.i386.rpm mythtv-docs-0.20.2-168.el4.i386.rpm mythtv-frontend-0.20.2-168.el4.i386.rpm mythtv-setup-0.20.2-168.el4.i386.rpm mythtv-themes-0.20.2-168.el4.i386.rpm
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:
mysql-4.1.20-2.RHEL4.1.i386.rpm mysqlclient10-3.23.58-4.RHEL4.1.i386.rpm mysql-server-4.1.20-2.RHEL4.1.i386.rpm perl-DBD-MySQL-2.9004-3.1.i386.rpm perl-DBI-1.58-2.el4.rf.i386.rpm qt-MySQL-3.3.3-13.RHEL4.i386.rpm
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 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! 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 http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com
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