#!/bin/sh
### BEGIN INIT INFO
# Provides: minidlna
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: mymedia server
# Description: mymedia media server.
### END INIT INFO
# Do NOT "set -e"
# PATH should only include /usr/* if it runs after the mountnfs.sh script
DESC="MyMedia media server"
MEDIAPATH=/var/media
DAEMONPATH=/usr/local/bin/mymedia/server
DAEMON=$DAEMONPATH/mymedia.py
SCRIPTNAME=/etc/init.d/mymedia
SCREENNAME=mymedia
USER=bblackmoor
GROUP=media
EXECUSER=root
EXECGROUP=media
case "$1" in
start)
chown -R $EXECUSER:$EXECGROUP $DAEMONPATH
chown -R $USER:$GROUP $MEDIAPATH
su - $USER -c "cd $DAEMONPATH; screen -dm -S $SCREENNAME python $DAEMON"
;;
stop)
su - $USER -c "screen -S $SCREENNAME -X quit"
;;
status)
su - $USER -c "screen -list | grep $SCREENNAME"
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|status}" >&2
exit 3
;;
esac
:
"renojim" wrote:
No, completely different beast. If you're really interested in the original My Media, you might want to start from the first post in this thread to see what it takes to install the server. el.wubo is no longer involved and I'm not sure how much of the installation procedure is still relevant, but if you really, really want to try it, I can probably help out.
-JT
"renojim" wrote:
What sort of computer or NAS are you wanting to use as your server? As a first step, you need to install Python on your server. Version 2.7.9 is what I'm using. Version 3 won't work.
You should know that how things are presented within the UI are entirely dependent on how you have them organized (in folders/directories). If you're the kind of person that likes to put everything in one directory that's exactly how they'll be presented and this probably isn't for you.
-JT
"renojim" wrote:
Follow the instructions given in the first post of this thread. They will ultimately lead you to this: http://netguy204.github.io/roku_media_server/developers_preview.html
There's more instructions there, but that's where you'll find the link to the code (server and client) given here again: https://github.com/netguy204/roku_media_server/zipball/channel
Ignore the part about installing the client using developer mode (unless you're really interested). The client code in that download is probably out of date. I'll give you a channel you can install when I figure out which one is best (I have a few variations from my experiments over the years).
Once you get the Python server stuff installed, you can run a simple test from a browser to see if it's working without having to install anything on your Roku yet. Installing the server is the hard part. Unzip the code to wherever you like. There's a "springboard" utility that may be of some help with configuring the directories of your media and launching the server. The instructions say to use Python 2.6, but I've used 2.6 and 2.7, so either should be fine.
If you make it this far, on your server machine you should be able to browse to http://localhost:8001/feed and see a simple listing of your media. From a computer different than your server you should be able to browse to http://<ip addr of server>:8001/feed (e.g., http://192.168.1.10:8001/feed).
Good luck!
-JT