Take a look at <a href="http://minimyth.org">minimyth.org</a>, This is what I use on all of my FE's. With a bit of scripting I am now to the point were I can upgrade in 10 min or so. So much nicer than compiling/building my self like I use to. The new ver also supports backend as well. <br>
<br>Bryan<br><br><br><div class="gmail_quote">On Sun, Jul 13, 2008 at 4:12 AM, Jan Ceuleers <<a href="mailto:jan.ceuleers@computer.org">jan.ceuleers@computer.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Chuck Peters wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="http://www.mythtv.org/wiki/index.php/Diskless_Backend" target="_blank">http://www.mythtv.org/wiki/index.php/Diskless_Backend</a> is dated 18<br>
December 2006 and wasn't too successful. It looks like it suffered<br>
from IO problems.<br>
<br>
I want to build/buy a new system for a bedroom and putting a SD tuner<br>
card there would be nice. If I use gigabit networking I don't think I<br>
would have the IO problems. Anybody running diskless backends?<br>
</blockquote>
<br></div>
Yes, working well.<br>
<br>
- Ubuntu 7.10 on a Via Epia EN15000.<br>
- PXE/TFTP/NFS boot from the network.<br>
<br>
It's been a while since I did that now, but I attach the script I used to create the image that the machine boots into (with passwords etc removed). Should give you some pointers.<br>
<br>
Cheers, Jan<br>
<br>#!/bin/bash<br>
mkdir -p /raid5/nobackup/fe2root<br>
mkdir -p /mnt/ubiso<br>
[ -e /raid5/dobackup/home/storage/Exclude_from_backup/ubuntu-7.10-server-i386.iso ] || ( echo "can\'t find ISO image" && exit )<br>
mount -t iso9660 -o ro,loop=/dev/loop0 /raid5/dobackup/home/storage/Exclude_from_backup/ubuntu-7.10-server-i386.iso /mnt/ubiso/<br>
debootstrap --arch i386 gutsy /raid5/nobackup/fe2root file:/mnt/ubiso<br>
umount /mnt/ubiso<br>
rmdir /mnt/ubiso<br>
<br>
cat > /raid5/nobackup/fe2root/etc/fstab <<-delim<br>
via.xperim.be:/raid5/nobackup/fe2root / nfs rsize=8192,wsize=8192,nfsvers=3,actimeo=0,tcp,intr 0 0<br>
tmpfs /tmp tmpfs size=128m,mode=1777 0 0<br>
proc /proc proc defaults 0 0<br>
sys /sys sysfs defaults 0 0<br>
via.xperim.be:/raid5/nobackup/mythtv /var/lib/mythtv nfs rsize=8192,wsize=8192,nfsvers=3,actimeo=0,tcp,intr,noauto 0 0<br>
via.xperim.be:/home/storage/Audio /home/storage/Audio nfs rsize=8192,wsize=8192,nfsvers=3,actimeo=0,tcp,intr,noauto 0 0<br>
delim<br>
<br>
cat > /raid5/nobackup/fe2root/etc/network/interfaces <<-delim<br>
# This file describes the network interfaces available on your system<br>
# and how to activate them. For more information, see interfaces(5).<br>
<br>
# The loopback network interface<br>
auto lo eth0<br>
iface lo inet loopback<br>
<br>
# The primary network interface<br>
iface eth0 inet static<br>
address <a href="http://192.168.1.20" target="_blank">192.168.1.20</a><br>
netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a><br>
broadcast <a href="http://192.168.1.255" target="_blank">192.168.1.255</a><br>
network <a href="http://192.168.1.0" target="_blank">192.168.1.0</a><br>
gateway <a href="http://192.168.1.5" target="_blank">192.168.1.5</a><br>
delim<br>
<br>
echo fe2 > /raid5/nobackup/fe2root/etc/hostname<br>
echo http_proxy=<a href="http://via.xperim.be:3128" target="_blank">http://via.xperim.be:3128</a> >> /raid5/nobackup/fe2root/etc/bash.bashrc<br>
cat /etc/apt/sources.list > /raid5/nobackup/fe2root/etc/apt/sources.list<br>
<br>
cat > /raid5/nobackup/fe2root/etc/hosts <<-delim<br>
<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> localhost<br>
<a href="http://127.0.1.1" target="_blank">127.0.1.1</a> <a href="http://fe2.xperim.be" target="_blank">fe2.xperim.be</a> fe2<br>
<br>
# The following lines are desirable for IPv6 capable hosts<br>
::1 ip6-localhost ip6-loopback<br>
fe00::0 ip6-localnet<br>
ff00::0 ip6-mcastprefix<br>
ff02::1 ip6-allnodes<br>
ff02::2 ip6-allrouters<br>
ff02::3 ip6-allhosts<br>
delim<br>
<br>
cat > /raid5/nobackup/fe2root/etc/resolv.conf <<-delim<br>
search <a href="http://xperim.be" target="_blank">xperim.be</a><br>
nameserver <a href="http://192.168.15.1" target="_blank">192.168.15.1</a><br>
delim<br>
<br>
echo LANG=\"en_US.UTF-8\" >> /raid5/nobackup/fe2root/etc/environment<br>
echo LANG=\"en_US.UTF-8\" > /raid5/nobackup/fe2root/etc/default/locale<br>
echo en_US.UTF-8 UTF-8 > /raid5/nobackup/fe2root/var/lib/locales/supported.d/local<br>
<br>
#cp -a /etc/alternatives/* /raid5/nobackup/fe2root/etc/alternatives<br>
echo export VISUAL=/usr/bin/vi >> /raid5/nobackup/fe2root/etc/profile<br>
<br>
cp /boot/memtest86* /raid5/nobackup/fe2root/boot<br>
mkdir -p /raid5/nobackup/fe2root/boot/pxelinux.cfg<br>
cp /usr/lib/syslinux/pxelinux.0 /raid5/nobackup/fe2root/boot<br>
<br>
cat > /raid5/nobackup/fe2root/boot/pxelinux.cfg/default <<-delim<br>
default Linux<br>
<br>
label Linux<br>
kernel /vmlinuz-2.6.22-14-generic<br>
append root=/dev/nfs nfsroot=192.168.1.11:/raid5/nobackup/fe2root initrd=/initrd.img-2.6.22-14-generic.fe2 ip=dhcp ro quiet splash<br>
<br>
label Linux (recovery mode)<br>
kernel /vmlinuz-2.6.22-14-generic<br>
append root=/dev/nfs nfsroot=192.168.1.11:/raid5/nobackup/fe2root initrd=/initrd.img-2.6.22-14-generic.fe2 ip=dhcp ro single<br>
<br>
label memtest86+<br>
kernel /memtest86+.bin<br>
append quiet<br>
delim<br>
<br>
chmod 666 /raid5/nobackup/fe2root/boot/pxelinux.0<br>
chmod 666 /raid5/nobackup/fe2root/boot/pxelinux.cfg/*<br>
<br>
cat > /raid5/nobackup/fe2root/dobootstrap <<-delim<br>
#!/bin/bash<br>
mount /proc<br>
mount /sys<br>
dpkg-reconfigure locales<br>
#dpkg-reconfigure console-setup<br>
adduser blah<br>
echo 'blah ALL=(ALL) ALL' >> /etc/sudoers<br>
chmod 0440 /etc/sudoers<br>
apt-key update<br>
apt-get -u update<br>
apt-get -y install localepurge<br>
apt-get -y install linux-image-generic linux-restricted-modules syslinux memtest86+ openssh-server nfs-client<br>
echo ext3 >> /etc/initramfs-tools/modules<br>
update-initramfs -u<br>
cd /bin && rm sh && ln -s /bin/bash /bin/sh<br>
dpkg-reconfigure tzdata<br>
apt-get -u update<br>
apt-get upgrade<br>
umount /sys<br>
umount /proc<br>
delim<br>
<br>
chmod +x /raid5/nobackup/fe2root/dobootstrap<br>
chroot /raid5/nobackup/fe2root /dobootstrap<br>
<br>
cat > /raid5/nobackup/fe2root/etc/motd.tail <<-delim<br>
<br>
Welcome to <a href="http://fe2.xperim.be" target="_blank">fe2.xperim.be</a>. Unauthorised use prohibited.<br>
delim<br>
<br>
cat > /raid5/nobackup/fe2root/installapps <<-delim<br>
#!/bin/bash<br>
# mount /proc<br>
# mount /sys<br>
apt-get update<br>
apt-get upgrade<br>
apt-get -y install ntp vim-full apcupsd wget traceroute man-db lm-sensors htop debian-helper-scripts cpufrequtils sysstat<br>
yes | sensors-detect<br>
wget -q <a href="http://packages.medibuntu.org/medibuntu-key.gpg" target="_blank">http://packages.medibuntu.org/medibuntu-key.gpg</a> -O- | apt-key add -<br>
apt-get update<br>
apt-get -y install ubuntu-desktop mythbuntu-desktop mythbuntu-lirc-generator<br>
apt-get -y install xserver-xorg-video-openchrome x-ttcidfont-conf libviaxvmc1 libviaxvmcpro1<br>
apt-get -y install ffmpeg libavcodec1d libavformat1d libavutil1d libpostproc1d libswscale1d libdvdcss2 libdvdcss2-dev<br>
apt-get -y install mythtv-backend mythtv-frontend<br>
# apt-get -y --force-yes install ubuntu-desktop mythbuntu-desktop xserver-xorg-video-openchrome mythtv-backend mythtv-frontend ffmpeg libavcodec1d libavformat1d libavutil1d libpostproc1d libswscale1d libdvdcss2 libdvdcss2-dev x-ttcidfont-conf mythbuntu-lirc-generator<br>
chown root.mythtv /etc/mythtv/mysql.txt<br>
apt-get -y --force-yes install webmin<br>
mv /etc/webmin/config /etc/webmin/config.orig<br>
grep -v referers_none < /etc/webmin/config.orig > /etc/webmin/config<br>
### TODO: Check if DMA is enabled on DVD drive<br>
### TODO: Check if Myth Transcoding Deamon is installed<br>
### TODO: X config<br>
### TODO: RNG driver<br>
### TODO: remote setup<br>
### DO THIS AT THE END<br>
cat \$0 > /root/timestamp.appsinstall<br>
chmod a-wx /root/timestamp.appsinstall<br>
echo Now log in using X and run mythtv-setup<br>
delim<br>
<br>
chmod +x /raid5/nobackup/fe2root/installapps<br>
#chroot /raid5/nobackup/fe2root /installapps<br>
<br>
cat > /raid5/nobackup/fe2root/etc/ntp.conf <<-delim<br>
driftfile /var/lib/ntp/ntp.drift<br>
statsdir /var/log/ntpstats/<br>
logfile /var/log/ntp.log<br>
server <a href="http://via.xperim.be" target="_blank">via.xperim.be</a> iburst<br>
disable auth<br>
delim<br>
<br>
mkdir -p /raid5/nobackup/fe2root/etc/apcupsd<br>
cat > /raid5/nobackup/fe2root/etc/apcupsd/apcupsd.conf <<-delim<br>
## apcupsd.conf v1.1 ##<br>
UPSNAME belowtv<br>
UPSCABLE usb<br>
UPSTYPE usb<br>
DEVICE<br>
LOCKFILE /var/lock<br>
ONBATTERYDELAY 6<br>
BATTERYLEVEL 5<br>
MINUTES 5<br>
TIMEOUT 0<br>
ANNOY 300<br>
ANNOYDELAY 60<br>
NOLOGON disable<br>
KILLDELAY 0<br>
NETSERVER on<br>
NISIP <a href="http://0.0.0.0" target="_blank">0.0.0.0</a><br>
NISPORT 3551<br>
EVENTSFILE /var/log/apcupsd.events<br>
EVENTSFILEMAX 10<br>
UPSCLASS standalone<br>
UPSMODE disable<br>
STATTIME 0<br>
STATFILE /var/log/apcupsd.status<br>
LOGSTATS off<br>
DATATIME 0<br>
delim<br>
<br>
mv /raid5/nobackup/fe2root/etc/default/apcupsd /raid5/nobackup/fe2root/etc/default/apcupsd.orig<br>
grep -v "ISCONFIGURED=no" < /raid5/nobackup/fe2root/etc/default/apcupsd.orig > /raid5/nobackup/fe2root/etc/default/apcupsd<br>
echo "ISCONFIGURED=yes" >> /raid5/nobackup/fe2root/etc/default/apcupsd<br>
<br>
mkdir -p /raid5/nobackup/fe2root/etc/mythtv<br>
cp /etc/mythtv/mysql.txt /raid5/nobackup/fe2root/etc/mythtv/mysql.txt<br>
<br>
cp /root/updateSystem /raid5/nobackup/fe2root/root/<br>
cp /usr/bin/ntpStatus /raid5/nobackup/fe2root/usr/bin<br>
echo "*.info;mail.none;news.none;authpriv.none;cron.none;local0.none @<a href="http://via.xperim.be" target="_blank">via.xperim.be</a>" >> /raid5/nobackup/fe2root/etc/syslog.conf<br>
<br>
chmod a+rw /raid5/nobackup/fe2root/dev/null<br>
<br>
cat > /raid5/nobackup/fe2root/etc/mythtv/mysql.txt <<-delim<br>
DBHostName=<a href="http://via.xperim.be" target="_blank">via.xperim.be</a><br>
<br>
# By default, Myth tries to ping the DB host to see if it exists.<br>
# If your DB host or network doesn't accept pings, set this to no:<br>
#<br>
DBHostPing=no<br>
<br>
DBUserName=mythtv<br>
DBPassword=whatever<br>
DBName=mythconverg<br>
DBType=QMYSQL3<br>
<br>
# Set the following if you want to use something other than this<br>
# machine's real hostname for identifying settings in the database.<br>
# This is useful if your hostname changes often, as otherwise you<br>
# will need to reconfigure mythtv (or futz with the DB) every time.<br>
# TWO HOSTS MUST NOT USE THE SAME VALUE<br>
#<br>
#LocalHostName=my-unique-identifier-goes-here<br>
<br>
# If you want your frontend to be able to wake your MySQL server<br>
# using WakeOnLan, have a look at the following settings:<br>
#<br>
#<br>
# The time the frontend waits (in seconds) between reconnect tries.<br>
# This should be the rough time your MySQL server needs for startup<br>
#<br>
#WOLsqlReconnectWaitTime=0<br>
#<br>
#<br>
# This is the number of retries to wake the MySQL server<br>
# until the frontend gives up<br>
#<br>
#WOLsqlConnectRetry=5<br>
#<br>
#<br>
# This is the command executed to wake your MySQL server.<br>
#<br>
#WOLsqlCommand=echo 'WOLsqlServerCommand not set'<br>
delim<br>
<br>
# The following needs to be added to xorg.conf<br>
#Section "Module"<br>
# Disable "glx"<br>
# Disable "xtrap"<br>
# Disable "record"<br>
# Disable "GLcore"<br>
# Disable "dri"<br>
#EndSection<br>
<br>
mv /raid5/nobackup/fe2root/etc/rc.local /raid5/nobackup/fe2root/etc/rc.local.orig<br>
grep -v "exit 0" < /raid5/nobackup/fe2root/etc/rc.local.orig > /raid5/nobackup/fe2root/etc/rc.local<br>
echo "mount /var/lib/mythtv" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "mount /home/storage/Audio" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "setpci -v -d *:* latency_timer=b0" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "setpci -v -s 00:0f.1 latency_timer=ff" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "setpci -v -s 00:11.5 latency_timer=ff" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "setpci -v -s 00:13.0 latency_timer=ff" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "setpci -v -s 01:00.0 latency_timer=ff" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "setpci -v -s 00:0e.0 latency_timer=ff" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "/usr/bin/mtd --daemon" >> /raid5/nobackup/fe2root/etc/rc.local<br>
echo "ln -s /dev/hdb /dev/dvd" >> /raid5/nobackup/fe2root/etc/rc.local<br>
<br>
# See <a href="https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/26998" target="_blank">https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/26998</a><br>
# In order to be able to enable DMA on the DVD drive, ide-generic must be<br>
# kept from loading.<br>
<br>
### DO THIS AT THE END<br>
cat $0 > /raid5/nobackup/fe2root/root/timestamp.baseinstall<br>
chmod a-wx /raid5/nobackup/fe2root/root/timestamp.baseinstall<br>
<br>
service tftpd-hpa restart<br>
echo "Now PXEboot the machine, log in as blah, set a root password,"<br>
echo "log in as root, and execute /installapps"<br>
<br>
<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div><br>