Ich habe auf meiner xbox xebian (eine xbox version von debian) installiert. Die funktionsweise ist dieselbe mit allem was dazugehört ink. Packetverwaltung.
Ich hab mir mldonkey 2.6.2.deb heruntergeladen und mit webmin installiert.
Dann habe ich einen User mldonkey gemacht und dessen homeverzeichniss auf einer grooosssen Partition erstellt dann habe ich folgendes Startscript mutiert:
Code: Alles auswählen
[color=green]
#!/bin/bash
MLNET_DIR="/usr/bin/"
MLNET_BIN="mlnet"
MLNET_USER="mldonkey"
NICE_PRIO=19
nc=/bin/nc # perhaps named netcat on your system
awk=/usr/bin/awk
# fast settings
dnload_rate_fast=300
upload_rate_fast=15
connections_fast=450
# slow settings
dnload_rate_slow=200
upload_rate_slow=10
connections_slow=300
case "$1" in
start)
echo "Starting mldonkey"
cd $MLNET_DIR
sudo -u $MLNET_USER $MLNET_DIR/$MLNET_BIN > /dev/null 2>&1 &
renice $NICE_PRIO $MLNET_BIN
;;
stop)
echo "Stopping mldonkey"
cd $MLNET_DIR
sh -c "$nc localhost 4000 > /dev/null << STOPHERE
close_fds
kill
STOPHERE"
;;
status)
PID=`pidof $MLNET_BIN`
if [ $PID ];then
if [ `ps -p $PID | wc -l` -eq 2 ]; then
echo "$MLNET_BIN (pid $PID) running..."
else
echo "Stale PID"
fi
else
echo "$MLNET_BIN is stopped"
fi
;;
fast)
sh -c "$nc localhost 4000 > /dev/null << STOPHERE
set max_hard_download_rate $dnload_rate_fast
set max_hard_upload_rate $upload_rate_fast
set max_opened_connections $connections_fast
q
STOPHERE"
echo "Setting $MLNET_BIN to fast settings (DL:$dnload_rate_fast UL:$upload_rate_fast #:$connections_fast)"
;;
slow)
sh -c "$nc localhost 4000 > /dev/null << STOPHERE
set max_hard_download_rate $dnload_rate_slow
set max_hard_upload_rate $upload_rate_slow
set max_opened_connections $connections_slow
q
STOPHERE"
echo "Setting $MLNET_BIN to slow settings (DL:$dnload_rate_slow UL:$upload_rate_slow #:$connections_slow)"
;;
reshare)
sh -c "$nc localhost 4000 > /dev/null << STOPHERE
close_all_sockets
reshare
q
STOPHERE"
echo "Resharing and refreshing $MLNET_BIN"
;;
*)
echo "Usage: `basename $0` {start|stop|status|fast|slow|reshare|restart}" >&2
exit 64
;;
esac
exit 0
[/color]
Danke für eure hilfe.
Fum