Gentoo Logo
Gentoo Logo Side

Official Gentoo MythTV Install Guide

Contents:

1. Introduction

This document will provide you with instructions for installing MythTV on Gentoo and provide the following extras.

  • Boot directly to MythTV
  • Remote access via Web page

2. Getting Started

Gentoo Base System 

First we must have a working Gentoo system. Please go to the Gentoo Handbook and follow those instructions and return here.

Warning: Please select a 2.6 kernel, preferably gentoo-dev-sources. DO NOT pick love-sources.

Warning: Do not follow the ALSA guide. We will setup sound further along.

Warning: Don't emerge anything additional other then what the Gentoo Handbook says you need to setup, otherwise you might have to re-emerge it when we configure USE flags.

Configuring your Kernel 

kernel

3. Preparing for the big emerge

Configuring your USE flags 

4. The Big Emerge

The Beginnings 

Firstly, we'll want to make sure that the system time is correct because you can't record shows on time with a bad clock.

Code listing 4.1

# emerge ntp
A fairly safe /etc/ntp.conf is the following:

Code listing 4.2

server          time.apple.com          iburst  maxpoll 17
server          clock.isc.org           iburst  maxpoll 17
server          ntp.ucsd.edu            iburst  maxpoll 17
server          chronos1.umt.edu        iburst  maxpoll 17

logfile         /var/log/ntpd.log
driftfile       /var/lib/ntp/ntp.drift
Now run

Code listing 4.3

# /etc/init.d/ntpd start
# ntpq -p
After about a minute, you should get something like this:

remote refid st t when poll reach delay offset jitter ============================================================================== +clock.isc.org 204.123.2.5 2 u 21h 36h 377 92.253 4.026 3.192 *bigben.ucsd.edu 132.249.20.88 2 u 21h 36h 377 80.864 -12.275 9.499 +br1.umtnet.umt. 140.142.16.34 2 u 20h 36h 377 97.488 2.112 2.569

Then run the following: # rc-update add ntpd default This will cause ntp to start-up on boot.

5. Common Problems

cannot find -lGL 

Seeing messages that contain "cannot find -lGL"? This is because of your xorg-x11 upgrade.

Two things you'll need to do..

Code listing 5.1

# emerge -pv opengl-update
and verify you have at least version 2.1.1. If not upgrade.

Then run,

Code listing 5.2

# opengl-update xorg-x11

and attempt to compile again. You will have to switch back your settings if you have an Nvidia card or if ATI's binary drivers are installed.

mythbackend fails to start after upgrading to 0.17 

This appears to only be a problem for those that used CVS at any point after 0.16 came out. The solution is fairly simple.

Code listing 5.3

# mysql -u mythtv -p

// Your password should be "mythtv", unless you changed it. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 20 to server version: 4.0.23a Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> // If you don't get the above block of text, verify that MySQL is running and double check your password. Now enter the following. mysql> use mythconverg; mysql> alter table capturecard drop column firewire_speed; mysql> alter table capturecard drop column firewire_port; mysql> alter table capturecard drop column firewire_model; mysql> alter table capturecard drop column firewire_node; mysql> alter table recorded drop column deletepending; // Note, all these lines end with a ; mysql> quit;

Now try to start mythbackend again, it should be working.

Restarting Mythfrontend automatically on crash/exit 

Want your mythfrontend to always run and restart on crash or on accidental exit? Just do the following:

Code listing 5.4

# crontab -e -u mythtv
// If mythtv is not the user that runs mythfrontend for you then switch it
Add the following line to this file and save and exit.
* * * * * pidof mythfrontend 2>&1 > /dev/null || ( export DISPLAY=":0.0" && mythfrontend 2>&1 > /dev/null & )

The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.
line
Updated 2005-02-20
line
Doug Klima
Author

line
Summary:  This document will cover the official Gentoo method for installing and using MythTV.
line

Donate to support our development efforts.

line
The Gentoo Linux Store
line
php|architect

php|architect is the monthly magazine for PHP professionals, available worldwide in print and electronic format. A percentage of all the sales will be donated back into the Gentoo project.

line
Tek Alchemy

Tek Alchemy offers dedicated servers and other hosting solutions running Gentoo Linux.

line
DDR Memory at Crucial.com

Purchase RAM from Crucial.com and a percentage of your sale will go towards further Gentoo Linux development.

line
Win4Lin at NeTraverse

Win4Lin from NeTraverse lets you run Windows applications under Gentoo Linux at native speeds.

line
Copyright 2001-2003 Gentoo Technologies, Inc. Questions, Comments, Corrections? Email www@gentoo.org.