我的路由器的pandorabox是精简版的,没有安装transmission,想着把tr安装上,挂着pt,反正性能足够。
想到就干。
首先更新源文件,源地址网上一大堆,这里不写,贴出我自己这个版本里自带的源地址
src/gz 19.01_core http://downloads.pangubox.com:6380/pandorabox/19.01/targets/ralink/mt7620/packages src/gz 19.01_base http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/base src/gz 19.01_newifi http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/newifi src/gz 19.01_pear http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/pear src/gz 19.01_packages http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/packages src/gz 19.01_luci http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/luci src/gz 19.01_lafite http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/lafite src/gz 19.01_mtkdrv http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/mtkdrv
ssh登录
习惯性进入tmp目录进行众多操作。
cd /tmp opkg update
[root@PandoraBox_FAB0:/etc]#opkg update Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/targets/ralink/mt7620/packages/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_core Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/base/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_base Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/newifi/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_newifi Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/pear/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_pear Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/packages/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_packages Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/luci/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_luci Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/lafite/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_lafite Downloading http://downloads.pangubox.com:6380/pandorabox/19.01/packages/mipsel_24kec_dsp/mtkdrv/Packages.gz Updated list of available packages in /var/opkg-lists/19.01_mtkdrv
安装ttransmission主要有6个文件要安装,分别是:
transmission-daemon-openssl
transmission-cli-openssl
transmission-web
transmission-web-full
luci-i18n-transmission-zh-cn
luci-app-transmission
开始检查一下源地址里有没有transmission安装包
命令行输入:
opkg list | grep 'transmission'
出现以下相关包名:
[root@PandoraBox_FAB0:/etc]#opkg list | grep 'transmission' httping - 2.3.4-1 - Give it an url, and it'll show you how long it takes to connect, send a request and retrieve the reply (only the headers). Be aware that the transmission across the network also takes time! This package is built with SSL support. httping-nossl - 2.3.4-1 - Give it an url, and it'll show you how long it takes to connect, send a request and retrieve the reply (only the headers). Be aware that the transmission across the network also takes time! This package is built without SSL support. libopus - 1.3-1 - Opus is a totally open, royalty-free, highly versatile audio codec. Opus is unmatched for interactive speech and music transmission over the Internet, but is also intended for storage and streaming applications. luci-app-transmission - git-18.364.80006-87f648f-1 - LuCI Support for Transmission luci-i18n-transmission-en - git-18.364.80006-87f648f-1 - Translation for luci-app-transmission - English luci-i18n-transmission-ru - git-18.364.80006-87f648f-1 - Translation for luci-app-transmission - Русский (Russian) luci-i18n-transmission-zh-cn - git-18.364.80006-87f648f-1 - Translation for luci-app-transmission - 简体中文 (Simplified Chinese) transmission-daemon-openssl - 2.92+git-4 - Transmission is a simple BitTorrent client. It features a very simple, intuitive interface on top on an efficient, cross-platform back-end. This package contains the daemon itself. transmission-web - 2.92+git-4 - Webinterface resources for transmission. transmission-web-full - 1.1.0-2 - transmission full web control for PT
确认安装包存在。开始安装【我习惯一个一个来,预防出现错误】
opkg install transmission-daemon-openssl opkg install transmission-cli-openssl opkg install transmission-web opkg install transmission-web-full opkg install luci-app-transmission opkg install luci-i18n-transmission-zh-cn
安装完成后,结束transmission任务,然后进行修改配置文件
killall transmission-daemon vim /root/.config/transmission-daemon/settings.json
修改以下配置项:
"preallocation": 0,#文件预分配改为o预防爆盘,我是插的TF做数据盘 "rpc-username": "admin",#客户端登陆用户名 "rpc-password": "admin",#登陆密码 "dht-enabled": false, #玩pt的,DHT必须关闭的、 "rpc-whitelist": "*", #输入* 所有IP都可以访问,或者自定义。 "rpc-whitelist-enabled": false, #关闭白名单功能 "cache-size-mb": 4, #缓存大小,以MB为单位,建议设大一些,避免频繁读写硬盘而伤硬盘,建议设为内存大小的1/6~1/4
退出并保存。
启动transmission
transmission-daemon
使用路由器地址加端口访问 http://192.168.66.1:9091用户名和密码都是admin
至此,transmission安装完成,可以愉快的用路由器挂PT了。
哦,还有最后一步,在路由器web界面。添加开机自启。
启动项>本地启动脚本>启动脚本插入到 'exit 0' 之前即可随系统启动运行。
# Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. transmission-daemon& exit 0
【保存并应用】 或者是【提交】
返回顶部