Skip to content


Make mythfrontend start after network is up

I just added a sleep 5 to the script and that seemed to be enough to let the network come up and get an ip before mythfrontend starts.

#!/bin/sh
# Mario Limonciello, March 2007
# partially merged with startmythtv.sh by Michael Haas, October 2007

pidof mythfrontend.real 2>&1 >/dev/null && wmctrl -a “MythTV Frontend” 2>/dev/null && exit 0

#source our dialog functions
. /usr/share/mythtv/dialog_functions.sh

#find the session, dialog, and su manager we will be using for display
find_session
find_dialog
find_su

#check that we are in the mythtv group
check_groups

#create a symbolic link for mysql.txt so it can’t be overwritten
symlink

if [ “$1” = “–service” ]; then
#source frontend session settings
if [ -f /etc/mythtv/session-settings ]; then
. /etc/mythtv/session-settings
fi
echo “Please note: additional command line arguments will not be passed”
echo ” to mythfrontend when using –service”
echo “Please set them in /etc/mythtv/session-settings instead”

#if group membership is okay, go ahead and launch
if [ “$IGNORE_NOT” = “0” ]; then
# start mythtv frontend software
if [ “$MYTHWELCOME” = “true” ]; then
# Note: if mythwelcome would support -O to override database settings,
# we could tell it to start the frontend with $MYTHFRONTEND_OPTS
# This is not possible yet, but maybe it’ll happen in the future
exec mythwelcome –syslog local7
else
sleep 5
until /usr/bin/mythfrontend.real –syslog local7 ${MYTHFRONTEND_OPTS}
RET=$?
[ “$RET” = “0” -o “$RET” = “1” -o “$RET” = “254” ]
do
notify-send -i info ‘Restarting Frontend’ “The front-end crashed unexpectedly (exit code $RET) and is restarting. Please wait…”
done
fi
fi
# if we’re not in –service mode, just behave normally
elif [ “$1” != “–service” ]; then
# if group membership is okay, go ahead and launch
if [ “$IGNORE_NOT” = “0” ]; then
exec /usr/bin/mythfrontend.real –syslog local7 “$@”
fi
fi

Posted in General.


Devices setup for Harmony remotes

Livingroom:
Vizio VW-42LHDTV10A
Motorola QIP-2500
Toshiba BDK21
Microsoft Windows Media Center

Bedroom:
Vizio VX32L HDTV10A
Microsoft Windows Media Center

Basement:
Panasonic PT-9000U
Oppo DVD-971H
Onkyo TX-SR800
Microsoft Windows Media Center

Posted in General.


HDHomerun Prime is up and running

It only took a few hours trying to do the self install and then a truck roll with two techs who did not know much about cable cards at all. They both thanked me for showing them how it worked and the web interface on the hdhomerun prime to show them the numbers they knew they needed but did not know how they were suppose to get them. Activation only took like 30 seconds once they had a working cable card paired with the tuner adapter and hdhomerun prime Now thanks to charter and the way they have channels setup, I can record any of the premium cable channels we get on our cable box. We can’t do video on demand or pay per view, but I was not looking to do that anyway.

Summary
Card Authentication success
Card OOB Lock success
Card Activation success
Tuning Resolver ready
Tuner 0 Channel none
Tuner 1 Channel none
Tuner 2 Channel none

Posted in General.


Building a myth frontend using mythbuntu 11.04 natty

reconfigure sources.list to point to local repo and install aptitude

aptitude install openssh-server portmap nfs-common snmpd smartmontools mutt postfix ssh dstat iptraf logwatch dselect mailx sysv-rc-conf gparted ntp iftop apcupsd libaudiofile0

mkdir /dvr /offline
nano /etc/fstab

192.168.1.210:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.210:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a

dpkg -i /dvr/mythbuntu-repos.deb

aptitude update

aptitude upgrade

aptitude remove mythweb

copy blootube theme

cp -R /dvr/files/blootubelite-wide/ /usr/share/mythtv/themes/

download nx debs

sudo dpkg -i nxclient_3.4.0-7_x86_64.deb
sudo dpkg -i nxnode_3.4.0-14_x86_64.deb
sudo dpkg -i nxserver_3.4.0-14_x86_64.deb

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

SNMP

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

/etc/init.d/snmpd restart

SMARTD

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

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

WEBMIN

aptitude install libauthen-pam-perl libio-pty-perl apt-show-versions libnet-ssleay-perl
dpkg -i /offline/files/webmin_1.530_all.deb

Make any changes need for lirc and x11 for each server

aptitude install distcc distcc-pump

cp /offline/archive/common/distcc/hosts /etc/distcc

cp /offline/archive/common/distcc/distcc /etc/default

 

Posted in Mythtv.


Make xfce leave the tv/monitor on and powered

Go to system settings –> power management and click on the monitor tab, and slide both options all the way to the left so they say never, for but putting the monitor to sleep and turning off the monitor.

Posted in Linux, Mythtv.


xorg settings to survive a reboot without the tv/monitor on

Vizio 42:

Add the following line to the Device: section

Option “CustomEDID” “DFP-0:/etc/X11/edidvisio42.bin”

Vizio 32:

Add the following line to the Device: section

Option  “CustomEDID” “CRT-0:/etc/X11/edidvisio32rgb.bin”

Panasonic AE900U:

Add the following two lines to the Device: section

Option  “ConnectedMonitor” “DFP-0”
Option  “CustomEDID” “DFP-0:/etc/X11/edidae900udvi.bin”

and also use the xorg.conf.ae900u.hdmi file if you want 1280×720

all files located in /offline/archive/common

Posted in Linux, Mythtv.


Building a mythfrontend on ubuntu lucid 10.04

aptitude install openssh-server portmap nfs-common snmpd smartmontools mutt postfix ssh dstat iptraf logwatch dselect mailx sysv-rc-conf gparted ntp iftop

mkdir /dvr /offline
nano /etc/fstab

192.168.1.210:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.210:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a

aptitude update

aptitude build-dep mythtv

aptitude install mythbuntu-control-centre

dpkg -i /dvr/mythbuntu-repos.deb

aptitude update

aptitude upgrade

download nx debs

sudo dpkg -i nxclient_3.4.0-7_x86_64.deb
sudo dpkg -i nxnode_3.4.0-14_x86_64.deb
sudo dpkg -i nxserver_3.4.0-14_x86_64.deb

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

SNMP

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

nano /etc/default/snmpd remove 127.0.0.1 our of config line
/etc/init.d/snmpd restart

SMARTD

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

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

WEBMIN

aptitude install libauthen-pam-perl libio-pty-perl apt-show-versions libnet-ssleay-perl
dpkg -i /offline/files/webmin_1.530_all.deb

aptitude install distcc distcc-pump

Note: lucid has pump script problems, change line in /usr/bin/pump to

/usr/lib/pymodules/python2.6/include_server/include_server.py
instead of

/usr/lib/pymodules/python2.5/include_server/include_server.py

cp /offline/archive/common/distcc/hosts /etc/distcc
cp /offline/archive/common/distcc/distcc /etc/default

Posted in Mythtv.


Install handbrake ppa

add-apt-repository ppa:stebbins/handbrake-snapshots

aptitude update

apt-get install handbrake*

Posted in Linux.


Building mythtv vm on lucid

aptitude install openssh-server portmap nfs-common snmpd smartmontools mutt postfix ssh dstat iptraf logwatch dselect mailx sysv-rc-conf gparted ntp iftop

mkdir /dvr /offline
nano /etc/fstab

192.168.1.210:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.210:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a

aptitude update

aptitude build-dep mythtv

aptitude install mythbuntu-control-centre

dpkg -i /dvr/mythbuntu-repos.deb

download nx debs

sudo dpkg -i nxclient_3.4.0-7_x86_64.deb
sudo dpkg -i nxnode_3.4.0-14_x86_64.deb
sudo dpkg -i nxserver_3.4.0-14_x86_64.deb

SNMP

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

nano /etc/default/snmpd remove 127.0.0.1 our of config line
/etc/init.d/snmpd restart

WEBMIN

aptitude install libauthen-pam-perl libio-pty-perl apt-show-versions libnet-ssleay-perl
dpkg -i /offline/files/webmin_1.530_all.deb

aptitude install distcc distcc-pump

Note: lucid has pump script problems, change line in /usr/bin/pump to

/usr/lib/pymodules/python2.6/include_server/include_server.py
instead of

/usr/lib/pymodules/python2.5/include_server/include_server.py

cp /offline/archive/common/distcc/hosts /etc/distcc
cp /offline/archive/common/distcc/distcc /etc/default

Posted in Mythtv.


Building mytfrontend with karmic and mythbuntu packages

aptitude install openssh-server portmap nfs-common xfsprogs lm-sensors snmpd smartmontools mutt postfix ssh dstat iptraf subversion checkinstall apache2 php5 libdts-dev libfreetype6-dev lame apcupsd apcupsd-cgi logwatch dselect openbox lirc mailx sysv-rc-conf mysql-client gparted libfame-0.9 libhtml-template-perl libmjpegtools-1.9 libnet-upnp-perl libphonon4 libpvm3 libqt4-dbus libqt4-designer libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-mysql libqt4-webkit libqt4-xml libqtcore4 libqtgui4 libquicktime1 libsox-fmt-alsa libsox-fmt-base libsox1 libxml-namespacesupport-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl mjpegtools ntp phonon phonon-backend-gstreamer pvm pwgen python-mysqldb qt4-qtconfig sox toolame transcode transcode-doc ttf-liberation libqt4-dev libxxf86vm-dev xfce4 dstat iftop

mkdir /dvr /offline
nano /etc/fstab

192.168.1.210:/offline /offline nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp
192.168.1.210:/dvr /dvr nfs soft,intr,rsize=32768,wsize=32768,async,nfsvers=3,bg,actimeo=0,tcp

mount -a

cp /etc/apt/sources.list /etc/apt/sources.list.org

aptitude upgrade
aptitude build-dep mythtv

aptitude install libmad0 libmad0-dev flac libflac-dev libcdaudio-dev libtag1-dev libcdparanoia-dev xine-ui libxine1-ffmpeg mplayer libpulse-dev

download nx debs

sudo dpkg -i nxclient_3.4.0-5_x86_64.deb
sudo dpkg -i nxnode_3.4.0-6_x86_64.deb
sudo dpkg -i nxserver_3.4.0-8_x86_64.deb

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

SNMP

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

nano /etc/default/snmpd remove 127.0.0.1 our of config line
/etc/init.d/snmpd restart
SMARTD

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

WEBMIN

aptitude install libauthen-pam-perl libio-pty-perl libmd5-perl libnet-ssleay-perl
dpkg -i /offline/files/webmin_1.500_all.deb

Wake on lan if supported

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

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

aptitude install distcc distcc-pump

Note: karmic has pump script problems, change line in /usr/bin/pump to

/usr/lib/pymodules/python2.6/include_server/include_server.py
instead of

/usr/lib/pymodules/python2.5/include_server/include_server.py

cp /offline/archive/common/distcc/hosts /etc/distcc
cp /offline/archive/common/distcc/distcc /etc/default

Posted in General.