ByRequest - Mediaserver for Tivos

=About=

=Prerequisites=
 * 1) OpenLink or FreeLink
 * 2) Development Tools

=Installation=

LS1/HG/HS (PowerPC)
I copied this from here: http://www.tivocommunity.com/tivo-vb/archive/index.php/t-280030.html

Warning: you need some basic linux skills and command line access to your linkstation before you begin. For instructions on command line or telnet access to your linkstation see linkstationwiki.org.

What you need:

1) ppctools or mipstools depending upon your linkstation version from LinkStationwiki.org

2) LibJpeg from: www.jpegsrc.v6b.tar.gz at http://ijg.org/files


 * do the ususal ./configure; make; make install.
 * You must also make install-lib

3) ImageMagick-6.2.5-5.tar.gz from http://www.imagemagick.org/script/download.php


 * again, do the usual ./configure; make; make install.

4) byRequest tivo HMO server at http://sourceforge.net/projects/byrequest


 * edit the Makefile to set DESTDIR to the location where you want the media server installed. I recommend /usr/local/bin
 * do make; make install
 * copy byRequest.conf to /etc; edit the image: and audio: lines to the locations where you store your files. Note: your shares are subfolders of the /mnt folder. I recommend commenting out the virtual: line as the virtual audio folders (for artist, album and title) run very very slow on the Linkstation.
 * start the server with

/usr/local/bin/byRequest /etc/byRequest.conf -preload


 * You should set up a script in init.d to start/stop the byRequest daemon and the appropriate symlinks in /rc.d/rc2.d (start) and rc0.d and rc6.d (both stop or kill) in order to start the daemon when the Linkstation restarts.

You'll also need to make it into an executable with the following command: chmod +x /etc/init.d/byRequest

Now you'll need to set up the symlinks:

cd /etc/rc.d/rc2.d ln -s ../init.d/byRequest S93byRequest

cd /etc/rc.d/rc0.d ln -s ../init.d/byRequest K15byRequest

cd /etc/rc.d/rc6.d ln -s ../init.d/byRequest K15byRequest

Just in case the attachment didn't work here's the script:


 * 1) !/bin/bash
 * 2) byRequest This shell script takes care of starting and stopping
 * 3) the byRequest TiVo Media Server.
 * 1) the byRequest TiVo Media Server.

PROG=/usr/local/bin/byRequest

RETVAL=0

start { [ -x $PROG ] || exit 0

echo -n $"Starting byRequest TiVo Media Server: " $PROG /etc/byRequest.conf -preload RETVAL=$? echo return $RETVAL }
 * 1) Start daemons.

stop { echo -n $"Shutting down byRequest TiVo Media Server " /sbin/start-stop-daemon --stop --quiet --exec $PROG RETVAL=$? echo return $RETVAL }

case "$1" in start) start stop) stop restart|reload) stop sleep 1 start RETVAL=$? echo $"Usage: $0 {start|stop|restart}" exit 1 esac
 * 1) See how we were called.

exit $RETVAL