Official Gentoo MythTV Install Guide
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
Please select a 2.6 kernel, preferably gentoo-dev-sources. DO NOT pick love-sources.
Do not follow the ALSA guide. We will setup sound further along.
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
3. Preparing for the big emerge
Configuring your USE flags
4. The Big Emerge
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.
A fairly safe /etc/ntp.conf is the following:
Code listing 4.1
# emerge ntp
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
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 22.214.171.124 2 u 21h 36h 377 92.253 4.026 3.192
*bigben.ucsd.edu 126.96.36.199 2 u 21h 36h 377 80.864 -12.275 9.499
+br1.umtnet.umt. 188.8.131.52 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..
and verify you have at least version 2.1.1. If not upgrade.
Code listing 5.1
# emerge -pv opengl-update
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
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> 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;
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
Code listing 5.4
# crontab -e -u mythtv
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.