Asus RT-N13U B1 - DD-wrt thread

i got cron jobs to work by adding this to startup script (got it from dd-wrt forums. dont know what it does but it works.
Code:
grep -q "^crontabs:" /tmp/etc/passwd || echo 'crontabs:*:0:0:Contab User,,,:/tmp/root:/opt/bin/bash' >> /tmp/etc/passwd
(
  sleep 60
  stopservice cron && startservice cron
) &
sleep 5
done
 
this startup script might work

Code:
hr=`date "+%H%M"`
if [ $hr -ge 0200 ] && [ $hr -le 0800 ]; then
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon;
fi

thanks RajeshJ for the help. much appreciated
 
@RajeshJ

I am not able to mount my second partition.
Although the transmission is running fine...I have no clue where the downloads are being stored ?

I had flashed to a latest firmware today:
ftp://www.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2013/04-01-2013-r21153/asus-rtn13ub1/

below is my startup:
Code:
mount /dev/sda3 /mnt
sleep 3
echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd # Add nobody for samba share
echo 1 > /sys/class/scsi_disk/0:0:0:0/allow_restart # To avoid HDD spindown
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon
echo 128 > /sys/block/sda/device/max_sectors
python /opt/share/pyload/pyLoadCore.py


Below is my Mount output in putty:
Code:
root@DD-WRT:/opt# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /opt type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered)
[DOUBLEPOST=1372604156][/DOUBLEPOST]I have followed all points as per the book.[DOUBLEPOST=1372606054][/DOUBLEPOST]@dinjo ....Any Ideas?[DOUBLEPOST=1372606125][/DOUBLEPOST]Also, FTP doesn't work.... I am using NAS options as mentioned here
http://www.techenclave.com/communit...w-supports-dd-wrt.113137/page-68#post-1834312
 
Last edited by a moderator:
Change the download folder from Transmission -> Preferences and for sharing configure smb.conf to match folder you want to share.
 
Checked the download directory and it looks to be correct:
Download Dir: /mnt/data/torrents

Some how my mnt is soft linked to tmp/mnt.
Below is a listing for my root directory

Code:
root@DD-WRT:/# ls -lrt
dr-xr-xr-x  60 root    root            0 Jan  1  1970 proc
drwxr-xr-x  11 root    root            0 Jan  1  1970 sys
drwxrwxrwt    6 root    root        11440 Jan  1  1970 dev
drwxr-xr-x    2 root    root          970 Apr  1 10:33 sbin
drwxr-xr-x    3 root    root            71 Apr  1 10:33 www
lrwxrwxrwx    1 root    root            7 Apr  1 10:34 var -> tmp/var
drwxr-xr-x    6 root    root            66 Apr  1 10:34 usr
lrwxrwxrwx    1 root    root            7 Apr  1 10:34 mnt -> tmp/mnt
drwxr-xr-x    2 root    root            3 Apr  1 10:34 mmc
drwxr-xr-x    3 root    root          248 Apr  1 10:34 lib
drwxr-xr-x    2 root    root            3 Apr  1 10:34 jffs
drwxr-xr-x  11 root    root          713 Apr  1 10:34 etc
drwxr-xr-x    2 root    root          508 Apr  1 10:34 bin
drwxr-xr-x  13 root    root          4096 Jun 30 19:46 opt
drwxr-xr-x  13 root    root            0 Jun 30 20:16 tmp


Change the download folder from Transmission -> Preferences and for sharing configure smb.conf to match folder you want to share.
 
Code:
[quote="vercetti, post: 1843363, member: 1734"][I][SIZE=12px]@[/SIZE][/I][URL='http://www.techenclave.com/community/members/rajeshj.50207/'][I][SIZE=12px]RajeshJ[/SIZE][/I][/URL]
 
I am not able to mount my second partition.
Although the transmission is running fine...I have no clue where the downloads are being stored ?
 
I had flashed to a latest firmware today:
[URL]ftp://www.dd-wrt.com/others/eko/BrainSlayer-V24-preSP2/2013/04-01-2013-r21153/asus-rtn13ub1/[/URL]
 
below is my startup:
[CODE]mount /dev/sda3 /mnt
sleep 3
echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd # Add nobody for samba share
echo 1 > /sys/class/scsi_disk/0:0:0:0/allow_restart # To avoid HDD spindown
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon
echo 128 > /sys/block/sda/device/max_sectors
python /opt/share/pyload/pyLoadCore.py


Below is my Mount output in putty:
Code:
root@DD-WRT:/opt# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /opt type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered)
[DOUBLEPOST=1372604156][/DOUBLEPOST]I have followed all points as per the book.[DOUBLEPOST=1372606054][/DOUBLEPOST]@dinjo ....Any Ideas?[DOUBLEPOST=1372606125][/DOUBLEPOST]Also, FTP doesn't work.... I am using NAS options as mentioned here
http://www.techenclave.com/communit...w-supports-dd-wrt.113137/page-68#post-1834312[/quote]
Code:
root@DD-WRT:/opt# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda1 on /opt type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered)

I can see only 1 partition mounted ie only /opt
there should be another entry for /mnt

-In your mount script try this
mount /dev/sda2 /mnt instead of your Mount

and check using mount command
 
Last edited by a moderator:
How to configure DD-WRT for no-IP so you can access Transmission through Internet
-Here in this setup

TPLink is ADSL Router &
DD-WRT is Router
1) Create a NO-IP account like RajeshJ.no-ip.org

2) Login to TPLINK (Router) -> Advanced Setup > NAT > Select Correct Virtual Circut
> Single > DMZ > Enter Asus ROuters Local IP [It will be in same IP range as Your TP link ROuter]

3) TP LInk > Access Management > DDNS >

Enter Your DDNS
HostName = RajeshJ.no-ip.org
UserName= User1
Password= mypassword
4) ADSL Router > Adv setup > Firewall > off
4)Asus ROuter DDWRT page > Security > Firewall > Disable


Now test by typing

- RajeshJ.no-ip.org:9091 <--port of Transmission
- ftp://RajeshJ.no-ip.org <-- to access FTP via Internet or mobile
- \\RajeshJ.no-ip.org <--- TO access Your Hard Disk connected to Router from Internet using Window
share " Type \\RajeshJ.no-ip.org in Windows> RUn prompt

-RajeshJ.no-ip.org:80 <-- to Access the Web Site u configured on ROuter





Note - If your ADSL router dont have DDNS feature , then Configure DDNS on your Asus n13ub1 Router from

Setup > DDNS > No-IP

and Configure DMZ on your ADSL Router

Note 2:I didnt test if this setup works by turning on Firewall

Note 3: Change all default Username and password , Once you setup NO-IP ANYONE IN INTERNET can access your ROuter /hard disk connected to Router if you dont Configure Password to FTP , Transmission , SAMBA
 
Checked the download directory and it looks to be correct:
Download Dir: /mnt/data/torrents

Some how my mnt is soft linked to tmp/mnt.
Below is a listing for my root directory

Code:
root@DD-WRT:/# ls -lrt
dr-xr-xr-x  60 root    root            0 Jan  1  1970 proc
drwxr-xr-x  11 root    root            0 Jan  1  1970 sys
drwxrwxrwt    6 root    root        11440 Jan  1  1970 dev
drwxr-xr-x    2 root    root          970 Apr  1 10:33 sbin
drwxr-xr-x    3 root    root            71 Apr  1 10:33 www
lrwxrwxrwx    1 root    root            7 Apr  1 10:34 var -> tmp/var
drwxr-xr-x    6 root    root            66 Apr  1 10:34 usr
lrwxrwxrwx    1 root    root            7 Apr  1 10:34 mnt -> tmp/mnt
drwxr-xr-x    2 root    root            3 Apr  1 10:34 mmc
drwxr-xr-x    3 root    root          248 Apr  1 10:34 lib
drwxr-xr-x    2 root    root            3 Apr  1 10:34 jffs
drwxr-xr-x  11 root    root          713 Apr  1 10:34 etc
drwxr-xr-x    2 root    root          508 Apr  1 10:34 bin
drwxr-xr-x  13 root    root          4096 Jun 30 19:46 opt
drwxr-xr-x  13 root    root            0 Jun 30 20:16 tmp



/mnt is soft-linked to the /tmp/mnt in my build of dd-wrt too.

Check your dmesg output to see if there are any exceptions. It could be an FS related issue or a bug as Dinjo suggests, "umount"ing both /opt and /mnt in the first 2 lines of your startup is completely harmless and you should try it.
 
Any1 know solution to this ? when running pyload i am getting Pyload is alrdy running with PID 1685 but when check PID 1685= Transmissions's PID

pyload.jpg
 
Guys,

What transfer speed are you getting. I'm trying to transfer a 2GB file from my laptop to the the HDD connected to the Router and I get only 2Mbits/Sec. How to increase this speed?
 
is there anyone able to modify settings.json??
it gets overwritten everytime i again run transmission.
steps i do
1. kill transmission
2.edit settings.json
3.start transmission
but no use
 
sleep 5
Mount -t ext3 /dev/sda1/opt
mount -t ext3 /dev/sda2 /mnt
echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd
sleep 60
echo 1 > /sys/class/scsi_disk/0:0:0:0/allow_restart
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon
iptables -I INPUT -p tcp -d 192.168.1.1 --dport 50000 -j logaccept
 
@RajeshJ
Your startup script for pyload doesn't seems accurate whats the status of
Code:
pyLoadCore.py --status
 
Last edited by a moderator:
Back
Top