Skip to content


Up on hostmonster and things seem to be going great

It took a few days to copy all of the files, mostly our pictures archive.  I use my hosting account for a backup of all of our pictures, along with a few copies on other drives at our house.

Everything seems to be working great on the new host.  I believe they will probably load up my current host as more clients come in, but so far the new host looks to be a dual quad core proc instead of the dual dual core proc I used to be on.  System load is next to nothing.  I do not seem to over use resources like I did every now and again on the old host.  Now to try to get the gallery fully built and happy.

Knowing that bluehost and hostmonster use the same resources I would have to say renewing for 3 years at hostmonster, instead of paying about the same for 1 year at bluehost was well worth the move.  Bluehost would not budge on the 7.95 a month price, but being a new customer to hostmonster I could qualify for the promotional price of 3.95 a month.  Amazing what they will do for a new customer.

Posted in General.


Switching webhost

I am in the middle of switching from Bluehost to Hostmonster.  Yes I know they are owned and operate out of the same facility.  When it came to renew my account it was going to cost me 6.95 a month for a 3 year renewal with bluehost.  So I switched to hostmonster at the 3.95 a month rate for 3 years.  They would not budge on giving me that rate for renewing at bluehost.  Hopefully hostmonster is just as good as bluehost has been.  So far so good.  I am on a 8 core machine instead of the old 4 core machine from what I can tell.  After I get everything moved and setup, I will post again.  Hopefully I am not breaking much in the move and reconfigure.

Posted in Blog Stuff.


Install and configure distcc on ubuntu

Since I will be using a few atom based frontend machines for mythtv, I wanted to start using distcc to compile mythtv.  It was actually very easy to setup and start using.  Just do the following.

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

then edit a few files.

/etc/distcc/hosts needs to have a line added with the ip’s of every host(fastest to slowest) that you want to use for compiling.

/etc/default/distcc neds to have a few changes made in order for it to run and accept connections from other hosts.

Finally when you go to make your program just use a -j 8 CC=distcc

That tells make to setup 8 jobs and use distcc.  You can change the number of jobs/files depending on how many hosts/cpu’s you have.  I still have a bunch of playing to do but 8 seems to work great for me.  Now to optimize the setup for the fastest compile for mythtv.

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

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

Posted in General.


Building a mythfrontend on ubuntu karmic and 0.22-fixes

start os install

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

make desktop user login automatically

install nvidia restricted driver

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 nvidia-180-libvdpau nvidia-180-libvdpau-dev libxxf86vm-dev xfce4

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

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CEC06767

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

aptitude update

aptitude install nvidia-190-modaliases nvidia-glx-190 nvidia-190-libvdpau-dev
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.3.0-6_x86_64.deb
sudo dpkg -i dpkg -i nxnode_3.3.0-17_x86_64.deb
sudo dpkg -i dpkg -i nxserver_3.3.0-22_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.490_all.deb

Wake on lan if supported

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

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

download mythtv 0.22-fixes from svn and compile

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

chown mythtv.mythtv /var/log/mythtv

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

/etc/init.d/mythtv-backend start

Customize desktop for mythtv

nano /usr/share/xsessions/mythtv.desktop
[Desktop Entry]
Encoding=UTF-8
Name=MythTV
Comment=Use this session to run MythTV
Exec=/usr/local/bin/mythtv.sh
Icon=
Type=Application

nano /usr/local/bin/mythtv.sh
mythfrontend&
killall irexec
irexec -d
nvidia-settings -l
mtd -d

exec openbox

chmod +x /usr/local/bin/mythtv.sh

LIRC

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

Posted in Linux, Mythtv.


Building a 0.22 (trunk) mythbackend on ubuntu Jaunty

start os install

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

make desktop user login automatically

install nvidia restricted driver

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 phpmyadmin 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 mysql-server mysql-server-5.0 mysql-server-core-5.0 ntp phonon phonon-backend-gstreamer pvm pwgen python-mysqldb qt4-qtconfig sox toolame transcode transcode-doc ttf-liberation libqt4-dev nvidia-180-libvdpau nvidia-180-libvdpau-dev libxxf86vm-dev

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

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

aptitude update
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.3.0-6_x86_64.deb
sudo dpkg -i dpkg -i nxnode_3.3.0-17_x86_64.deb
sudo dpkg -i dpkg -i nxserver_3.3.0-22_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.480_all.deb

Wake on lan if supported

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

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

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

chown mythtv.mythtv /var/log/mythtv

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

/etc/init.d/mythtv-backend start

Posted in Linux, Mythtv.


How to install nvidia 190.x or 185.x drivers on ubuntu jaunty

Add the following two lines to your /etc/apt/sources.list file

deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu jaunty main

Install the gpg key

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CEC06767

install

aptitude update

aptitude install nvidia-190-modaliases nvidia-glx-190 nvidia-190-libvdpau-dev

or

aptitude install nvidia-185-modaliases nvidia-glx-185 nvidia-185-libvdpau-dev

Posted in Linux, Mythtv.


mythtv and vdpau is truely amazing

Finally have the new nano itx motherboard running.  Ubuntu Jaunty with the latest nvidia .run installer.  Playing a 720p hd source from our qam source.  Right now cpu usage for mythfrontend is only about 19 -20%.  system load is right around .44.  Amazing that an atom based motherboard could handle playback like this.  I am going to try windows 7 media center and xbox media center on it and see how those perform also.  So far I am sold.  I may invest in another one of these.

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 28
model name      : Intel(R) Atom(TM) CPU  230   @ 1.60GHz
stepping        : 2
cpu MHz         : 1600.139
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov p                             at clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arc                             h_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm la                             hf_lm
bogomips        : 3200.27
clflush size    : 64
cache_alignment : 64
address sizes   : 32 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 28
model name      : Intel(R) Atom(TM) CPU  230   @ 1.60GHz
stepping        : 2
cpu MHz         : 1600.139
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov p                             at clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arc                             h_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm la                             hf_lm
bogomips        : 3200.01
clflush size    : 64
cache_alignment : 64
address sizes   : 32 bits physical, 48 bits virtual
power management:

Posted in Linux, Mythtv, New toys.


Ordered new motherboard

I finally ordered the rest of the parts to put together a very small and power efficient pc.  I plan to eventually put it in the living room as a mythfrontend.  It should work out great once mythtv 0.22 is released.  I have been running a test backend for a few months and it seems to be doing just great.

Next part will be a hauppauge hd-pvr.

For now I will be using the M350 for a case.  The ZOTAC IONITX-C-U Intel Atom N230 Mini ITX ION for the motherboard.  Some memory that I had from another system and the a 8 gig usb thumb drive for the operating system.  I will probably just end up pxe booting it from my masterbackend eventually.

Posted in Mythtv, New toys.


How to build .deb packages for mythtv

aptitude install autotools-dev fakeroot dh-make build-essential

Instead of running make and make install, just to a checkinstall, you can run a checkinstall –install=no if you do not want to install the package after it is made.  So in my case I have a script that makes the packages and I checkout the source and put it in a dir that is the svn version

cd ./$1/mythtv
./configure –prefix=/usr –enable-dvb –dvb-path=/usr/include –enable-xvmc –enable-opengl-vsync –enable-proc-opt –enable-libdts –enable-firewire –enable-xvmc-opengl
qmake mythtv.pro
make -j 2
checkinstall –install=no –pkgversion=0.22 –pkgrelease=$1 –pakdir ../..
cd ../..
pwd
cd ./$1/mythplugins
./configure –prefix=/usr –enable-aac –disable-mytharchive –disable-mythbrowser –disable-mythcontrols –disable-mythgame –disable-mythzoneminder
make -j 2
checkinstall –install=no –pkgversion=0.22 –pkgrelease=$1 –pakdir ../..
cd ../..
pwd
cd ./$1/myththemes
./configure –prefix=/usr
checkinstall –install=no –pkgversion=0.22 –pkgrelease=$1 –pakdir ../..
cd ../..
pwd
cd ./$1/themes
./configure –prefix=/usr
checkinstall –install=no –pkgversion=0.22 –pkgrelease=$1 –pakdir ../..

Posted in Linux, Mythtv.


Requirements to build mythtv .22(trunk) from scratch on jaunty

Dependencies:

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 mysql-server mysql-server-5.0 mysql-server-core-5.0 ntp phonon phonon-backend-gstreamer pvm pwgen python-mysqldb qt4-qtconfig sox toolame transcode transcode-doc ttf-liberation libqt4-dev nvidia-180-libvdpau nvidia-180-libvdpau-dev

Script I use to make: (command example I use, ./mktrunk.sh 21037)

In the above example 21037 is the svn revision number for trunk, but also the directory name for the source I have checked out for trunk.

cd ./$1/mythtv
./configure –prefix=/usr –enable-dvb –dvb-path=/usr/include –enable-opengl-vsync –enable-proc-opt –enable-firewire –disable-xvmcw –enable-vdpau
qmake-qt4 mythtv.pro
make -j 2

The thing that kept me from compiling from source for a very long time was the qmake line.  Make sure you use qmake-qt4 and not the old qmake command.  Also make sure you have no qt3 files installed on your building system period.

Posted in Linux, Mythtv.