Today I decided to try out Fedora 12 (64-bit) on my SageTV Server for the fun of it. I also included Comskip and an iTunes compatible server so I can share out my music files to iTunes clients.
The code below steps through all the setup processes.
Code:
# Setup the software raid from previous install
mdadm --assemble --scan
mdadm --detail --scan >> /etc/mdadm.conf
# Disable the firewall
iptables --flush
service iptables stop
chkconfig iptables off
# Install needed files for HVR-1600 firmware, text editor, Windows file sharing, V4L Driver building, iTunes Sharing
# 32-bit libraries to run SageTV, WINE, and Comskip
yum install cx18-firmware nano samba mt-daapd mercurial kernel-devel ncurses-devel glibc.i686 zlib.i686 wine.i686 lirc gcc make
# Download latest drivers from V4L repository. Even though this is the latest kernel, there are newer fixes for the HVR-1600
hg clone http://linuxtv.org/hg/v4l-dvb
make menuconfig # Selectively build only what you need
make
rm -Rf /lib/modules/2.6.31.5-127.fc12.x86_64/kernel/drivers/media/ # I have been burned by module name changes before
make install
# Setup new services to auto start
chkconfig --add lirc
chkconfig --add smb
chkconfig --add mt-daapd
chkconfig --level 345 lirc on
chkconfig --level 345 smb on
chkconfig --level 345 mt-daapd on
# Create SageTV user to run SageTV and Comskip
useradd -d /opt/sagetv -g video -M sagetv
passwd sagetv
# Disable SELinux as it interferes with Lirc
echo SELINUX=disabled >> /etc/selinux/config
echo 0 >/selinux/enforce
Remaining steps:
- Edit /etc/samba/smb.conf
- Edit /etc/mt-daapd.conf
- Download and install Java - Sun's JRE info here: http://fedorasolved.org/browser-solutions/java-i386/
- Download and extract SageTV to /opt/sagetv
- Download and extract Comskip
- Edit /opt/sagetv/server/startsage and /opt/sagetv/server/stopsage to support using a non-root user
- Reboot!
The above has been covered elsewhere and was not part of my install as it carried over from a previous install.