ASUS 공유기 transmission 설치

https://www.hqt.ro/transmission-on-asuswrt-routers-through-entware/

https://github.com/RMerl/asuswrt-merlin/wiki/Installing-Transmission-through-Entware

nano 설정 후 닫는 방법은 ctrl + o -> 엔터 -> ctrl +x

1. transmission 설치 (설정 파일 첨부)

opkg install transmission-daemon-openssl transmission-remote-openssl

/opt/etc/init.d/S88transmission stop

settings.json, done.sh 파일을 ​네트워크 삼바 드라이버를 통해 /opt/etc/transmission (entware -> etc -> transmission) 폴더로 이동

(탐색기 -> 네트워크 -> 공유기 경로에 entware 폴더가 안보이면 공유기 재부팅)

nano /opt/etc/transmission/settings.json

——————————————————

“blocklist-enabled”: true,

“blocklist-url”: “http://john.bitsurge.net/public/biglist.p2p.gz“,

“download-dir”: “/mnt/sda1/movie”, (외장 SSD/HDD 경로, 폴더 생성해야 함)

“download-queue-enabled”: true,

“download-queue-size”: 2,

“incomplete-dir”: “/mnt/sda1/incomplete”, (외장 SSD/HDD 경로, 폴더 생성해야 함)

“incomplete-dir-enabled”: true,

“peer-limit-global”: 30,

“peer-limit-per-torrent”: 15,

“peer-port”: 64986,

“peer-port-random-high”: 65535,

“peer-port-random-low”: 49152,

“peer-port-random-on-start”: true,

“rpc-enabled”: true,

“rpc-password”: “password“,

“rpc-username”: “username“,

“script-torrent-done-enabled”: true,

“script-torrent-done-filename”: “/opt/etc/transmission/done.sh”, (첨부파일)

“speed-limit-down”: 8192,

“speed-limit-down-enabled”: true,

“speed-limit-up”: 0,

“speed-limit-up-enabled”: true,

“watch-dir”: “/opt/etc/transmission/torrents”,

“watch-dir-enabled”: true

——————————————————

* done.sh 파일 수정

nano /opt/etc/transmission/done.sh

————————————————————

#!/bin/sh

# port, username, password

SERVER=”9091 –auth username:password

# the files remove the torrent from Transmission

transmission-remote $SERVER –torrent $TR_TORRENT_ID –remove

————————————————————

* 폴더 생성

​df -h 명령어로 외장 스토리지 /tmp/mnt/경로 확인

mkdir /mnt/경로/movie

mkdir /mnt/경로/incomplete

* 실행

/opt/etc/init.d/S88transmission start

2. 메모리 트윅

nano /jffs/scripts/init-start

—————————————–

#!/bin/sh

echo 524288 > /proc/sys/net/core/rmem_max

echo 524288 > /proc/sys/net/core/wmem_max

echo 8192 > /proc/sys/vm/min_free_kbytes

—————————————–

chmod a+rx /jffs/scripts/*

3. 방화벽 설정

nano /jffs/scripts/firewall-start

————————————————–

#!/bin/sh

iptables -I INPUT -p tcp –dport 9091 -j ACCEPT

————————————————–

chmod a+rx /jffs/scripts/*

service restart_firewall

4. 스왑 설정

cd /opt

dd if=/dev/zero of=swap bs=1024 count=524288

mkswap swap

chmod 0600 swap

swapon swap

echo “” >>/jffs/scripts/post-mount

echo “swapon /opt/swap” >>/jffs/scripts/post-mount

5. blocklist 스케줄 설정

nano /opt/etc/transmission/blocklist

——————————————————-

#!/bin/sh

transmission-remote -n username:password –blocklist-update

——————————————————-

chmod +x /opt/etc/transmission/blocklist

echo “” >> /jffs/scripts/services-start

echo “sh /opt/etc/transmission/blocklist” >> /jffs/scripts/services-start

echo “cru a UpdateBlocklist \”0 0 */7 * * /opt/etc/transmission/blocklist\”” >> /jffs/scripts/services-start

6. 클라이언트 설정

윈도우

Transmission Remote GUI

안드로이드

Remote Transmission

Print Friendly, PDF & Email

Leave a Reply