Difference between revisions of "ByRequest - Mediaserver for Tivos"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m
 
(9 intermediate revisions by one user not shown)
Line 13: Line 13:
 
===[[PowerPC_LinkStation_overview|LS1]]/[[Information/HGOverview|HG]]/[[HS|HS]] ([[w:PowerPC|PowerPC]])===
 
===[[PowerPC_LinkStation_overview|LS1]]/[[Information/HGOverview|HG]]/[[HS|HS]] ([[w:PowerPC|PowerPC]])===
  
===[[Information/MIPSelOverview|LS2]] ([[w:MIPS_architecture|MIPSel]])===
 
  
 +
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.
  
==[[FreeLink|FreeLink]]==
+
What you need:
  
 +
1) ppctools or mipstools depending upon your linkstation version from LinkStationwiki.org
  
{{Stubs}}
+
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:
 +
 
 +
<pre>
 +
 
 +
#!/bin/bash
 +
#
 +
# byRequest This shell script takes care of starting and stopping
 +
# the byRequest TiVo Media Server.
 +
 
 +
PROG=/usr/local/bin/byRequest
 +
 
 +
RETVAL=0
 +
 
 +
start() {
 +
[ -x $PROG ] || exit 0
 +
 
 +
# 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
 +
}
 +
 
 +
# 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
 +
</pre>

Latest revision as of 04:32, 24 April 2007


Contents

About

Prerequisites

  1. OpenLink or FreeLink
  2. Development Tools

Installation

OpenLink

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:


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

PROG=/usr/local/bin/byRequest

RETVAL=0

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

# 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
}

# 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