Debian Wheezy MythTV

From Bit Binary Wiki
Jump to: navigation, search



In and effort to use Debian for everything I created this guide to replace the MythTV guide i wrote for Ubuntu. So lets begin.

Base Install

Start by following the Debian Server Base Configuration guide. It's up to you how your partition your disks. A good rule of thumb is to have separate disks for livetv and recordings, read MythTV Storage Groups for more information.

Install X

apt-get install xorg mesa-utils xbase-clients xsel dbus-x11 \
xfonts-terminus xfonts-terminus-dos xfonts-terminus-oblique \
ttf-mscorefonts-installer gsfonts-x11 ttf-dejavu ttf-liberation \
ttf-freefont ttf-droid libgl1-mesa-dri

XFCE Minimal Desktop

The following packages are based on what Mythbuntu uses.

apt-get install xfce-keyboard-shortcuts xfce4-panel xfce4-session \
xfce4-settings xfce4-terminal xfce4-utils xfce4-volumed xfconf \
xfdesktop4 xfdesktop4-data xfwm4 thunar thunar-volman alsa-base \
alsa-utils libasound2-plugins libxfce4util-bin libgtk2.0-bin \
libgtk-3-bin desktop-base policykit-1 lightdm xdg-user-dirs \
libpam-ck-connector dmz-cursor-theme gnome-icon-theme \
hicolor-icon-theme libavcodec53 upower menu menu-l10n vbetool \
liburi-perl sudo gksu mousepad dvb-apps acpi-support


apt-get install shiki-brave-theme gnome-brave-icon-theme \
shiki-colors-xfwm-theme shiki-colors

Chrome Browser

Due to Adobe giving up support for Flash this has broken access to some websites such as on Linux - the fix is to use Google Chrome with it's inbuilt pepper flash version.

echo "deb stable main" > /etc/apt/sources.list.d/google-chrome.list
apt-get update
apt-get install apt-get install google-chrome-stable \
libfile-mimeinfo-perl libnet-dbus-perl libx11-protocol-perl

HD HomeRun

If you have a HD HomeRun as I do then the following may be useful.

cd /var/cache/apt/archives/
wget ""
apt-get install hdhomerun-config libhdhomerun1
dpkg -i hdhomerun-config-gui_20120128-0ubuntu2_amd64.deb

Build MythtTV

I build MythTV from source using the deb-multimedia repo. This ensures I don't have to install anything from that repository (with the exception of a few libraries. i also build in a chroot to keep my system clean.

Note: For your chroot make sure you have about 8GB minimum free as the MythTV build process uses a bit of space
apt-get install debootstrap
mkdir /chroot/wheezy
debootstrap wheezy /chroot/wheezy

Once it's finished installing enter the chroot.

chroot /chroot/wheezy /bin/bash
apt-get install locales
dpkg-reconfigure locales

Install liblockdev1

apt-get install liblockdev1

We need libcec1 and libfaac from deb-multimedia.

cd /usr/src
wget ""
wget ""
wget ""
wget ""
dpkg -i libfaac0_1.28-dmo3_amd64.deb libfaac-dev_1.28-dmo3_amd64.deb libcec1_1.8.1-dmo3_amd64.deb libcec1-dev_1.8.1-dmo3_amd64.deb

Now obtain remaining build dependancies.

apt-get build-dep mythtv

then build MythTV

cd /usr/src
apt-get source mythtv
cd mythtv-dmo-0.26.1/
dpkg-buildpackage -us -uc

... Wait ....

Exit chroot


Add mythtv user:

useradd -d /var/lib/mythtv -m -s /bin/bash -u 999 -U -r -G video,audio,cdrom,adm mythtv
password mythtv
su - mythtv
mkdir Software
cp /chroot/wheezy/usr/src/*.deb ~/Software/
dpkg -i $(ls /var/lib/mythtv/Software/*.deb | grep -v -E "php|-dev"  | tr '\n' ' ')
apt-get -f install
/usr/lib/x86_64-linux-gnu/lightdm/lightdm-set-defaults --autologin mythtv
Personal tools