home / blog

13.04 Mythtv with minimal ubuntu desktop upgrade

Yes… I know about mythbuntu, however I prefer to roll-my-own and use the a standard minimal ubuntu-desktop for consistency, and also use netflix / chrome from the media-centre PC.

# pre-setup
# - backup home, etc and mysqldump
# - minimal install using mini.iso from https://help.ubuntu.com/community/Installation/MinimalCD
# - install. select only open SSH server
apt-get install --no-install-recommends emacs

# login via SSH
# restore /etc/fstab
# restore home directories
chown -R mythtv:mythtv ~mythtv
chown -R adam:adam ~adam

# static IP address
sudo emacs /etc/network/interfaces 
auto eth0
iface eth0 inet static

# minimum install
sudo apt-get install --no-install-recommends ubuntu-desktop 
# mythtv
sudo apt-get install --no-install-recommends mythtv mythweb xmltv-util dvb-apps

# hardware
sudo apt-get install --no-install-recommends nvidia-current
sudo apt-get install r8168-dkms
sudo bash -c "echo 'blacklist r8169' > /etc/modprobe.d/blacklist-r8169.conf"

# find applications in unity
sudo apt-get install --no-install-recommends unity-lens-applications
# essentials 
sudo apt-get install --no-install-recommends gnome-terminal ethtool nmap git php5-cli
# fonts
sudo apt-get install ttf-ubuntu-font-family

# restore mythtv database
mysql -u root -p < backup.sql
# 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

sudo emacs ~/config/autostart/mythtv-frontend.desktop
[Desktop Entry]
Name=mythtv frontend

# Bugfix - Unity desktop show border around myth front end
gconftool --type Boolean --set /apps/compiz-1/plugins/workarounds/screen0/options/legacy_fullscreen true

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

# chrome browser
sudo apt-get install --no-install-recommends libgconf2-4 libnss3-1d libxss1 libcurl3 xdg-utils
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

# Netflix desktop
sudo apt-get remove nvidia-current
sudo apt-get install nvidia-173 # current drivers broken for fullscreen playback
sudo apt-add-repository ppa:ehoover/compholio
sudo apt-get update
sudo apt-get install netflix-desktop nvidia-settings

# iplayer
sudo add-apt-repository ppa:jon-hedgerows/get-iplayer
sudo apt-get update
sudo apt-get install get-iplayer ffmepg
This entry was posted in geek and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.