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!

Add this lines to post-mount script
Code:
sleep 60
/opt/etc/init.d/S95transmission restart
and check if is ok after rebooting router, 60 is 60 seconds, you may increase or decrease until it's ok.
 
I had to reinstall Transmission via optware on my AC68U, but ipkg can't find the package???
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package transmission.
Check the spelling or perhaps run 'ipkg update'

ipkg update does nothing:
Successfully terminated.

ipkg list - shows a rather short list!
bzip2 - 1.0.6-1 -
e2fslibs - 1.41.12-1 -
gettext - 0.14.5-2 -
glib - 2.20.4-1 -
libcurl - 7.24.0-1 -
libdb - 4.2.52-3 -
libevent - 2.0.20-1 -
libiconv - 1.13.1-1 -
libidn - 1.25-1 -
libpar2 - 0.2-5 -
libsigc++ - 2.2.3-1 -
libstdc++ - 6.0.2-6 -
mc - 4.7.5.5-1 -
ncurses - 5.7-3 -
ncursesw - 5.7-2 -
openssl - 0.9.8v-2 -
py26-setuptools - 0.6c11-2 -
python26 - 2.6.8-1 -
readline - 6.1-2 -
slang - 2.1.4-1 -
sqlite - 3.8.1-1 -
wget-ssl - 1.12-2 -
zlib - 1.2.5-1 -
Successfully terminated.

What's wrong? Any ideas?
 
I had to reinstall Transmission via optware on my AC68U, but ipkg can't find the package???


ipkg update does nothing:


ipkg list - shows a rather short list!


What's wrong? Any ideas?

Post output:
Code:
uname -a
mount
df
free
 
I'm not a complete newbie as i have used padovans software for my n56u and have connected to it before using a shell ion linux, though there are times when i struggle with it for some reason. On merlins firmware i enabled telnet but didnt see a setting for ssh. I have installed putty though it technically isnt needed in linux as the shell can ssh to the router. However, after enabvling telnet and rebooting the router and installing openssh and the blacklists in linux, i am not able to ssh into the ac56r router. I am told the port is closed. sudo command was no help. dowmload master is installed as per the instructions. How about a little problem solving with me to get this up and running? Thanks!


ssh admin@rt-ac56r
ssh: connect to host rt-ac56r port 22: Connection refused


ame problem with putty also
 
ok that wasnt merlin installed as i thought but now i am using 376.47 on the ac56r. All the ssh is enabled as well as telnet. ssh login won't accept my password after rebooting even.
 
ssh admin@rt-ac56r
admin@rt-ac56r's password:
Permission denied, please try again.
admin@rt-ac56r's password:
Permission denied, please try again.
admin@rt-ac56r's password:
Permission denied (publickey,password).
 
ok. so far its my errors all the way. i changed the admin name to something else on the router config, other than admin and that's why it wouldn't let me in. now on to the tutorial....
 
Ok, that works! I prefer the desktop gui so ill guess ill be using the remote gui vs the mobile gui that shows by default. Even so, this looks great!

Many Thanks!


:D

:p
 
Creating a swap space isnt so difficult. I used it on my rt-n56u router usingf these instructions below from this site: https://code.google.com/p/rt-n56u/wiki/HowToConfigureEntware

I copied a portion of the instructions from that site and am assuming you have ssh's into your router with putty or terminal or something of that ilk. i use a 1 gig swap space which is way more than i should ever need on a router with 256mb of memory. A good rule of thums is to use a swap space 2 times larger than your memory ammount, though there are exceptions (compiling chrome os comes to mind)


If you need a swap partition

You may need a SWAP partition if you intend to use applications like BitTorrent-clients or applications that require large amounts of memory (download managers, 'tiny servers', etc.). Also, the presence of the SWAP partition is recommended when using a media server UPnP/DLNA, which is in the process of database creation of media content consumed a large amount of RAM.

Important note! It is not recommended to create swap files or partitions on USB hard drives. There is a risk of a system crash if the USB disk is unplugged incorrectly (for example, if router is powered off suddenly, or some other reason).

# fdisk -u /dev/sda


Command (m for help): m
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)


Command (m for help): d
Selected partition 1


Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First sector (2048-15820799, default 2048): Using default value 2048
Last sector or +size or +sizeM or +sizeK (2048-15820799, default 15820799): +256M


Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First sector (502049-15820799, default 502049): Using default value 502049
Last sector or +size or +sizeM or +sizeK (502049-15820799, default 15820799): Using default value 15820799


Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 82
Changed system type of partition 1 to 82 (Linux swap)


Command (m for help): p


Disk /dev/sda: 8100 MB, 8100249600 bytes
175 heads, 12 sectors/track, 7533 cylinders, total 15820800 sectors
Units = sectors of 1 * 512 = 512 bytes


Device Boot Start End Blocks Id System
/dev/sda1 2048 502048 250000+ 82 Linux swap
Partition 1 does not end on cylinder boundary
/dev/sda2 502049 15820799 7659375+ 83 Linux
Partition 2 does not end on cylinder boundary


Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table


Now unmount the drive:

# ejusb

Now format the partition with volume label "Main".

# mkfs.ext4 -m 0 -T largefile -L Main /dev/sda2
mke2fs 1.42.8 (20-Jun-2013)
Filesystem label=Main
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
7552 inodes, 1914843 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1962934272
59 block groups
32768 blocks per group, 32768 fragments per group
128 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

And create the swap space:

# mkswap /dev/sda1
Setting up swapspace version 1, size = 255996416 bytes
 
GRRRR Never had this much trouble with the n56u

Ive run this for awhile and then it quits. Tried the swap file. guess ill try the swap partition. It goes until i try to upload knoppix torrents then crashes. tunnel in via terminal, restart transmission try to access either daemon and it crashes...

:mad::mad::mad:
 
Ive run this for awhile and then it quits. Tried the swap file. guess ill try the swap partition. It goes until i try to upload knoppix torrents then crashes. tunnel in via terminal, restart transmission try to access either daemon and it crashes...

:mad::mad::mad:

Your usb disk is formatted fat32 or ntfs?
 
ext4 with a 1 gig linux swap partition enabled. i tried ext2/3 with the same results but it takes so long to partition with ext2/3 on a terabyte hd.

I tried it with only uploading knoppix bittorrents with and without swap file 256/512/1g swap file and 512/1g swap partition and the results are the same. knoppix bittorrents crashes it for some reason.

Currently i have d/l bittorrents for solydxk, linuxmint 17/16/15/14/13/lmde, deepin 2013/14, and they seem to be running fine. it did crash once after i added the 2014 deepins but i may have rushed it a bit. ssh tunneled in and restarted transmission
 
Last edited:
I have gone throught all the steps, and got it working very nice, big thanks for that!

But when when I try to make the swapfile, i came across an obstacle..
• 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

There is no such script for me in /jffs/scripts/

admin@RT-N66U:/jffs/scripts# ls
firewall-start
admin@RT-N66U:/jffs/scripts# free
total used free shared buffers
Mem: 239712 174780 64932 0 964
-/+ buffers: 173816 65896
Swap: 262136 0 262136
admin@RT-N66U:/jffs/scripts# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 27904 27904 0 100% /
tmpfs 119856 4388 115468 4% /tmp
devfs 119856 0 119856 0% /dev
/dev/mtdblock4 3072 404 2668 13% /jffs
/dev/sdb5 709626024 26233500 646763996 4% /tmp/mnt/sdb5
admin@RT-N66U:/jffs/scripts# 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/sdb5 on /tmp/mnt/sdb5 type ext2 (rw,nodev,noatime)
admin@RT-N66U:/jffs/scripts#

I cant seem to open my port 51413 either. I have tried both the firewall instructions, and port forwarded:
Asus-RT-N66U 51413 192.168.0.1 51413 BOTH
Still it says Closed in Transmission.
 
Last edited:
You have to create post-mount script
Code:
nano /jffs/scripts/post-mount
Paste this lines
#!/bin/sh

swapon /opt/swapfile

Save with Ctrl-O, Enter, Ctrl-X
Make it executable
Code:
chmod a+rx /jffs/scripts/post-mount
 
Awesome, thanks alot!
What else can I do to make the port open? Or what can be the cause of it to be closed? Eventhough i've tried opening it? ;S
 

Latest threads

Sign Up For SNBForums Daily Digest

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