강좌 분류

ASUS RT-AC66U에 트랜스미션 설치하기

컨텐츠 정보

  • 65,047 조회
  • 39 댓글
  • 0 추천
  • 목록

본문

아수스 공유기에 관한 리뷰를 작성하면서, 공유기 자체에서 트랜스미션을 돌리고자 하는 분이 많으시더군요.


ASUS RT-AC66U의 경우 CPU가 600MHz 밖에 되지 않기 때문에 속도가 낮을거라 판단하고 설치를 안했습니다.



주말에 짬이 나서 설치 후 강좌를 작성해봅니다. ㅎㅎ



참고로 이 강좌는 멀린펌이 올라갈 수 있는


 * RT-N16

 * RT-N66U and RT-N66R

 * RT-AC66U and RT-AC66R

 * RT-AC56U

 * RT-AC56의 경우 entware가 올라가지 않아 optware로 올려야 합니다. 링크 참조하세요~ (http://forums.smallnetbuilder.com/showthread.php?t=8696)


위와 같은 공유기만 가능하니 참고바랍니다.



우선 SSH 활성화 및 JFFS 파티션 활성화가 필요합니다.


http://www.wsgvet.com/blog/87


위 링크에 해당 게시물이 있습니다.


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


위 링크가 레퍼런스이며, 초보자들도 따라할 수 있게 한글로 작성합니다.




엔트웨어도 설치해야 하며


http://www.wsgvet.com/blog/90


위 링크에서 처음부터



에러가 뜨는데 신경 안쓰셔도 됩니다.

 

처음엔 저 폴더가 없어서 그렇습니다.

 

파일 수정을 편하게 하기위해 nano  및 기타 패키지를 설치합니다.


opkg install nano openssh-sftp-server iftop htop





윗부분까지 따라하시면 됩니다.



그리고 이 강좌는 USB가 sda1에 있다는 가정하에 진행합니다.



USB 마운트 경로를 알고 싶다면


Putty에서 


fdsik -l 


명령어를 치면 



admin@RT-AC66R:/tmp/home/root# fdisk -l


Disk /dev/sda: 8004 MB, 8004304896 bytes

21 heads, 32 sectors/track, 23264 cylinders

Units = cylinders of 672 * 512 = 344064 bytes


   Device Boot      Start         End      Blocks  Id System

/dev/sda1               1       23264     7816688  83 Linux



위와 같이 /dev/sda1 이렇게 나오면 sda1에 마운트된 것입니다.


혹시 sdb1이라면 밑의 명령어 중에 sda1 부분을 sdb1이라고 수정하면 됩니다.




이제 트랜스미션을 설치합니다.




opkg install transmission-daemon-openssl


위 명령어를 넣습니다.



admin@RT-AC66R:/tmp/home/root# opkg install transmission-daemon-openssl

Installing transmission-daemon-openssl (2.82-1) to root...

Downloading http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/transmission-daemon_2.82-1_entware.ipk.

Installing libevent2 (2.0.21-1) to root...

Downloading http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/libevent2_2.0.21-1_entware.ipk.

Installing libminiupnpc (1.8-1) to root...

Downloading http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/libminiupnpc_1.8-1_entware.ipk.

Configuring libevent2.

Configuring libminiupnpc.

Configuring transmission-daemon.

admin@RT-AC66R:/tmp/home/root#


위와 같이 나오면 정상



opkg install transmission-web


위 명령어를 넣습니다.



admin@RT-AC66R:/tmp/home/root# opkg install transmission-web

Installing transmission-web (2.82-1) to root...

Downloading http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/transmission-web_2.82-1_entware.ipk.

Configuring transmission-web.

admin@RT-AC66R:/tmp/home/root#


위와 같이 나오면 정상


admin@RT-AC66R:/tmp/home/root# opkg install transmission-daemon

Installing transmission-daemon (2.80-1) to root...

Downloading http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/transmission-                          daemon_2.80-1_entware.ipk.

wget: server returned error: HTTP/1.1 404 Not Found

Collected errors:

 * opkg_download: Failed to download http://wl500g-repo.googlecode.com/svn/i                          pkg/openwrt/transmission-daemon_2.80-1_entware.ipk, wget returned 1.

 * opkg_install_pkg: Failed to download transmission-daemon. Perhaps you nee                          d to run 'opkg update'?

 * opkg_install_cmd: Cannot install package transmission-daemon.

admin@RT-AC66R:/tmp/home/root#



혹시 위와 같은 내용이 나오면


opkg update


를 해줍니다.



admin@RT-AC66R:/tmp/home/root# opkg update

Downloading http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/Packages.gz.

Inflating http://wl500g-repo.googlecode.com/svn/ipkg/openwrt/Packages.gz.

Updated list of available packages in /opt/var/opkg-lists/openwrt.

admin@RT-AC66R:/tmp/home/root#


위와 같이 업데이트 후 트랜스미션을 설치하면 됩니다.



mkdir /mnt/sda1/Torrent/

mkdir /mnt/sda1/Torrent/Incomplete

mkdir /mnt/sda1/Torrent/Watch

mkdir /mnt/sda1/Torrent/Completed


위 명령을 통해 관련 폴더를 생성합니다. 


admin@RT-AC66R:/tmp/home/root# mkdir /mnt/sda1/Torrent/

admin@RT-AC66R:/tmp/home/root# mkdir /mnt/sda1/Torrent/Incomplete

admin@RT-AC66R:/tmp/home/root# mkdir /mnt/sda1/Torrent/Watch

admin@RT-AC66R:/tmp/home/root# mkdir /mnt/sda1/Torrent/Completed

admin@RT-AC66R:/tmp/home/root#



위와 같이 한줄씩 실행해주면 됩니다.



/opt/etc/init.d/S88transmission stop


위의 명령어로 트랜스미션을 정지합니다.



admin@RT-AC66R:/tmp/home/root# /opt/etc/init.d/S88transmission stop

 Checking transmission-daemon...              dead.

admin@RT-AC66R:/tmp/home/root#


위와 같이 나오면 정지 완료


nano -w /opt/etc/transmission/settings.json


위 명령을 통해 셋팅을 합니다.



{

    "alt-speed-down": 500, 

    "alt-speed-enabled": false, 

    "alt-speed-time-begin": 600, 

    "alt-speed-time-day": 127, 

    "alt-speed-time-enabled": false, 

    "alt-speed-time-end": 1320, 

    "alt-speed-up": 500, 

    "bind-address-ipv4": "0.0.0.0", 

    "bind-address-ipv6": "::", 

    "blocklist-enabled": false, 

    "blocklist-url": "http://list.iblocklist.com/?list=bt_level1", 

    "cache-size-mb": 2, 

    "dht-enabled": true, 

    "download-dir": "/mnt/sda1/Torrent/Completed", 

    "download-queue-enabled": true, 

    "download-queue-size": 5, 

    "encryption": 0, 

    "idle-seeding-limit": 10080, 

    "idle-seeding-limit-enabled": true, 

    "incomplete-dir": "/mnt/sda1/Torrent/Incomplete", 

    "incomplete-dir-enabled": false, 

    "lazy-bitfield-enabled": true, 

    "lpd-enabled": true, 

    "message-level": 1, 

    "open-file-limit": 5, 

    "peer-congestion-algorithm": "", 

    "peer-limit-global": 40, 

    "peer-limit-per-torrent": 8, 

    "peer-port": 51413, 

    "peer-port-random-high": 65535, 

    "peer-port-random-low": 49152, 

    "peer-port-random-on-start": false, 

    "peer-socket-tos": "lowcost", 

    "pex-enabled": true, 

    "port-forwarding-enabled": false, 

    "preallocation": 1, 

    "prefetch-enabled": 0, 

    "proxy": "", 

    "proxy-auth-enabled": false, 

    "proxy-auth-password": "", 

    "proxy-auth-username": "", 

    "proxy-enabled": false, 

    "proxy-port": 80, 

    "proxy-type": 0, 

    "queue-stalled-enabled": true, 

    "queue-stalled-minutes": 30, 

    "ratio-limit": 50, 

    "ratio-limit-enabled": true, 

    "rename-partial-files": true, 

    "rpc-authentication-required": true

    "rpc-bind-address": "0.0.0.0", 

    "rpc-enabled": true

    "rpc-password": "원하는비밀번호넣기", 

    "rpc-port": 9091, 

    "rpc-url": "/transmission/", 

    "rpc-username": "원하는접속아이디넣기", 

    "rpc-whitelist": "*.*.*.*", 

    "rpc-whitelist-enabled": false, 

    "scrape-paused-torrents-enabled": true, 

    "script-torrent-done-enabled": false, 

    "script-torrent-done-filename": "", 

    "seed-queue-enabled": false, 

    "seed-queue-size": 10, 

    "speed-limit-down": 1000, 

    "speed-limit-down-enabled": true, 

    "speed-limit-up": 1000, 

    "speed-limit-up-enabled": true, 

    "start-added-torrents": true, 

    "trash-original-torrent-files": true, 

    "umask": 0

    "upload-slots-per-torrent": 10, 

    "utp-enabled": true, 

    "watch-dir": "/mnt/sda1/Torrent/Watch", 

    "watch-dir-enabled": true

}




위 부분을 통해 토렌트에서 아이디와 비번으로 접근할 수 있게 합니다.


컨트롤 + O, 엔터, 컨트롤 + X 하면 저장 후 닫기가 됩니다.


nano -w /jffs/scripts/firewall-start


위 명령어로 방화벽 관련 설정을 해줍니다.



엔트웨어를 처음 설치했다면 아무것도 없을겁니다.


#!/bin/sh

iptables -I INPUT -p tcp --destination-port 9091 -j ACCEPT

iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT

iptables -I INPUT -p udp --destination-port 51413 -j ACCEPT


위와 같이 설정해주면 됩니다.


컨트롤 + O, 엔터, 컨트롤 + X 하면 저장 후 닫기가 됩니다.



만약 기존에 #!/bin/sh   <- 이 부분이 있다면 추가하면 안됩니다. 제일 위에 하나만 있어야 함.



chmod a+rx /jffs/scripts/firewall-start


위 명령어를 통해 방화벽 설정이 실행가능하게 합니다. 아무 반응 없음.



/jffs/scripts/firewall-start


아무 반응 없음



/opt/etc/init.d/S88transmission start


위 명령어를 통해 방화벽 실행 및 트랜스미션 실행을 합니다.


admin@RT-AC66R:/tmp/home/root# /opt/etc/init.d/S88transmission start

 Starting transmission-daemon...              done.

admin@RT-AC66R:/tmp/home/root#


잘 돌아가고 있는 것을 알 수 있습니다.




이제 내부에서 접근해봅니다.


http://192.168.1.1:9091 을 인터넷 주소창에 넣으면 바로 뜹니다.



그리고 DDNS를 지정해놨다면 DDNS:9091 하면 바로 접근이 됩니다. 포트포워딩 필요없구요 ㅎㅎ


DDNS와 포트포워딩에 대한 자세한 강좌는 여기(링크)를 봐주세요.



또한 FTP를 통해서 토렌트 파일을 


/mnt/sda1/Torrent/Watch


위 경로에 넣으면 알아서 다운 받습니다.




 위와 같이 속도가 별로인 것을 볼 수 있습니다.


아마 USB가 저가형이라 그런 것 같은데, 외장하드를 넣으면 속도가 더 빠를겁니다. 


3-4MB/s 정도 나온다고 합니다.





▲ 속도가 느려서인지 CPU도 얼마 먹지 않습니다.


위와 같은 화면은 Putty에서 htop을 치면 나옵니다. F10을 누르면 나올 수 있습니다.



그리고 토렌트를 접근하는 다른 방법을 올린 게시물이 있으니 참고바랍니다.


http://www.wsgvet.com/iomega/35


위 링크의 중간 이하부터 어플 및 다른 프로그램 소개가 있습니다.




끝까지 봐주셔서 고맙습니다.


기타 질문 사항은 댓글로 남겨주시면 답변 드리겠습니다.

관련자료

  • 서명
    우성짱의 NAS를 운영하고 있습니다.

    저의 즐거움이 여러분의 즐거움이면 좋겠습니다.

댓글 39 / 4 페이지

고스트님의 댓글

글내용 수정해야 하는데....

새로운 글내용을 올립니다. 윗 댓글은 삭제해주세요
----
AC56에서 transmission이  재부팅후 자동 재실행이 안될경우에는
아래 처럼 따라 해주세요

putty 프로그램으로 AC56에 접속 후

nano /jffs/scripts/post-mount

nano가 실행 되면 제일 마지막 줄에

/tmp/mnt/sda1/entware.arm/etc/init.d/S88transmission start

넣은 후 Ctrl+o, 엔터, Ctrl+x 키를 순서대로 눌러서

nano를 종료하시면 됩니다.

(위 경로의 sda1은 본인의 하드디스크 위치에따 따라 sdb1, 라벨이름등으로 변경되니 조정하세요)

명령어 창에서 reboot 명령어를 넣은 후

재부팅 되면 자동 transmission 실행됩니다.

송진우님의 댓글

안녕하세요. 제목처럼 AC66U 에다가 트랜스미션 설치 작업을 블로그 보면서 진행하고 있는데.. 문의 있어서 댓글 남겨요~
블로그 대로 쭉쭉 진행하다가 "nano  및 기타 패키지" 까지 정상설치 하였습니다.
후에 opkg install transmission-daemon 명령어 입력하면
Unknown package 'transmission-daemon'.
Collected errors:
* opkg_install_cmd: Cannot install package transmission-daemon.

이라고 나오면서 설치가 안되네요... 어떻게 해결할 수 있을까요?

송건님의 댓글의 댓글

질문하신지 시간이 많이 흘러 확인하실지 모르겠네요. 다른분이라도 같은 경우에 도움 되시라고 댓글 씁니다.
결론부터 얘기하면 패키지 이름 뒤에 openssl 이 추가되었습니다.
즉 opkg install transmission-daemon-openssl 이라고 입력하셔야 설치됩니다.

우성군님의 댓글의 댓글

어라 제가 댓글을 안달았었네요 ㅠㅠ

아마 제가 잘 몰라서 못달았던 것 같습니다.

좋은 정보 감사합니다. 업데이트 하겠습니다.

만쭈님의 댓글

안녕하세요~좋은 정보 감사합니다~ 게시글 보고 따라 했는데 마지막에 트랜스미션 스타트하면 실패가 뜹니다 왜그럴까요?ㅠ
/opt/etc/init.d/S88transmission start 입력후
Starting transmission-daemon...              failed.
이렇게 뜹니다 ㅠ도움 부탁드립니다 ㅠ

우성군님의 댓글의 댓글

4년 전 글이라 안될수도 있을 듯 하네요 ㅜ ㅜ

failed 말고 다른 메세지는 없었나요

원인을 알면 해결할 방법이 있는데...

만쭈님의 댓글의 댓글

네네ㅠ다른건없습니다ㅠㅠ다른건 다했는데 트랜스미션 실행에서 실패만 뜨네요ㅠㅠ
아니면 다 지우고 새로 다시 설치해야될까요???
전체 99 / 1 페이지
RSS

최근글


새댓글


알림 0