Fritz!Box 7270

Software

mt-daapd

  1. Download this package
  2. put it in your external storage attached to your fritzbox
  3. extract it
  4. edit mt-daapd.conf
  5. make a startup script like the following:
#! /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

MLDonkey

  1. Download this package
  2. put it in your external storage attached to your fritzbox
  3. extract it
  4. make a startup script like the following:
#! /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

Configuring the core for remote access

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)

Setup a GUI on your machine

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

Configure MLDonkey

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

F.A.Q.

  • Q: Where are my files??
    • A: Files downloaded was in $OPTDIR/home/.mldonkey/incoming
  • Q: I can't see .mldonkey folder
    • A: :) change your file manager settings to show hidden files/folder
  • Q: I've problem with some torrents
    • A: Unfortunately MLDonkey isn't a 100% bit torrent compatible client and some client ban you. To solve this problem change BT-user_agent. (If the value is BitTorrent/4.20.9 or something of similar you don't need to change anything)
  • Q: When I try to transfer files to/from my FritzBox it works but very slowly
    • A: MLDonkey use a lot of resource, the only thing that you can do is stop MLDonkey or other processes when you would transfer files

Debian

Please follow one of the million guide about debootstrap, I'll update this howto ASAP

Tips

  • Freetz - Freetz is a firmware-extension (modification) for the AVM Fritz!Box and devices with identical hardware (forum)
Navigation
Print/export
QR Code
QR Code Fritz!Box 7270 (generated for current page)