Installing Mythtv on Fedora 4

From MattWiki
Jump to: navigation, search

Mythtv Install on Fedora 4 This is the Install Log for mythtv.mattrude.com built on 29-March-2006

Intel Pentium 4 3.0 Ghz
Intel D945GNT Desktop Mainboard
1 GB DDR2 Ram
Hauppauge PVR-350 1 TV Tuner & Out
Hauppauge PVR-500 2 TV Tuners
Seagate 80GB Hard Drive
Western Digital 400GB Hard Drive
Fedora Core 4
Mythtv 0.19
ivtv Video Card Drivers
lirc Remote Control Software
Mysql Database Server
Apache Web Server

Setup Drivers & Repos

  • Download ATrpms and Freshrpms repos

Logged in as root and run

cd /etc/yum.repos.d/
wget http://wilsonet.com/mythtv/atrpms.repo
wget http://wilsonet.com/mythtv/freshrpms.repo

(vi all the other .repo files and change pgp=0)

Update system

  • update via yum

As root run

yum -y update
  • Reboot system

As root run

reboot
  • update systems once more

As root run

yum -y update

SSH Setup

  • Generate Keys

Logged in as matt

ssh-keygen -t rsa
  • Populate the other servers
cd
cd .ssh
cp id_rsa.pub `hostname -s`.pub
scp `hostname -s`.pub samantha:.ssh

now log into to samantha

ssh samantha

it will as for a password

cd .ssh
mythtv.pub is the hostname from before
cat mythtv.pub >> authorized_keys2
updatessh
exit

Install mythtv software via yum

As root run.

yum -y install mythtv-suite

Install ivtv Software

  • Install ivtv
yum -y install ivtv-firmware
yum -y install ivtv-kmdl-`uname -r`.`uname -m`
yum -y install ivtvdev
Add “vga=791”  to the end of all the vmlinuz lines in /etc/grub.conf
Add “alias char-major-61 lirc_i2c” to the top and box to the bottom of /etc/modprobe.conf
  • ivtv modules setup
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias tveeprom tveeprom-ivtv
install ivtv /sbin/modprobe --ignore-install ivtv; /sbin/modprobe ivtv-fb
install lirc_i2c /sbin/modprobe ivtv; /sbin/modprobe -ignore-install lirc_i2c 
  • Now try loading up the ivtv driver
/sbin/depmod -a
/sbin/modprobe ivtv
  • Got a problem with the modprobe ivtv

Trying “echo 16384 > /proc/sys/vm/min_free_kbytes” Rebooted That worked, Life goes on.

Confgure X11 software

  • backup files before you play

as root run

cd /etc/X11

cp xorg.conf_for_the_PVR-350 xorg.LCD

vim xorg.TV

Grab xorg.conf_for_the_PVR-350] from here

Now you cp xorg.TV into xorg.conf for the TV to display video

Install Remote Control Software

  • Get and install IR
yum -y install lirc-kmdl-`uname -r`.`uname -m`
yum -y install lirc
mkdir /home/mythtv/.mythtv
wget http://wilsonet.com/mythtv/lircrc-haupgrey-g3.txt
mv lircd-haupgrey-g3.conf.txt ~/.mythtv/lircrc
/sbin/depmod -a
/sbin/modprobe lirc_i2c 
/sbin/chkconfig lircd on
/sbin/service lircd start

Start /usr/bin/irw and point the remote and see what happens

  • If irw exits after staring it then try
touch /var/lock/subsys/local
ln -s /dev/lirc0 /dev/lirc
/sbin/depmod -a 
/sbin/modprobe ivtv 
/sbin/depmod -a 
/sbin/modprobe lirc_i2c

Setup the lircrc convert file

vim /home/matt/.mythtv/lircrc Copy Paste this into the lircrc file Then Restart Lircd

/sbin/service lircd restart

Mythpowerbutton

as mythtv run

vim /usr/local/bin/mythpowerbutton.sh

Copy & Paste the box into the file

#!/bin/bash
PROG=mythfrontend
STATUS=`ps -e | grep $PROG | grep -v grep | wc -l | awk '{print $1}'`

if [ `echo $DISPLAY | grep -c ":0"` -ge 1 ]
then
    if [ $STATUS -eq 0 ]
    then
        ( $PROG & )
    else
        killall $PROG
    fi
fi
exit 0

Mythsetup

vim /usr/local/bin/mythsetup.sh

Copy & Paste the box into the file

#!/bin/bash
PROG1=mythfrontend
PROG2=mythtv-setup
STATUS1=`ps -e | grep $PROG1 | grep -v grep | wc -l | awk '{print $1}'`
STATUS2=`ps -e | grep $PROG2 | grep -v grep | wc -l | awk '{print $1}'`

if [ `echo $DISPLAY | grep -c ":0"` -ge 1 ]
then
    if [ $STATUS1 -eq 0 ]
    then
        killall $PROG2
        `/sbin/service mythbackend start`
        ( $PROG1 & )
    else
        killall $PROG1
        `/sbin/service mythbackend stop`
        ( $PROG2 & )
    fi
fi
exit 0

  • Configure Mythpowerbutton & Mythsetup
chmod +x *

Setting up Mysql

/sbin/chkconfig mysqld on
/sbin/service mysqld start
mysql -u root < /usr/share/doc/mythtv-0.19/database/mc.sql

Starting Mythtv setup

mythtv-setup