What's new

[TUTORIAL] Native Transmission on asuswrt routers through optware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

You already installed wget-ssl, continue with the next step

Thanks for your feedback,

But when I tried to '/opt/etc/init.d/S95transmission start', it displays as attachment.

Actually, I connected new USB HDD before install, is it cause this problem?
 

Attachments

  • Error2.png
    Error2.png
    41.4 KB · Views: 283
Last edited:
Thanks for your feedback,

But when I tried to '/opt/etc/init.d/S95transmission start', it displays as attachment.

Actually, I connected new USB HDD before install, is it cause this problem?
Send outputs from:
uname -a
mount
df
free
 
SWAP FILE
If transmission crashes sometimes "without reason", most probably router goes out of memory and this can be fixed by creating a swap partition but it's a little bit to complicated for most users and we will create a swap file instead, 256MB is more than enough:
cd /opt
dd if=/dev/zero of=swapfile bs=1024 count=262144
mkswap swapfile
chmod 0600 swapfile
swapon swapfile
To enable swap file when router booting, add this lines to /jffs/scripts/post-mount script
Code:
#!/bin/sh

swapon /opt/swapfile
To unmount add this lines to /jffs/scripts/services-stop script
Code:
#!/bin/sh

swapoff /opt/swapfile
Code:
chmod a+rx /jffs/scripts/post-mount
chmod a+rx /jffs/scripts/services-stop

I've created the swap file but I'm not sure where to place the commands in the post-mount and services-stop script files. There's already script data in those files. see below for what already exists in each of those files and advise where in those scripts I can place the swapon and swapoff commands. Thanks

post-mount

#!/bin/sh

if [ $1 = "/tmp/mnt/sda1" ]
then
ln -sf $1/entware /tmp/opt
fi

services-stop

#!/bin/sh

/opt/etc/init.d/rc.unslung stop
 
I've created the swap file but I'm not sure where to place the commands in the post-mount and services-stop script files. There's already script data in those files. see below for what already exists in each of those files and advise where in those scripts I can place the swapon and swapoff commands. Thanks

post-mount

#!/bin/sh

if [ $1 = "/tmp/mnt/sda1" ]
then
ln -sf $1/entware /tmp/opt
fi

services-stop

#!/bin/sh

/opt/etc/init.d/rc.unslung stop

post-mount
Code:
#!/bin/sh

if [ $1 = "/tmp/mnt/sda1" ]
then
  ln -sf $1/entware /tmp/opt
fi

swapon /opt/swapfile

services-stop
Code:
#!/bin/sh

/opt/etc/init.d/rc.unslung stop
swapoff /opt/swapfile
 
How can I add a delay in post-mount script in order for the transmission-daemon to wait for USB mounting?
I'm keep getting these errors after cold boot related to ...no data is found. please add a disk...
 
Does anyone know how to reallocate transmission log files?

It writes way too much data into syslog making it unreadable.

I've searched around, it appears in "/opt/etc/init.d/S95transmission" there is mention of /opt/var/log? But it doesn't look like this constant is intend to be edited. :confused:
 
Does anyone know how to reallocate transmission log files?

It writes way too much data into syslog making it unreadable.

I've searched around, it appears in "/opt/etc/init.d/S95transmission" there is mention of /opt/var/log? But it doesn't look like this constant is intend to be edited. :confused:

There are 4 log levels:
0 = no logging
1 = error messages only
2 = info & error messages
3 = debug i.e. all messages

I guess you have "3" enabled.
 
I have not seen or edit anything relating to logging levels...... where can I change logging levels?

I would also like to not have transmission write to syslog.

I tried changing this but log still ends up in syslog.
Code:
#  DIR_LOG="/opt/var/log"                       
DIR_LOG="/mnt/dl/logs"

many thanks
 
I have not seen or edit anything relating to logging levels...... where can I change logging levels?

I would also like to not have transmission write to syslog.

I tried changing this but log still ends up in syslog.
Code:
#  DIR_LOG="/opt/var/log"                       
DIR_LOG="/mnt/dl/logs"

many thanks

I'm not sure you can change log path but you may decrease log level to 1
Stop transmission
Code:
/opt/etc/init.d/S95transmission stop
Edit settings.json
Code:
nano /opt/etc/transmission-daemon/settings.json
Change
Code:
"message-level": 3,
to
Code:
"message-level": 1,
Save and start transmission again
Code:
/opt/etc/init.d/S95transmission start
 
thank you very much.

I had copied my settings.json file from my NAS, which seems to have set that setting to 2.
 
How can I add a delay in post-mount script in order for the transmission-daemon to wait for USB mounting?
I'm keep getting these errors after cold boot related to ...no data is found. please add a disk...
Post-mount is triggered only after usb disk are mounted, I think your problem is another.
Do you have another scripts maybe?
Post here output from:
Code:
mount
df
free
uname -a
Since this is live again, please take a look 3 posts above for my question.
Thanks!


Sent from my iPhone using Tapatalk
 
mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw)
devfs on /dev type tmpfs (rw,noatime)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/mtdblock4 on /jffs type jffs2 (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sdb2 on /tmp/mnt/dataSD type ext3 (rw,nodev,noatime,data=ordered)
/dev/sdb1 on /tmp/mnt/entware type ext2 (rw,nodev,noatime)
/dev/sda1 on /tmp/mnt/data type ext3 (rw,nodev,noatime,data=ordered)

df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 25088 25088 0 100% /
tmpfs 119856 2632 117224 2% /tmp
devfs 119856 0 119856 0% /dev
/dev/mtdblock4 5632 388 5244 7% /jffs
/dev/sdb2 5291760 141720 4881224 3% /tmp/mnt/dataSD
/dev/sdb1 2124212 74792 1941516 4% /tmp/mnt/entware
/dev/sda1 615319352 481890144 102172744 83% /tmp/mnt/data

free
total used free shared buffers
Mem: 239712 175224 64488 0 5968
-/+ buffers: 169256 70456
Swap: 251648 2464 249184

uname -a

Linux RT-N66U 2.6.22.19 #1 Fri Jun 6 16:31:19 EDT 2014 mips GNU/Linux






Sent from my iPhone using Tapatalk
 
All seams ok, you have 2 usb devices, try with only one, probably you need a script to mount devices by "uuid"
 
The thing is, I get this message only after reboot. I have to manually start all torrents and after that, until next reboot everything is OK


Sent from my iPhone using Tapatalk
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top