TeHashX
Very Senior Member
New site with updated guide
I made a tutorial for those who want to install Transmission through Optware, the most part is from RT-N56U project and special thanks to Merlin for his custom firmware and advices.
Why installing native Transmission?
- Because it's easier to update, use less memory and let the hdd disk to sleep when is not in use (Asus Download Master doesn't allow the disk to go offline).
Works fine only on merlin's custom firmware.
We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3. DON'T TRY TO INSTALL ON NTFS OR FAT32 FORMATTED DISKS BECAUSE YOU ONLY GET A BIG HEADACHE!!!
On router UI we have to enable Telnet or SSH under Administration / System Tab.
• To start the optware environment we have to install Download Master and right after uninstall because can't coexist with transmissionbt.
• Login to router with putty terminal
• ipkg update (ignore wget: server returned error: HTTP/1.1 404 Not Found)
• ipkg upgrade
• ipkg install transmission wget-ssl
• For arm devices like RT-AC56U or RT-AC68U ipkg install libiconv
• /opt/bin/wget -c -O /opt/etc/init.d/S95transmission http://goo.gl/VCgvw2 --no-check-certificate
• chmod 777 /opt/etc/init.d/S95transmission
• /opt/etc/init.d/S95transmission start
• /opt/etc/init.d/S95transmission stop
• chmod 777 /opt/etc/transmission-daemon/settings.json
• rm -r /opt/etc/transmission-daemon/settings.json
• /opt/bin/wget -c -O /opt/etc/transmission-daemon/settings.json http://goo.gl/PIHW2f --no-check-certificate
• app_set_enabled.sh transmission yes (this is for starting transmission automatically on every router reboot)
• go to 192.168.1.1:9091 on preferred internet browser (by default username: admin and pass: admin)
• default download folder is on /mnt/sda1/Transmission (will be created automatically with the first downloaded torrent and can be changed editing settings.json file, for this you need the nano editor:
• ipkg install nano (in putty terminal)
• be sure transmission-daemon is not running when editing settings.json /opt/etc/init.d/S95transmission stop or will be overwritten
• nano /opt/etc/transmission-daemon/settings.json here you can edit any settings like enable/change username, password and save with CTRL-O and ENTER, to exit nano CTRL-X
ACCESS FROM WAN
• If you want to access transmission from WAN like work, school, smartphone, tablet or some other device we need to open the port 9091 but the firmware doesn't allow port forwarding to the router himself, for that we will use the scripts on /jffs partition:
• On router UI we have to enable "jffs partition" and "Format JFFS partition at next boot" under Administration / System Tab (available only on custom firmware) and reboot router
• /opt/bin/wget -c -O /jffs/scripts/firewall-start http://goo.gl/ZFHdHC --no-check-certificate
• chmod a+rx /jffs/scripts/firewall-start (make it executable)
• reboot
• after rebooting type YourWanIp:9091 on preferred internet browser, ...
Or, install Transmission Remote GUI from here
EMAIL NOTIFICATIONS
If you have a slow internet connection and you want to be notified when a torrent has finished downloading, place the folowing script witch I called tmail.sh in /jffs/scripts but first don't forget to fill: SMTP, FROM, TO, USER and PASS with your credentials.
WARNING, may become annoying if you are downloading lots of torrents...
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
To unmount add this lines to /jffs/scripts/services-stop script
TROUBLESHOOTING
If you have difficulties with installation process or transmissionbt usage, copy paste from terminal the next commands and post here followed by issue details:
Youtube video here
Initially posted here
I made a tutorial for those who want to install Transmission through Optware, the most part is from RT-N56U project and special thanks to Merlin for his custom firmware and advices.
Why installing native Transmission?
- Because it's easier to update, use less memory and let the hdd disk to sleep when is not in use (Asus Download Master doesn't allow the disk to go offline).
Works fine only on merlin's custom firmware.
We need a usb-flash formatted EXT2 or a usb-hdd formated EXT3. DON'T TRY TO INSTALL ON NTFS OR FAT32 FORMATTED DISKS BECAUSE YOU ONLY GET A BIG HEADACHE!!!
On router UI we have to enable Telnet or SSH under Administration / System Tab.
• To start the optware environment we have to install Download Master and right after uninstall because can't coexist with transmissionbt.
• Login to router with putty terminal
• ipkg update (ignore wget: server returned error: HTTP/1.1 404 Not Found)
• ipkg upgrade
• ipkg install transmission wget-ssl
• For arm devices like RT-AC56U or RT-AC68U ipkg install libiconv
• /opt/bin/wget -c -O /opt/etc/init.d/S95transmission http://goo.gl/VCgvw2 --no-check-certificate
• chmod 777 /opt/etc/init.d/S95transmission
• /opt/etc/init.d/S95transmission start
• /opt/etc/init.d/S95transmission stop
• chmod 777 /opt/etc/transmission-daemon/settings.json
• rm -r /opt/etc/transmission-daemon/settings.json
• /opt/bin/wget -c -O /opt/etc/transmission-daemon/settings.json http://goo.gl/PIHW2f --no-check-certificate
• app_set_enabled.sh transmission yes (this is for starting transmission automatically on every router reboot)
• go to 192.168.1.1:9091 on preferred internet browser (by default username: admin and pass: admin)
• default download folder is on /mnt/sda1/Transmission (will be created automatically with the first downloaded torrent and can be changed editing settings.json file, for this you need the nano editor:
• ipkg install nano (in putty terminal)
• be sure transmission-daemon is not running when editing settings.json /opt/etc/init.d/S95transmission stop or will be overwritten
• nano /opt/etc/transmission-daemon/settings.json here you can edit any settings like enable/change username, password and save with CTRL-O and ENTER, to exit nano CTRL-X
ACCESS FROM WAN
• If you want to access transmission from WAN like work, school, smartphone, tablet or some other device we need to open the port 9091 but the firmware doesn't allow port forwarding to the router himself, for that we will use the scripts on /jffs partition:
• On router UI we have to enable "jffs partition" and "Format JFFS partition at next boot" under Administration / System Tab (available only on custom firmware) and reboot router
• /opt/bin/wget -c -O /jffs/scripts/firewall-start http://goo.gl/ZFHdHC --no-check-certificate
• chmod a+rx /jffs/scripts/firewall-start (make it executable)
• reboot
• after rebooting type YourWanIp:9091 on preferred internet browser, ...
Or, install Transmission Remote GUI from here
EMAIL NOTIFICATIONS
If you have a slow internet connection and you want to be notified when a torrent has finished downloading, place the folowing script witch I called tmail.sh in /jffs/scripts but first don't forget to fill: SMTP, FROM, TO, USER and PASS with your credentials.
WARNING, may become annoying if you are downloading lots of torrents...
Stop transmission daemon, change this two lines in /opt/etc/transmission-daemon/settings.json and start transmission again#!/bin/sh
SMTP="your-smtp-server:587"
FROM="your-email-address"
TO="your-email-address"
USER="email-user-name"
PASS="email-password"
FROMNAME="Asus Router"
torrent_name="$TR_TORRENT_NAME"
echo "Subject: Download notification!" >/tmp/tmail.txt
echo "From: \"$FROMNAME\"<$FROM>" >>/tmp/tmail.txt
echo "Date: `date -R`" >>/tmp/tmail.txt
echo "" >>/tmp/tmail.txt
echo Transmissionbt has finished downloading "$TR_TORRENT_NAME" on `date +\%d/\%m/\%Y` at `date +\%T` >>/tmp/tmail.txt
echo "" >>/tmp/tmail.txt
echo "Your friendly router." >>/tmp/tmail.txt
echo "" >>/tmp/tmail.txt
cat /tmp/tmail.txt | /usr/sbin/sendmail -S"$SMTP" -f"$FROM" $TO -au"$USER" -ap"$PASS"
rm /tmp/tmail.txt
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/jffs/scripts/tmail.sh",
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
Code:
#!/bin/sh
swapoff /opt/swapfile
Code:
chmod a+rx /jffs/scripts/post-mount
chmod a+rx /jffs/scripts/services-stop
TROUBLESHOOTING
If you have difficulties with installation process or transmissionbt usage, copy paste from terminal the next commands and post here followed by issue details:
Code:
mount
df
free
Youtube video here
Initially posted here
Last edited: