Difference between revisions of "Installing MythTV on RHEL/CentOS"

From MythTV Official Wiki
Jump to: navigation, search
(revert to more useful version. Subsequent edits lost most useful information)
Line 1: Line 1:
[[Category:Distribution_Specific_Install_Guides]]
+
This is a collection of information to help set up MythTV on a RHEL or CentOS 4.5 or 5.0 machine.
This is a collection of information to help set up MythTV on a Red Hat Enterprise Linux (RHEL) or CentOS 5.0 machine.
 
  
 +
== Installation Help ==
  
= Scope =
+
=== Howto ===
Installing MythTV on RHEL/CentOS is nearly identical to Fedora.  Being Fedora has well updated howto's this guide will note the differences in install MythTV on RHEL/CentOS instead of every step required in the process. 
 
  
= Why choose RHEL/CentOS =
+
Step 1, you need a tuner that will work under your kernel.
Fedora is one of the most popular and most supported in the Myth community.  One of the major downfalls of Fedora is the life cycle is only ~6 months and packages are only updated for the two most recent releases.  This means to stay on a supported OS you must upgrade or completely redo you Myth box every year. RHEL/CentOS gives you the advantage of using a OS that is nearly identical to Fedora yet supported for >6 years.
+
If you don't already have a tuner that works, beyond the scope of these
 +
instructions.
  
== Choosing between RHEL or CentOS ==
+
If your kernel doesn't include the modules that support your card, you
RHEL is Red Hat's enterprise distribution.  Generally used for servers that require long life cycles and stability.  Based off the development of Fedora.  RHEL is sold with support through Red Hat.  While support is of great value many users of MythTV my be looking to save money and rely on the community for support.  This is where CentOS comes in.  Being, RHEL is based on GPL software Red Hat must release the source to the entire OS.  CentOS takes the source, removes logo/trademarks of Red Hat and creates CentOS.  CentOS is a 100% binary compatible with RHEL packages, so RPMs for EL are good for CentOS.  
+
should look into the CentOS "plus" kernel.
  
= Enabling DVB =
 
  
For some reason CentOS (not sure about RHEL) has DVB disabled by default in the kernel.  The fix is easy.  You need to install the centos.plus kernel. To do this
+
Step 2, get mythtv rpms. For example from ATrpms
  
1. Enable the plus repo.
+
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
  
  su -
+
Step 3, resolve all dependencies.
  vim /etc/yum.repos.d/CentOS-Base.repo
+
Make sure you've got all the MySQL stuff, which would include something like the
       
+
following:
Change enable=0 to enable=1 under the [centosplus] section.
 
 
 
  yum update kernel
 
  
DVB should now be enabled.
+
mysql-4.1.20-2.RHEL4.1.i386.rpm
= Configuring Yum Repo's =
+
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
  
== ATRPMS.net ==
+
The final may be the only one you didn't already have.
Just like Fedora Axel provides great packages for RHEL/CentOS. 
 
To install the repo on i386 run:
 
  
rpm -i http://dl.atrpms.net/all/atrpms-package-config-119-2.el5.i386.rpm
+
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.
  
For x86-64
 
  
rpm -i http://dl.atrpms.net/all/atrpms-package-config-119-2.el5.x86_64.rpm
+
Step 4, start and configure database
  
You will also need to enable the testing repo to get the appropriate dependencies.
+
on initial start up, it will say something like the following. Take heed.
  
  vim /etc/yum.repos.d/atrpms.repo
+
  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, populate database.
  
--cut--
+
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
# requires stable
+
be a local copy now), but you will have to do
#
+
mysql -u root -p < mc.sql
[atrpms-testing]
 
name=Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing
 
baseurl=http://dl.atrpms.net/el5-x86_64/atrpms/testing
 
failovermethod=priority
 
enabled=1
 
  --cut--
 
  
== RPM Forge ==
 
  
Although RPM Forge is not required for MythTV is provides many packages a home users may want.
+
Step 7, configure mythtv
 +
You should be able to run mythtv-setup. If it starts up ok, then you should
 +
now configure everything.
  
EL5 i386:
+
1 General Config options should be fairly straightforward.
 +
2 Capture card config should have auto-detected 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.
  
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
+
Once you're done configuring, exit the configure utility
  
Red Hat Enterprise Linux 5 / x86_64:
+
Step 8, start mythbackend, then run either mythtv or mythfrontend
  
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
+
Step 9, configure other bells and whistles like schedule grabbing, remote
 +
control, etc.
  
== EPEL ==
+
[[Category:HOWTO]]
 
+
[[Category:RHEL]]
EPEL was started because many Fedora contributors wanted to use the Fedora packages they maintain on Red Hat Enterprise Linux (RHEL) and its compatible derivatives.
 
 
 
To install for both i386 and x86-64
 
 
 
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
 
 
 
 
 
=Continue=
 
From this point the differences between Fedora and RHEL/CentOS are extremely Trival.  Continue your install from the Fedora page [[http://www.mythtv.org/wiki/index.php/Installing_MythTV_on_Fedora#Fedora_setup]]
 

Revision as of 01:02, 2 September 2008

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

Installation Help

Howto

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, populate 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 auto-detected 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.