User Tools

Site Tools


hardware:fritzbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hardware:fritzbox [2010/11/19 17:36] Michele Porellihardware:fritzbox [2012/09/04 16:18] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Fritz!Box 7270 ====== ====== Fritz!Box 7270 ======
 ===== Software ===== ===== Software =====
-  * mt-daapd +==== mt-daapd ==== 
-  * MLDonkey +  - Download {{:hardware:mt-daapd-fritzbox.tgz|this package}} 
-  * Debian+  - put it in your external storage attached to your fritzbox 
 +  - extract it 
 +  - edit mt-daapd.conf 
 +  - make a startup script like the following: 
 +<code>#! /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>&
 +    echo "." 
 +    ;; 
 + 
 +  restart) 
 +    set +e 
 +    echo -n "Restarting DAAP daemon: mt-daap" 
 +    killall $DAEMON >/dev/null 2>&
 +    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</code> 
 +==== MLDonkey ==== 
 +  - Download {{:hardware:mldonkey-fritz.tgz|this package}} 
 +  - put it in your external storage attached to your fritzbox 
 +  - extract it 
 +  - make a startup script like the following: 
 +<code>#! /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>&
 +    rm $OPTDIR/home/.mldonkey/*.pid 
 +    echo "." 
 +    ;; 
 + 
 +  restart) 
 +    set +e 
 +    echo -n "Restarting MLDonkey daemon: mlnet" 
 +    killall $DAEMON >/dev/null 2>&
 +    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</code> 
 + 
 +=== 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 [[http://mldonkey.sourceforge.net/Gui|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 ===== ===== Tips =====
   * [[http://forum.xda-developers.com/showthread.php?t=775248|VPNC (Linux workstation, Android, iPhone, ...) and FritzBox]] - IPSec native VPN   * [[http://forum.xda-developers.com/showthread.php?t=775248|VPNC (Linux workstation, Android, iPhone, ...) and FritzBox]] - IPSec native VPN
 ===== Links ===== ===== Links =====
   * [[http://trac.freetz.org/wiki/WikiStart.en|Freetz]] - Freetz is a firmware-extension (modification) for the AVM Fritz!Box and devices with identical hardware ([[http://www.ip-phone-forum.de/forumdisplay.php?f=525|forum]])   * [[http://trac.freetz.org/wiki/WikiStart.en|Freetz]] - Freetz is a firmware-extension (modification) for the AVM Fritz!Box and devices with identical hardware ([[http://www.ip-phone-forum.de/forumdisplay.php?f=525|forum]])
hardware/fritzbox.1290184608.txt · Last modified: 2012/09/04 16:08 (external edit)