First install the prerequisites. Install the RPM Fusion apps in the hda control panel. Im unsure if you need them but they cant hurt you to install.
This is all i had to install i use the express-CD.
Code: Select all
yum -y install ffmpeg
yum -y install ffmpeg-libs
yum -y install python-imaging
yum -y install git-core
Code: Select all
cd /usr/share
git clone git://github.com/wmcbrine/pytivo.git
Code: Select all
cd /usr/share/pytivo
$ cp pyTivo.conf.dist pyTivo.conf
Code: Select all
vi /usr/share/pytivo/pyTivo.conf
Code: Select all
[Server]
port = 9032
ffmpeg = /usr/bin/ffmpeg
[Movies]
type = video
path = /var/hda/files/movies
[Music]
type = music
path = /var/hda/files/music
[Pictures]
type = photo
path = /var/hda/files/pictures
[_tivo_SD]
height = 1080
video_fps = 29.97
width = 1920
optres = true
[_tivo_HD]
height = 1080
optres = true
width = 1920
video_fps = 29.97
Code: Select all
python /usr/share/pytivo/pyTivo.py
Code: Select all
vi /etc/init.d/pytivo
Code: Select all
#!/bin/bash
#
# pyTivo Startup script for the pyTivo Pylons app
#
# chkconfig: - 90 15
# description: pyTivo is a Pylons-based web application.
# Source Red Hat function library.
. /etc/rc.d/init.d/functions
# chkconfig: 2345 99 05
# description: pyTivo server
### INIT INFO
# Provides: pytivo
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-description: pyTivo server
# Description: Start and stop the pyTivo server.
### END INIT INFO
RETVAL=0
start() {
echo -n ""Starting pyTivo: ""
pgrep -f pyTivo.py
RETVAL=$?
[ $RETVAL -eq 0 ] && echo ""pyTivo already running: Exiting"" && exit 1
# this call actually starts pyTivo.
python /usr/share/pytivo/pyTivo.py > /dev/null 2>&1 &
RETVAL=$?
[ $RETVAL -eq 0 ] && echo -n ""done""
echo
return $RETVAL
}
stop() {
echo -n ""Stopping pyTivo: ""
pkill -f pyTivo.py
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && echo -n ""done""
echo
return $RETVAL
}
# See how we were called.
case ""$1"" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
sleep 1
start
RETVAL=$?
;;
*)
echo ""Usage: $0 {start|stop|restart}""
exit 1
esac
exit $RETVAL
Code: Select all
service pytivo start
Code: Select all
hda:9032
in the /var/hda/web-apps/pytivo/html/
make new index.html with this
Code: Select all
<html>
<head><meta http-equiv="refresh" content="1;url=http://hda:9032"></head>
</html>
Also i dont know how to make the daemon auto start on bootup if anyone knows please let me know Thanks.