home / blog

Ubuntu 14.04 Mythtv box setup notes

# extra repos
sudo apt-add-repository ppa:ehoover/compholio
sudo add-apt-repository ppa:jon-hedgerows/get-iplayer
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

# update
sudo apt-get update
sudo apt-get dist-upgrade

# essentials
apt-get install openssh-server emacs

# static IP address
sudo emacs /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.5.1.51
netmask 255.255.255.0
gateway 10.5.1.254
dns-nameservers 10.5.1.254

# restore home directories from backup
chown -R mythtv:mythtv ~mythtv
chown -R adam:adam ~adam

# apps
sudo apt-get install mythtv mythweb xmltv-util dvb-apps google-chrome-stable get-iplayer vlc mplayer

# util
sudo apt-get install ethtool nmap git php5-cli cifs-utils

# hardware
sudo apt-get install nvidia-current r8168-dkms

# restore mythtv database
sudo service mythtv-backend stop
mysql -u root -p < backup.sql
sudo service mythtv-backend start
# change mythtv password in database to match /etc/apache2/sites-available/mythweb.conf and ~mythtv/.mythtv/config.xml
mysql -u root -p
update mysql.user set Password=PASSWORD('password') where user = 'mythtv';

# enable auto login
sudo emacs /etc/lightdm/lightdm.conf
[SeatDefaults]
user-session=ubuntu
greeter-session=unity-greeter
autologin-user=mythtv
autologin-user-timeout=0

sudo emacs ~/config/autostart/mythtv-frontend.desktop
[Desktop Entry]
Type=Application
Name=mythtv frontend
Exec=/usr/bin/mythfrontend
Icon=
Comment=mythtv

# Bugfix - stop screen blanking
sudo apt-get remove gnome-screensaver

# configure listings
su mythtv tv_grab_uk_rt --configure
# add update script to crontab
sudo mythtv crontab -e

# remove unnecessary stuff
sudo apt-get remove indicator-bluetooth indicator-keyboard indicator-messages indicator-power  evolution-data-server modemmanager cups-browsed ubuntuone-client cups  unity-lens-video unity-lens-photos unity-lens-music unity-lens-friends unity-lens-files zeitgeist
This entry was posted in geek and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.