简单

ssh登录openwrt路由器,执行以下命令。

opkg update
opkg install transmission-daemon
opkg install transmission-cli
opkg install transmission-web
opkg install transmission-remote
opkg install luci-app-transmission

随系统启动/etc/init.d/transmission enable ,启动/etc/init.d/transmission start,
停止/etc/init.d/transmission stop,状态/etc/init.d/transmission status
注意,配置文件在cat /etc/config/transmission,你需要修改config_dir目录,download_dir目录,incomplete_dir目录(在文件完成之前存储文件的位置)。
有一个option enabled 0的选项,你要把它改为option enabled 1

安装transmission-web-control
获取脚本

wget https://gitee.com/culturist/transmission-web-control/raw/master/release/install-tr-control-gitee.sh

安装,执行安装脚本(如果系统不支持 bash 命令,请尝试将 bash 改为 sh ):

bash install-tr-control-cn.sh

Transmission下载出现错误的解决办法 Unable to save resume file: No such file or directory

出现这个问题的原因是配置的config文件夹权限不对,一定要指定所有者为 transmission 这个账号,如果不是的话,就算你设置成0777也未必有用。

设置的方法为 chown transmission.transmission config_dir -R ,其中的config_dir为你自己的配置路径。

挂PT至少以下要修改:

“dht-enabled”: false,

UI

打开http://你的路由器IP地址:9091/transmission/,后面的transmission一般不用加,加端口就可以自动跳转。在没有用迅雷和百度网盘的情况下,下载速度达到了600kB/s,挺不错的。

详细

There are several implementations of the BitTorrent peer-to-peer file sharing protocol. Transmission is only one of them. After installation (opkg install transmission-daemon) there should be a config file in the uci directory.

A few more details about configuration file (/etc/config/transmission) can be found here.

You’ll probably need to set up USB support and format your drives for storage first, see the articles here and here.

Install

  1. the daemon: transmission-daemon is a daemon that runs in the background and is designed to not have any form of visual interface, consult transmission

    opkg update
    opkg install transmission-daemon
    
  2. a control instance:

  • transmission-cli: to control the transmission daemon via [CLI (Command-line interface)](https://en.wikipedia.org/wiki/Command-line interface) on the server, consult transmissioncli

    opkg install transmission-cli
    
  • transmission-web to control the transmission daemon over [HTTP (Hypertext Transfer Protocol)](https://en.wikipedia.org/wiki/Hypertext Transfer Protocol) from a remote host machine with a web browser

    opkg install transmission-web
    
  • transmission-remote to control the transmission daemon over the transmission JSON-[RPC (Remote Procedure Call)](https://en.wikipedia.org/wiki/Remote procedure call) from a remote host machine with a GUI program, e.g. transmission-gtk/transmission-qt or a python-transmissionrpc or transmisson-remote-gui for OS other then Debian

    opkg install transmission-remote
    

Basic setup

To enable Transmission at all, put option enable 1 into /etc/config/transmission.

If you want to start Transmission on boot, run

/etc/init.d/transmission enable

To start Transmission, run

/etc/init.d/transmission start

If you wish to use the web server, besides installing the package (see above), you might need to whitelist your IP address (if it is not in 192.168.1.0/24) via option rpc_whitelist '127.0.0.1,192.168.1.*,your_ip_address’ in the transmission configuration. By default, the server listens on port 9091. ie. 192.168.0.1:9091

To control transmission remotely via RPC, install Transmission Remote GUI and set it up just like the webserver above. The RPC interface uses the same port as the web interface.

Sections

There is only one section: /etc/config/transmission.

You’ll probably want to change the config_dir, download_dir, and incomplete_dir variables to point to locations on external storage.
您可能需要更改config_dir、download_dir和incomplete_dir变量以指向外部存储上的位置

config transmissionoption enable 1option config_dir '/etc/transmission'option alt_speed_down 50option alt_speed_enabled falseoption alt_speed_time_begin  540option alt_speed_time_day 127option alt_speed_time_enabled falseoption alt_speed_time_end 1020option alt_speed_up 50option bind_address_ipv4 '0.0.0.0'option bind_address_ipv6 '::'option blocklist_enabled falseoption dht_enabled trueoption download_dir '/mnt/sda4/'option encryption 1option incomplete_dir '/mnt/sda4/incomplete'option incomplete_dir_enabled falseoption lazy_bitfield_enabled trueoption lpd_enabled falseoption message_level 2option open_file_limit 32option peer_limit_global 240option peer_limit_per_torrent 60option peer_port 51413option peer_port_random_high 65535option peer_port_random_low 49152option peer_port_random_on_start falseoption peer_socket_tos 0option pex_enabled trueoption port_forwarding_enabled falseoption preallocation 1option proxy ""option proxy_auth_enabled falseoption proxy_auth_password ''option proxy_auth_username ''option proxy_enabled falseoption proxy_port 80option proxy_type 0option ratio_limit 2.0000option ratio_limit_enabled falseoption rename_partial_files trueoption rpc_authentication_required falseoption rpc_bind_address '0.0.0.0'option rpc_enabled trueoption rpc_password ''option rpc_port 9091option rpc_username ''option rpc_whitelist '127.0.0.1,192.168.1.*'option rpc_whitelist_enabled trueoption script_torrent_done_enabled falseoption script_torrent_done_filename ''option speed_limit_down 100option speed_limit_down_enabled falseoption speed_limit_up 40option speed_limit_up_enabled trueoption start_added_torrents falseoption trash_original_torrent_files falseoption umask 18option upload_slots_per_torrent 14option watch_dir_enabled falseoption watch_dir ''

Editing-Configuration-Files

Name Type Required Default Option Description
config_dir path Where the configuration files are
bind_address_ipv4 IP Address
bind_address_ipv6 IPv6 Address
download_dir path Where to store you downloaded files
incomplete_dir_enabled boolean Whether to store incomplete files somewhere else
incomplete_dir path Where to store files untill they are finished
dht_enabled boolean Whether to enable dht (distributed hash tables)
blocklist_enabled boolean Whether to make use of the blocklist defined in config_dir
encryption integer Whether to use encrypted connections only (allow encryption: 0, prefer encryption: 1, require encryption: 2)
pex_enabled boolean
speed_limit_down_enabled boolean Whether transmission should limit its download speed
speed_limit_down integer in KByte/s
speed_limit_up_enabled boolean Whether transmission should limit its download speed
speed_limit_up integer in KByte/s
alt_speed_enabled boolean Whether transmission should use two speed limit settings
alt_speed_down integer in KByte/s
alt_speed_up integer in KByte/s
alt_speed_time_enabled boolean Whether to switch between the two speed-setting on a time table
alt_speed_time_day 7-bit bitmask, 0000001=sunday, 1000000=saturday
alt_speed_time_begin default = 540, in minutes from midnight, 9am
alt_speed_time_end default = 1020, in minutes from midnight, 5pm
upload_slots_per_torrent how many peers can download a torrent at a time
open_file_limit integer remember the low system memory
peer_limit_global integer the max number of peers globaly
peer_limit_per_torrent integer the max number of peers with connection per torrent
peer_port integer the fixed port transmission listens to incomming connections
peer_port_random_high integer highest port of the port range
peer_port_random_low integer lowest port of the port range
peer_port_random_on_start boolean whether to use random ports instead of a fixed one from the beginning
peer_socket_tos boolean whether type of service is enabled
port_forwarding_enabled boolean
preallocation boolean whether to fill the space for chunks not yet downloaded with “0” (helps avoiding fragmentation)
ratio_limit_enabled boolean whether to use a limit ratio
ratio_limit integer automaticaly stop seeding a torrent when it reaches this ratio (with a GUI you can enable this for every torrent separately)
rename_partial_files boolean
rpc_enabled boolean Whether transmission-daemon should be remote controlled by a GUI on a host machine
rpc_bind_address IP Address the address on which transmission-daemon listens to rpcs
rpc_port IP Port the port on which transmission-daemon listens to rpcs
rpc_authentication_required boolean whether rpc needs authentication
rpc_username string user name
rpc_password string password
rpc_whitelist_enabled boolean whether to make use of the whitelist
rpc_whitelist IP Addresses the IPs of the hosts allowed
watch_dir_enabled boolean Whether to check a directory for new torrents put there. Leave this disabled It requres inotify enabled in kernel to works, which is not enabled by default in openwrt.
watch_dir path Path to the directory
script_torrent_done_enabled boolean
script_torrent_done_filename
start_added_torrents boolean
trash_original_torrent_files
umask integer Sets file mode creation mask. The mask should be in base 10 due to the json markup language used by Transmission. For instance, the standard umask octal notation 022 is written as 18. If you want to save downloaded torrents to be world-writable (equivalent to chmod 777 or chmod a+rwx) set this value to 0.
lazy_bitfield_enabled boolean
lpd_enabled boolean
message_level integer
proxy_enabled boolean whether to use a proxy
proxy IP address IP adress of the proxy
proxy_port integer IP port of the proxy
proxy_type integer Type of the proxy (http: 0, socks4: 1, socks5: 2)
proxy_auth_enabled boolean Whether proxy needs authentication
proxy_auth_username string username for the proxy
proxy_auth_password string password for the proxy

Notes

  • Transmission performs much better when swap is mounted.

Example

A video demonstration of how Transmission 2.84 can be installed on OpenWrt 14.07 Barrier Breaker: https://www.youtube.com/watch?v=_R1Kcpy4pj4 (video removed)

Scripts

A script for adding alternative trackers to the select torrent searching it from its name or number. Source

#!/bin/ash
# Source: https://github.com/oilervoss/openwrt/tree/transmissionTRANSMISSION_REMOTE='/usr/bin/transmission-remote'# Below is a command that will generate a tracker list with one tracker per line. Using live updated https://github.com/ngosang/trackerslist
# You can use /some/path/trackers.txt for a static listLIVE_TRACKERS_LIST_CMD='curl -s --url https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best_ip.txt' TORRENTS=`$TRANSMISSION_REMOTE -l 2>/dev/null`
PARAMETER=$1if [ $? -ne 0 ]; thenecho -e "\n\e[0;91;1mFail on transmission. Aborting.\n\e[0m"exit 1
fiif [ $# -eq 0 ]; thenecho -e "\n\e[31mThis script expects one parameter\e[0m"echo -e "\e[0;36maddtracker \t\t- list current torrents "echo -e "addtracker \$number\t- add trackers to torrent of number \$number"echo -e "addtracker \$name\t- add trackers to first torrent with part of name \$name"    echo -e "\n\e[0;32;1mCurrent torrents:\e[0;32m"echo "$TORRENTS" | sed -n 's/\(^.\{4\}\).\{64\}/\1/p'echo -e "\n\e[0m"exit 1
fi# return number by searching
# transmission-remote -l | grep -i "Blueray" | sed -n 's/ *\([0-9]\+\).*/\1/p'if [ "${PARAMETER//[0-9]}" != "" ] ; thenPARAMETER=`echo "$TORRENTS" | grep -i "$PARAMETER" | sed -n 's/\([0-9]\+\).*/\1/p'`if [ "${PARAMETER//[ ]}" != "" -a "${PARAMETER//[0-9 ]}" = "" ] ; thenecho -e "\n\e[0;32;1mI found the following torrent:\e[0;32m"echo "$TORRENTS" | sed -n 's/\(^.\{4\}\).\{64\}/\1/p' | grep -i "$1"fifiNUMBERCHECK=`echo "$TORRENTS" | sed -n '1d;s/\(^.\{4\}\).*/\1/;/Sum/!p'|grep "$PARAMETER"`if [ "${PARAMETER//[0-9 ]}" != "" -o "${NUMBERCHECK//[ ]}" = "" ] ; thenecho -e "\n\e[0;31;1mI didn't find a torrent with text/number: \e[21m$1"echo -e "\n\e[0;32;1mCurrent torrents:\e[0;32m"echo "$TORRENTS" | sed -n 's/\(^.\{4\}\).\{64\}/\1/p' echo -e "\e[0m"exit 1
fiecho $LIVE_TRACKERS_LIST_CMD | while read TRACKER
doif [ "$TRACKER" != "" ]; thenecho -ne "\e[0;36;1mAdding $TRACKER\e[0;36m"$TRANSMISSION_REMOTE -t $PARAMETER-td $TRACKER 1>/dev/null 2>&1 if [ $? -eq 0 ]; thenecho -e " -> \e[32mSuccess! "elseecho -e " - \e[31m< Failed > "fifi
done
echo -e "\e[0m"

openwrt路由器安装Transmission软件包与web控制台(中文界面)相关推荐

  1. 黑群晖折腾之安装Transmission并替换TWC增强中文界面

    Transmission一款好的下载工具,但是默认的界面,管理功能太少了而且丑 一.首先安装Transmission这个BT下载程序. 1.进入群晖点击套件中心–设置–套件来源,点新增添加一个源:ht ...

  2. Linux kodi添加中文,如何在Ubuntu中通过PPA安装Kodi 18.2并设置中文界面

    如何在Ubuntu中通过PPA安装Kodi 18.2并设置中文界面 Kodi "Leia" 18.2已经发布,其中包含许多错误修复和性能改进. 以下是如何在Ubuntu 16.04 ...

  3. OpenWrt路由器安装Seafile私有云存储系统

    在Y1S上安装Seafile,使用OpenWrt Truck版本,该版本内集中了Seafile的相关组件. 在安装之前需要完成U盘启动配置,之前的博客中已经介绍了U盘配置事项,接下来就安装Seafil ...

  4. RocketMQ Web控制台监控界面介绍+部署

    文章目录 简介 部署 Docker方式 SpringBootFatJar方式 界面指南 运维页 驾驶舱 集群页面 主题页面 消费者页面 生产者页面 消息查询页面 消息轨迹页面 其他 HTTPS 方式访 ...

  5. 如何安装Vscode软件及设置成中文界面?

    最新小编开始研究前端,想写点东东玩,要想开始首先就要安装工具,写前端有好几个工具,安装推荐开源的vscode,第一次安装是英文版的,如何修改成中文版,也是很简单的,跟随小编一起来安装设置工具吧. 方法 ...

  6. Ubuntu安装webmin,并更改为中文界面

    Webmin是一个开源的基于网页的Unix/Linux系统管理工具.通过使用Webmin,你可以在浏览器上设置和安装所有的系统服务,包括:DNS.DHCP.Apache.NFS和Samba等等.因此, ...

  7. 学习笔记:部署趋势科技企业安全无忧版——服务器端和web控制台的安装(一)...

    测试平台W2K3E SP2+VM6.5 本文将学习以下内容: 1. 采用定制安装的方法安装企业安全无忧版 2. Web控制台管理界面介绍 在安装的过程中,主要注意三个方面的内容:安全管理服务器.web ...

  8. openwrt路由器(RP-LINK)安装python并设置开机启动程序

    由于项目需求+实际条件限制,需要在某台设备上运行一个python小程序,在工业机器人和云服务器之间实现信息转发的功能.因为机器人也需要通过路由器认证连接校园网,出于简化设备的考虑(不想每次跑程序还得开 ...

  9. 软路由系统 --- OpenWrt下载安装中文语言包

      刚安装好的OpenWrt登录Web管理后台后,发现界面是英文的,在系统的语言选项也只有English,没有中文可切换,那该如何呢?那我们就给它安装个中文的语言包,再来进行切换,看看能行不能行!如下 ...

  10. breed web控制台——新路由3 newifi-d2 刷breed web控制台教程

    基本概念 breed web控制台:Bootloader 意思为引导加载器,即为用于加载操作系统的程序.它是一大类此类功能程序的统称.现在的 BIOS.UEFI.GRUB.RedBoot.U-Boot ...

最新文章

  1. GitHub 博客-- Jekyll--代码高亮,Liquid 转义字符
  2. 一起谈.NET技术,浅谈如何使用.NET存储XML数据
  3. 【PC工具】Windows10开始菜单增强工具Stardock Start10
  4. BZOJ 2115 [Wc2011] Xor ——线性基
  5. AI换脸引发全民恐慌,用对方向却能推动行业变革
  6. 力扣刷题心得(设计类题目)
  7. laravel 分词搜索匹配度_SEO除了“中文分词”还有“文本分析”- 搜狗蜘蛛池博客...
  8. How to remove live visual tree?
  9. php实现凯撒密码加密算法,Python实现的凯撒密码算法示例
  10. 写给互联网上从业的Web程序员
  11. FFmpeg如何设置编码器私有参数
  12. 贴片发光二极管/LED灯正负极判断
  13. 微信会员卡系统怎么开通,微信会员卡开发,会员管理系统,CSS :first-line 伪元素
  14. 如何写简单实用的产品需求文档PRD
  15. 阿里云centos7部署l2tp后无法连接
  16. 计算机毕业论文进展情况说明,研究生学位论文进展情况 毕业论文的进度和计划安排怎么写~~请详细些~~...
  17. cocos-creator学习笔记1(旋转,位置移动,键盘监控移动基础)
  18. 【C语言程序设计】实验 4
  19. How to use template
  20. 马哥SRE第九周课程作业

热门文章

  1. 页面status:500,报错 server encountered an internal error that prevented it from fulfilling this request.
  2. Python实现箱形图的绘制
  3. matplotlib绘制随机漫步
  4. 《回炉重造》——泛型
  5. 靠着这份“葵花宝典”,让我收到了6个大厂的offer(华为+字节+腾讯+京东+网易+滴滴)
  6. os_pend_multi.c
  7. 腾讯为什么把全国最大的数据中心落户到南京?
  8. Gartner:浪潮存储进入分布式存储前三
  9. _,predicted=中_,的作用
  10. 自然常数e的由来以及计算机为什么是二进制