Installation

Install mythtv:
    Copied /var/lib/mysql from slackware, replacing ubuntu's databases.
    Installed mythtv-common, mythtv, pwgen and mythweb packages.
    Downloaded dvb-demod-si2168-b40-01.fw firmware and put in /lib/firmware.
    Copied mythname cron job from slackware and edited location of mythlink.pl.

Got mythtv database backup working:
    Edited /etc/cron.weekly/mythtv-database to run as root, since
    mythconverg_backup.pl wants to read /etc/mysql/debian.cnf, which is only
    readable by root.
    Created file /root/.mythtv/backuprc:
        DBBackupDirectory=/home/mythtv/backups
    This puts the backups in /home/mythtv/backups.
Create mythtvf user for running the MythTV frontend.
    groupadd mythtvf
    useradd -d /home/mythtvf -s /bin/bash -g mythtvf mythtvf
    passwd mythtvf
    mkdir /home/mythtvf
    chown mythtvf: /home/mythtvf
    cp -a ~fog/.mythtv ~mythtv
    chown -R mythtvf: ~mythtvf/.mythtv
    rm -rf ~fog/.mythtv

Disabled mythtv display of background image on "Watch Recordings" screen:
    vim  /usr/share/mythtv/themes/MythCenter-wide/recordings-ui.xml
        Deleted the fanart section near the beginning (it will
        probably get re-instated when mythtv is upgraded).

mythtv sound:
    Disabled pulseaudio for user mythtvf (didn't work with mythtv):
        systemctl --user disable pulseaudio
        systemctl --user disable pulseaudio.socket
    Removed ~mythtvf/.asoundrc, since it configured alsa to use pulse (it's
    possible that it was me that created it anyway).
    Configured mythfrontend (Setup->Audio) to use Alsa HDMI for sound output.

iPlayer

get_iplayer is a command-line program for downloading iPlayer programs.

Links:

Wiki
Installation
Documentation
Tutorials
TV Download Guide
FAQ
Options

Installation

Installed pre-requisites:

apt install flvstreamer rtmpdump atomicparsley
cpan install Mojo::DOM


Downloaded get_iplayer as ZIP file from get_iplayer, and unpacked into /opt.

Linked to the script so that it's on the path:

ln -s /opt/get_iplayer-master/get_iplayer /usr/local/bin

Set the output directory (as fog):

get_iplayer --prefs-add --output /mythtv/Video

This creates an options file: /home/fog/.get_iplayer/options.

Usage

The search facility doesn't seem to work too well. I've resorted to looking for the programme/episode in a browser and copying the URL that you can play it from. The programme/episode can then be downloaded using:

get_iplayer <url>
mythutil --scanvideos