Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
While playing with the fun_plug and looking what is all presented in the firmware that is not used, I came across two versions of a bittorrent client. The first one was in the /usr/sbin/bt_torrents, this one does not work as it is compiled against uClibc. The ldd gave the following output.
/ # ldd /usr/sbin/bt_torrents
checking sub-depends for '/ffp/lib/libc.so.0'
libc.so.0 => /ffp/lib/libc.so.0 (0x00000000)
/ffp/lib/ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x00000000)
I also found a bt web page under /mnt/sda3/sys/crfs/web_page/bt, which you can address by going to your DNS-313 web interface and change /web/login.asp?id=# to web/bt/fe02.asp. Unfortunately this will not work as the bt client is not running. Looking further I also found a second bt client /usr/local/bt/bin/bt this one works only you have to set the correct webui directory in btsettings.txt. By adding the following line to this file.
webui_dir_files: /usr/local/bt/webui
When you start the bt client you can get to the web interface by going to http://ip_of_dns-313:8080/fe01.html. One could make a script for fun_plug to start-up the bittorrent client at boot.
Last edited by Rawnar (2010-01-08 15:36:20)
Offline
I forgot one thing. You need to create the destination folders given in the btsettings.txt file. I don't have acces to my NAS at the moment, but I think the folders are.
/mnt/HD_a2/BT/incomplete
/mnt/HD_a2/BT/complete
/mnt/HD_a2/BT/torrents
You can check it yourself. By the way, I checked the client and it works.
Offline
thanks for tip on setting webui.
For some reason I can't change btsettings.txt in /usr/local/bt/bin/ so that remains after reboot
To run bt for the first time You can use run_BT present in fw 1.03.
If you delete btsettings.txt from /usr/local/bt/bin
you can use something like
./bt -daemon-loop -default-settings-file /mnt/HD_a2/BT/btsettings.txt
so that your file is accesible over samba (usefull if you don't want to mess with your box/fw/etc.
In that file you can also use:
dht: true
lsd: true
and as for interesting things - you can run bt with -console-ui and see in your telnet/ssh working client
I also writed short fun_plug with some of ffp's fixes and modified webui - added index (fe02, with linked torrent filename for dl) and deleted support link.
Now only if I could get faster transfers on this box it'd be perfect
Last edited by bojer (2010-01-16 01:37:39)
Offline
D-link provides a bittorrent client for there DNS-313 rev B1 here. The file inside the zip archive is a combination of a header and a gzipped tarball. So remove the first 460 bytes and untar the remaining data will give you the data.
# > dd bs=460 skip=1 if=DNS-313_B1_FW_v2.00_BitTorrent_v1.00 | tar -zx
Inside are some nice scripts that can maybe help us understanding the setup that dlink was thinking about when they made the bittorrent client.
update: The 1.04 firmware also has the option to add programs to the system, just like the 2.00 firmware for the Rev B1 DNS-313. Probably we can change the header so it will install on the rev A1/2 hardware. I'm still running 1.03 as 1.04 doesn't have any bttorrent client.
Last edited by Rawnar (2010-01-20 12:45:30)
Offline