NSLU2-Linux
view · edit · print · history

eMule-like client for the eD2k and Kademlia networks

First install amule optware package.

Then run (needed for creating configuration's files, there is a script in /opt/ etc/init.d that will start amule later):

 $ export HOME=/opt/share/amule

Then run amuled:

 $ amuled

The program will exit leaving /opt/share/amule/.aMule/amule.conf that must be configured.

I recommend to disable IPFiltering in /opt/share/amule/.aMule/amule.conf for saving resources.

Provide some servers from http://www.server-met.de/ as opt/share/amule/.aMule/server.met file.

Generate string for password amule with

 $ echo -n amule | md5sum | cut -d ' ' -f 1
 ef7628c92bff39c0b3532d36a617cf09

or maybe for password nslu2 with

 $ echo -n nslu2 | md5sum | cut -d ' ' -f 1
 e3e943fa08ef7db999e74dea083528a8

or for any _password_you_want_ with:

 $ echo -n _password_you_want_ | md5sum | cut -d ' ' -f 1

Save somewhere the password string you get.

Enter saved password string in amule.conf:

 [ExternalConnect]
 AcceptExternalConnections=1 
 ECAddress=
 ECPort=4712
 ECPassword=_here_paste_the_string_you_got_while_generating_password_string_
 ShowProgressBar=1

Forward three external (WAN) ports to IP of your NSLU2: TCP 4662, UDP 4672 & UDP 4665. See http://www.amule.org/wiki/index.php/Firewall to findout how to setup routers and firewalls.

Run amuled again to test the configuration:

 $ amuled

If everything is fine - restart your NSLU2. This will start amule deamon. Attention - this will reset your HOME variable.

AmuleWEB

AmuleWEB is lightweight HTTP server with PHP like command language tailored for amule scripts only. It takes little memory resources.

AmuleWEB connnect to amuled with protocol as amulecmd. To create connection you need to export HOME again (required after restarting NSLU2) and then extract config from amule.conf:

 $ export HOME=/opt/share/amule
 $ amuleweb -w

This creates opt/share/amule/.aMule/remote.conf which needs passwords to be entered. Contents should be like:

 Locale= 
 [EC]
 Host=localhost
 Port=4712
 Password=_here_paste_the_string_you_got_while_generating_password_string_
 [Webserver]
 Port=-1
 Template=php-default
 UseGzip=0
 AllowGuest=0
 AdminPassword=_here_paste_the_string_you_got_while_generating_password_string_
 GuestPassword=_here_paste_the_string_you_got_while_generating_password_string_

Then run amuleweb (still having HOME=/opt/share/amule):

 $ amuleweb

You can now connect to server with address like http://<<your NSLU2 IP>>:4711/ and you get log in screen like this:

Enter the password (not a password string) you have choosen while generating password string. After that main page shows current status:

Search is performed with the following interface:

Transfer graphing and status page:

AmuleCMD

AmuleCMD provides a commandline access to the amuled.

Just run it (having AmuleWEB configured before and having HOME=/opt/share/amule):

 $ amulecmd

You would be asked for the password you have choosen before.

Then type 'help' to list available commands.

ConfiguringAmuled

You can make amuleweb starting together with amuled. To do so:

 1. Kill amuled (run /opt/etc/init.d/S57amuled stop)
 2. Find [WebServer] section in /opt/share/amule/.aMule/amule.conf
 3. Set options like this:
 [WebServer]
 Enabled=1
 Password=_here_paste_the_string_you_got_while_generating_password_string_
 PasswordLow=
 Port=4711
 UseGzip=1
 UseLowRightsUser=0
 PageRefreshTime=120
 Template=
 4. Start amuled (run /opt/etc/init.d/S57amuled start)
 5. You can now connect to amule web server running in background with address like http://<<your NSLU2 IP>>:4711/

Using proxy:

 1. Kill amuled (run /opt/etc/init.d/S57amuled stop)
 2. Find [Proxy] section in /opt/share/amule/.aMule/amule.conf
 3. Set options like this:
 [Proxy]
 ProxyEnableProxy=1
 ProxyType=_set_proxy_type_ (see proxy types below)
 ProxyName=_put_your_proxy_address_here_
 ProxyPort=_put_your_proxy_port_here_
 ProxyEnablePassword=0
 ProxyUser=
 ProxyPassword=
 4. Important: Proxy types are:
    -1 NONE
     0 SOCS5 (it works for sure)
     1 SOCS4
     2 HTTP
     3 SOCS4a
 5. Start amuled (run /opt/etc/init.d/S57amuled start)
 6. You use proxy now. But one of above three ports is not accessible from the server so you get "Low ID".
view · edit · print · history · Last edited by Federico.
Based on work by ecipo, Trurl, fcarolo, and oleo.
Originally by oleo.
Page last modified on September 10, 2007, at 03:42 PM