After some big help from the guys of aMule forum this is what you have to do in order to run aMule in a Sarge machine.
Download and unpack wxWidgets and aMule
$ wget
http://prdownloads.sourceforge.net/w...-2.8.10.tar.gz
$ wget
http://download.berlios.de/amule/aMule-2.2.6.tar.bz2
$ tar xvzf wxGTK-2.8.10.tar.gz
$ tar xvjf aMule-2.2.6.tar.bz2
As we won't be using GUI with aMule, we compile wxWidgets without GUI dependencies
$ ./configure --disable-gui --enable-unicode --without-subdirs --without-expat
$ make
as root
# make install
# ldconfig
and then we compile aMule
$ ./configure --disable-monolithic --with-toolkit=base --enable-amule-daemon --enable-amulecmd --enable-webserver
$ make
as root
# make install
If, at some point, we get this error
checking for crypto++ version >= 5.1... configure: error:
Could not find cryptopp header file "cryptlib.h".
Please check if the path "/usr" is valid.
we just have to install libcrypto++-dev with aptitude
If we get this error when executing amuled
/usr/local/bin$ amuled --ec-config
amuled: error while loading shared libraries: libwx_baseu_net-2.8.so.0: cannot open shared object file: No such file or directory
we need to do
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/usr/local/lib"
or add the line /usr/lib to the file /etc/ld.so.conf and then run ldconfig
In order to run amuled as a service we need to make an script and place it in /etc/init.d/ and set it to run at start up with
update-rc.d amule defaults
This is my amuled script
Code:
#!/bin/bash
NAME=$(basename "$0")
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/bin/amuled
DESC=amuled
USER=paquito #A user who already ran amule once to configure it.
test -x "$DAEMON" || exit 0
case "$1" in
start)
echo -n "Starting $DESC: "
su "$USER" -c "$(printf "%q -f" "$DAEMON" )"
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
killall --quiet "$DAEMON"
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
killall --quiet "$DAEMON"
sleep 1
su "$USER" -c "$(printf "%q -f" "$DAEMON" )"
;;
*)
printf "Usage: %q {start|stop|restart|force-reload}\n" "$0" >&2
exit 1
;;
esac
exit 0
When you have installed succesfully amule you have to configure External Connections
amuled --ec-config
You will be asked to write a password, this will also create the amule configuration file in /home/<<my_user>>/.aMule/amule.conf in which you enable amuleweb ([WebServer] Enabled=1), change your incoming and tmp directories, etc
I copied some of my credits and data aMule files from C:\Users\<<my_user>>\AppData\Roaming\aMule to /home/<<my_user>>/.aMule/ (be careful not to overwrite amule.conf)
The password for amuleweb is set with amuleweb --admin-ass=your_password
And I think that's all, again big thanks to the people at amule.org forums (specially wuischke) and to their wiki.