Skip to content


Installing mythtv on ubuntu edgy

Make changes to your sources.list file

deb http://archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://home.eng.iastate.edu/~superm1 edgy all
deb-src http://home.eng.iastate.edu/~superm1 edgy all
deb http://dl.ivtvdriver.org/ubuntu edgy firmware

wget http://home.eng.iastate.edu/~superm1/80DF6D58.gpg -O- | sudo apt-key add –
wget http://dl.ivtvdriver.org/ubuntu/80DF6D58.gpg -O- | sudo apt-key add –

ntpdate ntp.ubuntu.com
apt-get install openssh-server portmap nfs-common xfsprogs ntp-simple lm-sensors snmpd smartmontools mutt postfix
sensors-detect
NFS
nano /etc/fstab 192.168.1.7:/offline /offline nfs rsize=8192,wsize=8192,timeo=14,intr
mkdir /offline
mount -a

cp /offline/archive/common/snmpd.conf /etc/snmp
nano /etc/default/snmp and remove 127.0.0.1
cp /offline/archive/common/smartd.conf /etc/smartd.conf
nano /etc/default/smartmontools
start_smartd=yes
/etc/init.d/smartmontools restart

NVIDIA
apt-get install nvidia-glx linux-restricted-modules-generic
nvidia-xconfig

IVTV
apt-get install ivtv-source devscripts ivtv-utils module-assistant mplayer
apt-get install ivtv-firmware
m-a update,prepare
m-a a-i ivtv
depmod -a
modprobe ivtv
sh -c ‘echo ivtv >>/etc/modules’

LIRC
apt-get install lirc lirc-modules-source module-assistant
dpkg-reconfigure lirc-modules-source
do not build modules when asked
nano /etc/lirc/hardware.conf make sure you have a line with MODULES=”lirc_mceusb2″
m-a update,prepare
rm /usr/src/lirc*deb
m-a clean lirc
m-a a-i lirc
depmod -a
cp /offline/dvr/m1box/lircd.conf /etc/lirc
cp /offline/dvr/m1box/lircrc /home/desktop/.mythtv
ln -s /home/desktop/.mythtv/lircrc /home/desktop/.lircrc

DVB
cp /offline/files/dvb-fe-nxt2004.fw /lib/firmware
modprobe saa7134-dvb
add blacklist saa7134 to /etc/modprobe.d/blacklist
add saa7134-dvb to /etc/modules

FIREWIRE
apt-get install build-essential libraw1394-dev libiec61883-dev wget

Install Mythtv
apt-get install mythtv-frontend gdm ubuntu-artwork xterm openbox gnome-screensaver xserver-xorg gsfonts-x11 xfonts-100dpi xfonts-75dpi msttcorefonts xfonts-base mysql-server mythtv-backend mythtv-database usplash-theme-ubuntu
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
gnome-screensaver
mythfrontend&
killall irexec
irexec -d
nvidia-settings -l
mtd -d

exec openbox

chmod +x /usr/local/bin/mythtv.sh
usermod -a -G mythtv desktop
nano /etc/mysql/my.cnf
comment out bind-address= 127.0.0.1
/etc/init.d/mysql restart
apt-get install apache2
apt-get install phpmyadmin
apt-get install libapache2-mod-php5 php4-mysql mythweb

FREENX
http://www.nomachine.com/download-pa…php?Prod_Id=27
http://www.nomachine.com/download-pa…php?Prod_Id=33
http://www.nomachine.com/download-package.php?Prod_Id=3

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

MYTHWEB
cp -R /offline/dvr/source/svnhead/mythplugins/mythweb /var/www/
nano /var/www/mythweb/mythweb.conf.apache
mv /var/www/mythweb/mythweb.conf.apache /etc/apache2/conf.d/mythweb.conf
nano /etc/php4/apache2/php.ini uncomment the mysql line
nano /etc/php5/apache2/php.ini uncomment the mysql line
/etc/init.d/apache2 restart
chmod 777 /usr/share/mythtv/mythweb/data/tv_icons
chown www-data.www-data data/

Posted in Linux, Mythtv.


Old to New hardware plan

Old: New:

  1. Intel 1 gig(2003 server) –> test box
  2. 1700xp (linux server) –> 2003 server in antec small black case
  3. 3500 (mythdora) –> abit kn9 ultra with x2 3800 (linux server) in antec large grey case
  4. x2 4600 –> abit nf-m2s with x2 4600 (frontend downstairs) in antec sonata II case
  5. x2 3800 –> asus m2npv-vm with amd 3500 (fronend upstairs) in antec nsk-2400 case

Posted in Lists.


Last box for awhile

Today I purchased another motherboard, processor, memory and an external usb 5.25 case. This will be the last of the computer hardware that I get. This will give me updated hardware for a pretty nice mythtv setup at home and also a bit faster box for my linux server that does a bit more than just being a myth master backend. Now to figure out if I want to put the new amd athlon 64 x2 3800 in the server or in the box I plan to put in the bedroom to replace a replay box.

Parts I purchased.

I already have 512 meg of memory so the new box will have a total of 1 gig just like the other 2 new boxes.

I will plan on moving the athlon xp 1700+ to be the 2003 box. I will get rid of all of my intel boxes after this move. I have gone a bit wild on the pc parts purchasing lately but this is it for a long time. I always do this. Get a bunch all at the same time. I need to learn how to space purchases out like this.

Posted in New toys.


Coax cable finally run into the attic

Over the weekend my brother-in-law came over to play some ping pong but also to help run a coax cable from the utility room up to the attic.  Took awhile to get setup and figure out the best way to run a cable.  We quickly found out that it was going to be close to impossible to run it down the wall that all of the other cables were run when the house was built.  So we moved on to how to run it outside but out of sight.  We found an easy way to run it out of the attic down a corner peice of the siding and into the same hole the cable from charter and the cat5 cable were run into the house(still have to fill the hole so rain can’t get in).  So now the cable it hooked up in the basement and I am testing to see what I can get with it and a cheap antenna I had.  It is a powered antenna but does not seem to get all channels I would have hoped.  All channels are there and coming in, just 2 of them are weak enough right now that they will probably have problems later.  I am in the process of moving the antenna around in the attic to see if I can get a better signal.  If not I may go out and get a bigger antenna from radioshack.  Probably won’t do that for a few weeks though.  I will see what I can get working with this first.

Posted in Home Stuff.


Installing and configuring rsyncd on fedora core 6

yum -y install xinetd rsync

Create a file: “/etc/rsyncd.conf“, with the contents:

  max connections = 2
  log file = /var/log/rsync.log
  timeout = 300

  [share]
  	comment = Random things available for download
  	path = /share
  	read only = yes
  	list = yes
  	uid = nobody
  	gid = nobody
  	auth users = pub
  	secrets file = /etc/rsyncd.secrets

Create a file: “/etc/rsyncd.secrets“, with the contents:

  username:password

The file MUST be owned by only root, and readable by only root (chmod 600 /etc/rsyncd.secrets).

edit /etc/xinetd.d/rsync

It should look like this.

  service rsync
  {
  	disable         = no
  	socket_type     = stream
  	wait            = no
  	user            = root
  	server          = /usr/bin/rsync
  	server_args     = --daemon
  	log_on_failure  += USERID
  }

Make sure you have rsync 873/tcp in your /etc/services file

chkconfig xinetd on

service xinetd restart

you should be all set.

Posted in Linux.


Install Avermedia A180 on Fedora Core 6

yum install kernel-doc-`uname -r`
cd /usr/share/doc/kernel-doc-2.6.19/Documentation/dvb/
chmod +x get_dvb_firmware
./get_dvb_firmware nxt2004
cp dvb-fe-nxt2004.fw  /usr/lib/hotplug/firmware or /lib/firmware
modprobe saa7134-dvb
add blacklist saa7134 to /etc/modprobe.d/blacklist
add saa7134-dvb to /etc/modules

Posted in Linux, Mythtv.


Installing NUT on fedora core 6

I have been looking around for a good program to use to shutdown my myth boxes if power is lost. I first was turned on to apcupsd. Since I have apc’s this will work great. But then I found NUT. This will support apc’s but almost any other ups also. I figured, if it does at least everything apcupsd can do and more, why not use it.

After not being able to find much at all about nut and fedora, I started stumbling around and figure it out for the most part. I have a simple one ups, one box setup right now. Eventually I will setup a few slaves that will turn off from the master if problems happen. They are all on the same apc 1000 right now. Eventually when I get new batteries for my apc 700rm, I will put some things back on the 700.

start out by installing all the packages

yum install nut nut-client nut-cgi

From there I went through the install docs and really like this page for a smartups or this page for a backup ups pro.

Each config will be different I am sure but this should get you to the point of having to figure out what ups you are using and what cable to use and how to connect. Pretty easy after you have that info.

Posted in Linux.


New box is up and running

The amd athlon 64 x2 4600 was waiting for me at home last night.  I finally got around to putting it in the box and powering the box up about 9pm last night.  Got fedora core 6 loaded and started downloading updates.  Updates were coming down very fast thanks to my cable modem getting a new config and now I have 5meg down 512kb up.  Very nice.  Let updates apply and turned it off about 10:30pm.  Will continue working on it tonight.  This is the first linux box I have had two cores on.  Was fun watching top looking at what each core was doing during the updates.  This makes me want to spend the 109 dollars on a amd athlon 64 x2 3800 for my other box.  Then I could put that 3500 into something when I feel like upgrading my last box.  I am almost to the point of just getting rid of all of my intel stuff.  Just have two motherboards and processors left.  One I am not using at all.  Just sitting there.  The other is my 2003 box.  Not sure if I am going to make a virtual machine out of that or what yet.  So this weekend should be a good one if all goes well.

Posted in New toys.


I actually made some progress last night

Good and bad that is. I finally am able to use my athlon xp 1700+ as a mythbackend. It is running fc6 and mythtv .21 installed from the bleeding repo from atrpms. Working great. Once I get the processor for the new box I will set that box up as a fc6 box slave backend with frontend also. Point it to the 1700 and see how it does. I am hoping the 1700 has enough horsepower to handle, I am sure it does, just have a few other things running on it also. Right now I am recording shows to a mirrored 300 gig array on a 3ware card. I think it will be just fine. Will test this weekend and if all works good, I will move everything off of the current frontend backend setup to the new 1700 and then move the new frontend out into the livingroom and then start to rebuild the 3500 frontend/backend I am currently using. That will probably end up being a frontend/slavebackend that I may put up in the bedroom. If that does not work out I will probably build it up as the master backend and replace the 1700. Then move the 1700 over to be the 2003 box. Going to have to do some playing. I hope to have all backend/servers on gigabit shortly. Frontends dont’ really need to be gigabit but if I have extra ports I will put them on gig also. I now have 2 motherboards that have it built in and one gig card for the 1700. It has been a long time but I am finally getting my hardware updated. My 2003 box is on it’s last leg I think. I am going to have to get a new chipset fan for it or just replace. It has been running non-stop for over 5 years now. Doing very well also.

I just ordered two new batteries for my APC smart-ups 700rm. Saw earlier this week that it looks like the batteries are bad on it. Have not gotten around to hooking it up to apcupsd on the 1700 to see what is going on. I have a 1000 also. I think I am going to have to redo that rack there and clean things up a bit.

The problem I ran into last night was my own fault.  I had been testing different versions of mythtv in different configs on the 1700.  Well I have been pretty good about changing the mysql.txt file to the correct ip of the masterbackend when testing.  Well last night I forgot to change the ip back to the 1700 when I was playing around.  I started up the frontend on the 1700 and it started to update the schema on my production mythbackend.  Ouch.  So I went in to check my sql backup of that box.  It was good.  I got it ready to restore.  I went ahead and ran my backup script to get a backup of the messed up database just in case.  That is where it went wrong.  It found the sql file I was going to use and rotated it.  Man, that sucks.  So now I lost a good backup.  Good thing I had partial backups of what I needed.  I believe I have it back to what I need.  Worst case, I lost tables for current shows for commercials and what not.  I think I can fix that in a pinch if I need to.  No big deal.  Just latest prison break and 24 that I have not watched.  I think I have both on a replay, just not hd.

Posted in Mythtv.


Hardware on it’s way

Well I finally made a decision motherboard and processor.  The motherboard I wanted was out of stock at my two normal places, mwave and newegg.  I was thinking about getting my second choice.  Nope, not what I really wanted.  I was able to find the abit motherboard in stock at buy.com and I was able to finally use google checkout so I got 10 bucks off on the motherboard.  I went with the amd athlon 64 x2 4600 from newegg.  Both items should be here this week.  That means a fun weekend of figuring out what I want to put on what box and everything.  Hope to have a plan in place and hardware working by end of the weekend.

Posted in Mythtv, New toys.