login as: root
root@192.168.0.103's password:
BusyBox v1.1.0 (2010.03.12-16:58+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
DiskStation> cd /volume1/test
DiskStation> sh syno-mvkw-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for syno-mvkw.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
bootstrap/optware-bootstrap.ipk
1232+1 records in
1232+1 records out
bootstrap/wget.ipk
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Setting up ipkg arch-file
Modifying /etc/rc.local
Done.
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...Done.
Removing temporary ipkg repository...
Installing wget...
Installing wget (1.12-2) to root...
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.
BusyBox v1.1.0 (2010.03.12-16:58+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
DiskStation> rm syno-mvkw-bootstrap_1.2-7_arm.xsh
DiskStation> ipkg update
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gzInflating
http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gzUpdated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.
DiskStation> ipkg upgrade
Nothing to be done
Successfully terminated.
DiskStation> ipkg install rtorrent screen
Installing rtorrent (0.8.6-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkpackage rtorrent suggests installing dtach
package rtorrent suggests installing screen
package rtorrent suggests installing adduser
Installing libtorrent (0.12.6-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling openssl (0.9.8n-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling libsigc++ (2.2.3-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling libstdc++ (6.0.9-6) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -6_arm.ipkInstalling ncursesw (5.7-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling ncurses (5.7-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling libcurl (7.20.0-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling zlib (1.2.4-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling xmlrpc-c (1.11.00-3) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -3_arm.ipkInstalling libxml2 (2.7.7-1) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -1_arm.ipkInstalling screen (4.0.3-2) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -2_arm.ipkInstalling termcap (1.3.1-2) to root...
Downloading
http://ipkg.nslu2-linux.org/feeds/optwa ... -2_arm.ipkConfiguring libcurl
Configuring libsigc++
Configuring libstdc++
Configuring libtorrent
Configuring libxml2
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring ncursesw
Configuring openssl
Configuring rtorrent
Configuring screen
Configuring termcap
Configuring xmlrpc-c
Configuring zlib
Successfully terminated.
DiskStation> cd /opt/etc
DiskStation> vi rtorrent.conf
# plaintext to RC4 encryption after the encrypted handshake
#
# encryption = allow_incoming,enable_retry,prefer_plaintext
# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
# dht = auto
# UDP port to use for DHT.
#
# dht_port = 6881
# Enable peer exchange (for torrents not marked private)
#
# peer_exchange = yes
#
# Do not modify the following parameters unless you know what you're doing.
#
cgi_port = 127.0.0.1:5050
DiskStation> mkdir -p /opt/share/torrent/session/
DiskStation> cd init.d
DiskStation> vi S99rtorrent
d_start() {
[ -d "${base}" ] && cd "${base}"
stty stop undef && stty start undef
# su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sc
# this works for the screen command, but starting rtorrent below adopts screen
# even if it is not the screen session we started (e.g. running under an undes
#su -c "screen -ls | grep -sq "\.${srnname}[[:space:]]" " ${user} || su -c "sg
# su -c "screen -S "${srnname}" -X screen rtorrent ${options} 2>&1 1>/dev/null"
su -c "screen -dmS ${srnname} rtorrent ${options} 2>$logfile"
}
d_stop() {
session=`getsession "$config"`
if ! [ -s ${session}/rtorrent.lock ] ; then
return
fi
pid=`cat ${session}/rtorrent.lock | awk -F: '{print($2)}' | sed "s/[^0-9
if ps | grep -sq ${pid}.*rtorrent ; then # make sure the pid doesn't bel
kill -s INT ${pid}
fi
DiskStation> /opt/etc/init.d/S99rtorrent restart
/bin/sh: /opt/etc/init.d/S99rtorrent: not found
DiskStation> screen -list
No Sockets found in /tmp/screens/S-root.
DiskStation> screen -r
There is no screen to be resumed.
DiskStation>