Skip to content

Building a mythfrontend box on hardy from scratch

start os install ( I use the hardy i386 alternate cd)

during install routine I create a default user and we will call it desktop.

make desktop user login automatically

install nvidia restricted driver

apt-get install openssh-server portmap nfs-common xfsprogs lm-sensors snmpd smartmontools mutt postfix ssh dstat iptraf subversion checkinstall apache2 php5 qt3-dev-tools libdts-dev libfreetype6-dev lame apcupsd apcupsd-cgi logwatch dselect openbox phpmyadmin lirc mailx sysv-rc-conf mysql-client libqt3-mt-mysql

nano /etc/fstab /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
mkdir /dvrmkdir /offline

mount -a

cp /offline/archive/common/etc/apt/sources.list.hardy /etc/apt

apt-get clean

apt-get update

apt-get upgrade

apt-get build-dep mythtv

apt-get install libmad0 libmad0-dev flac libflac-dev libcdaudio-dev libtag1-dev libcdparanoia0-dev xine-ui libxine1-ffmpeg mplayer

download nx debs

sudo dpkg -i nxclient_3.0.0-89_i386.deb
sudo dpkg -i nxnode_3.0.0-93_i386.deb
sudo dpkg -i nxserver_3.0.0-79_i386.deb

cp /offline/files/rsync/rsyncd.conf /etc
cp /offline/files/rsync/rsyncd.secrets /etc
nano /etc/default/rsync and enable
chmod 600 /etc/rsyncd.secrets

/etc/init.d/rsync restart


cp /offline/archive/common/snmpd.conf /etc/snmp

nano /etc/default/snmpd remove our of config line

/etc/init.d/snmpd restart

cp /offline/archive/common/smartd.conf /etc/smartd.conf
nano /etc/default/smartmontools
/etc/init.d/smartmontools restart


apt-get install libauthen-pam-perl libio-pty-perl libmd5-perl libnet-ssleay-perl
dpkg -i webmin_1.390_all.deb

apt-get update

apt-get upgrade

Wake on lan if supported

echo 'ethtool -s eth0 wol g' >> /etc/rc.local

cp /offline/archive/common/apcupsd/apcupsd.conf /etc/apcupsd
nano /etc/default/apcupsd and make isconfigured=yes
/etc/init.d/apcupsd restart

Customize desktop for mythtv

nano /usr/share/xsessions/mythtv.desktop
[Desktop Entry]
Comment=Use this session to run MythTV

nano /usr/local/bin/
killall irexec
irexec -d
nvidia-settings -l
mtd -d

exec openbox

chmod +x /usr/local/bin/


cp /dvr/files/lircrc /home/desktop/.mythtv
ln -s /home/desktop/.mythtv/lircrc /home/desktop/.lircrc

To get basic things setup for myth I just do a apt-get install mythtv. Then go and uninstall all mythtv packages(that is if you want to build your own packages, just let it be if you are going to use the packages)

Otherwise a few steps you will have to take to get things working like the Backend at reboot and what not.

cp /dvr/scripts/mythtv-backend /etc/init.d

cp /dvr/scripts/mythtv-backend.default /etc/default/mythtv-backend

update-rc.d mythtv-backend defaults

mkdir /var/log/mythtv

make sure /root/.mythtv/mysql.txt is created and correct

/etc/init.d/mythtv-backend start

Install medibuntu stuff

sudo wget -O /etc/apt/sources.list.d/medibuntu.list
wget -q -O- | sudo apt-key add - && sudo apt-get update

Posted in Linux, Mythtv.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. bryan says

    Very nice.

You must be logged in to post a comment.