MythTV installation

Downloading

It's best to download the (stable) source using SVN. You can then easily get the occasional fixes that are done. Download the stable branch using:

svn co http://svn.mythtv.org/svn/branches/release-0-23-fixes/ mythtv-0.23

This will put the source in a directory called 'mythtv-0.23'. Later, you can do:

cd mythtv-0.23
svn update

to get any updates.

Prerequisites

The lame package is needed. Download from http://lame.sourceforge.net/ and package using:
./configure --disable-frontend
make
make install DESTDIR=...

I spent a lot of time installing and configuring xmltv (software for getting program guide information from websites), only to discover later that mythtv can use the off-air EPG. So xmltv is not needed.

Building and packaging

cd mythtv-0.23
cd mythtv
./configure
make
make install INSTALL_ROOT=...
cd ../myththemes
./configure
make
make install INSTALL_ROOT=...
cd ../mythplugins
./configure --disable-all --enable-mythvideo --enable-mytharchive
make
make install INSTALL_ROOT=...
... build Slackware package as usual

Backend installation on sage

Set up MySQL. Do (as root):
cp /etc/my-medium.cnf /etc/my.cnf
vim /etc/rc.d/rc.mysqld
Comment out line 'SKIP="--skip-networking"'
chmod +x /etc/rc.d/rc.mysqld
/etc/rc.d/rc.mysqld start

Install the mythtv Slackware package (see above).

Create directory for MythTV to store recordings:
mkdir /video     # I have since put this in a separate partition
chmod 777 /video

Configure sage IP addresses, /video directory, etc.:
mythtv-setup
Select DVB cards 0 and 1 as two capture cards
In "Input connections", link each card to "DVB-T".
Scan for channels - only need to do this on one tuner.

Initialize database:
cd mythtv-0.20.2/database
mysql -u root < mc.sql
mysql -u root mythconverg
grant all on mythconverg.* to mythtv@"192.168.183.%" identified by "mythtv";
flush privileges;
quit

Start the MythTV backend:
mythbackend --daemon

Configure frontend: run 'mythfrontend', and select "Setup":
Set sound device to "ALSA:default".

Arrange for automatic starting of MythTV backend:
Create file /etc/rc.d/rc.mythtv to start/stop backend.
Add call of rc.mythtv to /etc/rc.d/rc.local.
Add mythbackend to /etc/logrotate.d/syslog

Frontend installation on nettle

Install the mythtv Slackware package (see above).

Configure frontend - as yourself:
mythfrontend
Configure sage as server
Select 'Setup', and set sound device to 'ALSA:default'