ByRequest - Mediaserver for Tivos

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 03:40, 9 April 2007 by (Talk) (LS1/HG/HS (PowerPC))

Jump to: navigation, search



  1. OpenLink or FreeLink
  2. Development Tools



LS1/HG/HS (PowerPC)

I copied this from here:

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

What you need:

1) ppctools or mipstools depending upon your linkstation version from

2) LibJpeg from: www.jpegsrc.v6b.tar.gz at

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

3) ImageMagick-6.2.5-5.tar.gz from

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

4) byRequest tivo HMO server at

  • 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:

Insert non-formatted text here###########cut starting at the following line

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



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

  1. Start daemons.

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

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

  1. 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

LS2 (MIPSel)


Link.png This article is currently a stub. You can help this Wiki by expanding it

. This template will categorize articles that include it into Category:Stubs.