#! /bin/sh
## start and stop the DAAP daemon
## import global paths
. /var/media/ftp/uStor00/config #ROOT variable was here
OPTDIR=$ROOT/opt/mt-daapd
DAEMON=$OPTDIR/mt-daapd
DAAPD_OPTS=""
DAAPD_CONFIG_FILE=$OPTDIR/config/mt-daapd.conf
case "$1" in
start)
echo -n "Starting DAAP daemon: mt-daap"
if [ ! -s "$DAAPD_CONFIG_FILE" ]; then
echo " missing or empty config file $DAAPD_CONFIG_FILE"
exit 1
fi
ROOT="$OPTDIR" HOME="$OPTDIR/home" $DAEMON -c "$DAAPD_CONFIG_FILE" $DAAPD_OPTS
echo "."
;;
stop)
echo -n "Stopping DAAP daemon: mt-daap"
killall $DAEMON >/dev/null 2>&1
echo "."
;;
restart)
set +e
echo -n "Restarting DAAP daemon: mt-daap"
killall $DAEMON >/dev/null 2>&1
sleep 2
ROOT="$OPTDIR" HOME="$OPTDIR/home" $DAEMON -c "$DAAPD_CONFIG_FILE" $DAAPD_OPTS
echo "."
;;
*)
echo "Usage: YourROOT/etc/init.d/mt-daap {start|stop|restart}"
exit 1
esac
exit 0
#! /bin/sh
## start and stop the MLDonkey daemon
## import global paths
. /var/media/ftp/uStor00/config #ROOT variable was here
echo Imported global path...
OPTDIR=$ROOT/opt/mldonkey
DAEMON=$OPTDIR/mlnet
case "$1" in
start)
LD_LIBRARY_PATH=$OPTDIR/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
echo -n "Starting MLDonkey daemon: mlnet"
rm $OPTDIR/home/.mldonkey/*.pid
ROOT="$OPTDIR" HOME="$OPTDIR/home" $DAEMON
echo "."
;;
stop)
echo -n "Stopping MLDonkey daemon: mlnet"
killall $DAEMON >/dev/null 2>&1
rm $OPTDIR/home/.mldonkey/*.pid
echo "."
;;
restart)
set +e
echo -n "Restarting MLDonkey daemon: mlnet"
killall $DAEMON >/dev/null 2>&1
rm $OPTDIR/home/.mldonkey/*.pid
sleep 2
ROOT="$OPTDIR" HOME="$OPTDIR/home" $DAEMON
echo "."
;;
*)
echo "Usage: YourROOT/init.d/mldonkey {start|stop|restart}"
exit 1
esac
exit 0
1) Login with telnet (or ssh) as root user in your FritzBox
2) Go in mldonkey's folder ($OPTDIR is just for reference, you should enter the absolute path of mldonkey folder):
'' # cd $OPTDIR/mldonkey''
3) Open a telnet session to the core:
'' # /bin/busybox telnet localhost 4000 (remember we are still on FritzBox)''
4) For security reason I advise to assign a password to the default mldonkey user (which is “admin”):
'' > useradd admin <new pass> (this will assign a password to the default mldonkey user)''
5) Ok, now we need to authenticate:
'' > auth admin <pass> (where “<pass>” is the password chosen above)''
6) Now we can add the IPs (we are almost done!) (here you must add the IP of yours computers):
'' > set allowed_ips “127.0.0.1 nnn.nnn.nnn.nnn-mmm.mmm.mmm.mmm” where “nnn…” and “mmm…” is a IP-range or a single IP. (Look this http://mldonkey.sourceforge.net/Allowed_ips)''
7) Close the telnet session and logout from the machine:
'' > q to close the telnet session, logout for logging out (repeat until completely logged out from the remote computer)''
Personally I use sancho but here you can see all GUIs for MLDonkey
This step is very simple:
Core's Ip is the Ip of your FritzBox
User is admin
Password is the word that you have selected in the last steps
The other things is not important
1) Go in the preferences and change mldonkey networks ports (if you are using sancho you can simply go in 'All' and set as filter 'port', don't change gift, gui, http, smtp and telnet) and everything you would
2) NAT these port on your router and/or firewall
Please follow one of the million guide about debootstrap, I'll update this howto ASAP