HOWTO: torrents with TL-WR1043ND dd-wrt (build 23204+)

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
anti77
DD-WRT Novice


Joined: 03 Mar 2012
Posts: 18
Location: Kolozsvar, Transilvania

PostPosted: Sat Mar 03, 2012 9:30    Post subject: HOWTO: torrents with TL-WR1043ND dd-wrt (build 23204+) Reply with quote
EDIT: update for build 23204

Prerequisites
An usb hdd partitioned:
/dev/sda1 – ext3 (to share the data)
/dev/sda2 – linux swap (128MB - not used)
/dev/sda3 – ext3 (~1Gb for optware packages)
Note:there is no support for linux swap in the 23204 build, but it's not really needed. It's there only if it will be in the future.

Putty.

SSH enabled on router (from webinterface).

Howto:
Usb settings on Services/USB dd-wrt webinterface:
- all enable
- disk mount point /opt

Samba share settings Services/NAS dd-wrt webinterface:
Enable access for the data partition over network for: /tmp/sda_part1

Log in with putty:

Code:

root@tplink:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    6272      6272         0 100% /
/dev/root                 6272      6272         0 100% /
none                       512         0       512   0% /dev
/dev/sda1            311295872 278680064  32615808  90% /tmp/mnt/sda1
/dev/sda3              1124816     92176    975504   9% /opt


Run commands for initial setup:
Code:

cd /opt
mkdir etc root lib
chmod 755 etc root lib
cp -a /etc/* /opt/etc/
mount -o bind /opt/etc /etc
mount -o bind /opt /jffs
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/libc_0.9.33.2-1_ar71xx.ipk
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-6_ar71xx.ipk
ipkg install  libc_0.9.33.2-1_ar71xx.ipk opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-6_ar71xx.ipk opkg_9c97d5ecd795709c8584e972bfdf3aee3a5b846d-6_ar71xx.ipk


Don't worry for the error messages here...
Note that version so filenames can change on openwrt download site, so change accordingly.

Now we have opkg. Run commands in putty to configure it:

Code:
cat > /etc/opkg.conf << EOF
src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/
dest root /opt
dest ram /tmp
lists_dir ext /tmp/var/opkg-lists
EOF
opkg install libc_0.9.33.2-1_ar71xx.ipk
opkg update


Some needed packages to be installed before anything else in putty:
Code:
opkg install libc libgcc uclibcxx libncurses busybox transmission-daemon transmission-web nano


Check if everything ok in putty:
Code:
transmission-daemon –f -g /opt/data

This should not give the segmentation fault error caused by incompatibilities in the libraries. It will create default config files, wee need this to be edited. Reboot now.

If everything goes well, you will be able to edit the transmission config in putty with: (127.0.0.1 change to 192.168.*.* and set download folder to /tmp/mnt/sda1/torrent. Make sure to set "cache-size-mb": 1 if you only have the default 32Mb RAM )

Code:
nano /opt/data/settings.json


Run the daemon in putty:
Code:
transmission-daemon –g /opt/data/


Check in your browser: http://your-router-ip:9091/

Save startup script at administration/commands dd-wrt webinterface:
Code:

#!/bin/sh

sleep 5
insmod mbcache
insmod jbd
insmod ext3
#insmod swap

sleep 2
if [ -f /opt/optware.enable ]; then
mount -o bind /opt/etc /etc
mount -o bind /opt/root /tmp/root

export TRANSMISSION_WEB_HOME=/opt/usr/share/transmission/web/

transmission-daemon  -g /opt/data/
else
exit
fi



Reboot router.

Only if you can access right away the http://your_router_ip:9091 then you are set.

All done.

Thanks for everyone from other posts. Reading those helped me figure these out in a few hours. Hope this will help someone as well.

_________________
Hacking, cracking and patching firmwares since 1992.
------------------------------
la fonera 2100 pre2007 - dd-wrt v24sp2build18000
tl-wr1043nd hw1.8- dd-wrt v24sp2build23204
t-com adsl - bitswitcher 0.3.9


Last edited by anti77 on Sat Jan 04, 2014 16:03; edited 7 times in total
Sponsor
anti77
DD-WRT Novice


Joined: 03 Mar 2012
Posts: 18
Location: Kolozsvar, Transilvania

PostPosted: Sat Mar 03, 2012 12:52    Post subject: Reply with quote
Transmission-daemon seems to keep crashing and close in a few hours, depending on load.

You can use CRON task to check if it's running, and start it again just in case.

_________________
Hacking, cracking and patching firmwares since 1992.
------------------------------
la fonera 2100 pre2007 - dd-wrt v24sp2build18000
tl-wr1043nd hw1.8- dd-wrt v24sp2build23204
t-com adsl - bitswitcher 0.3.9
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Mon Mar 05, 2012 8:20    Post subject: Reply with quote
Hi I will be a 4gb ext3 flash drive usable?And can I miss the WinSCP part and use wget from a local http server?
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Mon Mar 05, 2012 8:24    Post subject: Reply with quote
OTher question.THe files from the rar file have extenesion .0 and .1 and the last file has extension .so.Shouldn't all be with .so extension?
anti77
DD-WRT Novice


Joined: 03 Mar 2012
Posts: 18
Location: Kolozsvar, Transilvania

PostPosted: Mon Mar 05, 2012 8:49    Post subject: Reply with quote
todmod wrote:
Hi I will be a 4gb ext3 flash drive usable?And can I miss the WinSCP part and use wget from a local http server?


yes and yes (don't forget to also untar them).

todmod wrote:
OTher question.THe files from the rar file have extenesion .0 and .1 and the last file has extension .so.Shouldn't all be with .so extension?

no

Anyway after reboot this /jffs/ is emptied. These libraries are needed only during install.

_________________
Hacking, cracking and patching firmwares since 1992.
------------------------------
la fonera 2100 pre2007 - dd-wrt v24sp2build18000
tl-wr1043nd hw1.8- dd-wrt v24sp2build23204
t-com adsl - bitswitcher 0.3.9
anti77
DD-WRT Novice


Joined: 03 Mar 2012
Posts: 18
Location: Kolozsvar, Transilvania

PostPosted: Fri Mar 09, 2012 15:27    Post subject: Reply with quote
Found out the crashes were occuring because there is not enough memory. A quick fix was to set:

Code:
    "cache-size-mb": 1,


in the settings.json.

This was updated in the main post as well.

_________________
Hacking, cracking and patching firmwares since 1992.
------------------------------
la fonera 2100 pre2007 - dd-wrt v24sp2build18000
tl-wr1043nd hw1.8- dd-wrt v24sp2build23204
t-com adsl - bitswitcher 0.3.9
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Fri Mar 09, 2012 20:53    Post subject: Reply with quote
Can you explain it a little bit easier?How can I write in the config file?And what should i do.When i do the OPKG update it shows error with opkg_conf or something.I need noobish explanation.
anti77
DD-WRT Novice


Joined: 03 Mar 2012
Posts: 18
Location: Kolozsvar, Transilvania

PostPosted: Sat Mar 10, 2012 16:05    Post subject: Reply with quote
There is no easier way than this.

You mentioned a single ext3 partition. If you followed step by step the tutorial, then probably you don't even have the /opt folder mounted as you don't have an sda3 partition. Share the entire parition (sda1) and check it's content on a networked computer...

_________________
Hacking, cracking and patching firmwares since 1992.
------------------------------
la fonera 2100 pre2007 - dd-wrt v24sp2build18000
tl-wr1043nd hw1.8- dd-wrt v24sp2build23204
t-com adsl - bitswitcher 0.3.9


Last edited by anti77 on Sun Mar 11, 2012 6:44; edited 1 time in total
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Sat Mar 10, 2012 22:02    Post subject: Reply with quote
Actually I partitioned the disk as u said.And when i run OPKG_update it says it doesn't have conf file or sth.Just try to install optware again as you say in the guide and ull see its not working properly.
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Mon Mar 12, 2012 19:46    Post subject: Reply with quote
Please help.This command:transmission-daemon –f –d /opt/data/ it gives this:transmission-daemon: symbol 'errno': can't handle reloc type 0x2f sometimes segmentation error please help!
anti77
DD-WRT Novice


Joined: 03 Mar 2012
Posts: 18
Location: Kolozsvar, Transilvania

PostPosted: Tue Mar 13, 2012 17:00    Post subject: Reply with quote
https://forum.openwrt.org/viewtopic.php?id=28654
indicates libpthread problem.

Probably:

Code:
mount -o bind /opt/lib /lib


will solve it.

You can compare what differences you have in both library locations.

_________________
Hacking, cracking and patching firmwares since 1992.
------------------------------
la fonera 2100 pre2007 - dd-wrt v24sp2build18000
tl-wr1043nd hw1.8- dd-wrt v24sp2build23204
t-com adsl - bitswitcher 0.3.9
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Wed Mar 14, 2012 12:30    Post subject: Reply with quote
Hi when i try to do;cp /lib /opt/lib/libnvram.so I GET a messege ommiting dictory.I tried to cpy with WINSCP but theere i got a messege that its a read only filesystem,
anti77
DD-WRT Novice


Joined: 03 Mar 2012
Posts: 18
Location: Kolozsvar, Transilvania

PostPosted: Thu Mar 15, 2012 17:16    Post subject: Reply with quote
that's my bad indeed, the code should be
Code:
cp /lib/libnvram.so /opt/lib/


We want to use the lib folder on the new ext3 partition instead of the readonly from the dd-wrt image...

_________________
Hacking, cracking and patching firmwares since 1992.
------------------------------
la fonera 2100 pre2007 - dd-wrt v24sp2build18000
tl-wr1043nd hw1.8- dd-wrt v24sp2build23204
t-com adsl - bitswitcher 0.3.9
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Thu Mar 15, 2012 20:26    Post subject: Reply with quote
Couldn't find Transmission's web interface files!

Users: to tell Transmission where to look, set the TRANSMISSION_WEB_HOME environment variable to the folder where the web interface's index.html is located.

Package Builders: to set a custom default at compile time, #define PACKAGE_DATA_DIR in libtransmission/platform.c or tweak tr_getClutchDir() by hand.
Router's gui isnt working too.Router gui works only without flash drive plugged.
todmod
DD-WRT Novice


Joined: 28 Feb 2011
Posts: 19

PostPosted: Thu Mar 15, 2012 20:44    Post subject: Reply with quote
Samba isnt working too!
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum