威联通QNAP使用Container进行docker安装Tranmission并替换UI

  1. QNAP安装Container,即Docker

  2. 先从Container搜索Tranmission,选择LinuxServer的版本

  3. 配置网络为Bridge,设置固定ip

  4. 在File Station中创建共享文件夹,静态卷单一磁盘先创建共享文件夹,在内部创建文件夹

  5. 对Tranmisson的共享文件夹进行设置,点击高级设置,在挂载本机共享文件夹中新增三项:

    • /config Transmission的配置文件目录。
    • /downloads 下载的文件将被放在这。
    • /watch 存放新种子文件目录。

    可以使用已经存在的共享文件夹

  6. 替换UI,Tranmission在运行中,打开终端机,输入

    /bin/bash
    

    再跳转的页面输入i,然后进入以下目录

    cd /usr/share/transmission/
    

    复制UI的最新版本地址(github地址在最后)在窗口中运行

    wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
    

    这个命令就是下载版本,建议就放在这个目录

    下载之后运行安装命令,知道Tranmission目录就加上

    bash install-tr-control-cn.sh /usr/share/transmission/
    

    选择1,安装最新版,根据需求选,比如6

            欢迎使用 Transmission Web Control 中文安装脚本。                                                                                                                                                                                                                                                                                                                   
            官方帮助文档:https://github.com/ronggang/transmission-web-control/wiki                                                                                                                                                                                                                                                                                       
            安装脚本版本:1.2.2-beta2                                                                                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                                                                                    
            1. 安装最新的发布版本(release);                                                                                                                                                                                                                                                                                                                               
            2. 安装指定版本,可用于降级;                                                                                                                                                                                                                                                                                                                                      
            3. 恢复到官方UI;                                                                                                                                                                                                                                                                                                                                            
            4. 重新下载安装脚本(install-tr-control-cn.sh);                                                                                                                                                                                                                                                                                                               
            5. 检测 Transmission 是否已启动;                                                                                                                                                                                                                                                                                                                              
            6. 指定安装目录;                                                                                                                                                                                                                                                                                                                                             
            9. 安装最新代码库中的内容(master);                                                                                                                                                                                                                                                                                                                              
            ===================                                                                                                                                                                                                                                                                                                                                     
            0. 退出安装;                                                                                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                                                                                                    
            请输入对应的数字:
    

    安装1-最新版过程:

    Connecting to api.github.com (140.82.118.6:443)                                                                                                                                                                                                                                                                                                                 
    -                    100% |****************************************************************************************************************************************************************************************************************************************************************************************************************|  3261  0:00:00 ETA 
                                                                                                                                                                                                                                                                                                                                                                    
    << 2019-11-13 17:28:04 >> == 开始 ==                                                                                                                                                                                                                                                                                                                              
    << 2019-11-13 17:28:04 >>                                                                                                                                                                                                                                                                                                                                       
    << 2019-11-13 17:28:04 >> 当前 Transmission Web 目录为:  /usr/share/transmission//web                                                                                                                                                                                                                                                                                
    << 2019-11-13 17:28:04 >> 您正在使用指定版本安装,版本: 1.6.0-beta2                                                                                                                                                                                                                                                                                                         
    << 2019-11-13 17:28:04 >> 正在尝试指定版本 1.6.0-beta2                                                                                                                                                                                                                                                                                                                  
    << 2019-11-13 17:28:04 >> 正在下载 Transmission Web Control...                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                    
    Connecting to github.com (140.82.118.4:443)                                                                                                                                                                                                                                                                                                                     
    Connecting to codeload.github.com (140.82.113.10:443)                                                                                                                                                                                                                                                                                                           
    v1.6.0-beta2.tar.gz  100% |****************************************************************************************************************************************************************************************************************************************************************************************************************| 1054k  0:00:00 ETAT
    << 2019-11-13 17:29:57 >> 下载完成,正在准备安装...                                                                                                                                                                                                                                                                                                                       
    << 2019-11-13 17:29:57 >> 正在解压安装包...                                                                                                                                                                                                                                                                                                                            
    << 2019-11-13 17:29:57 >> 正在复制安装包...                                                                                                                                                                                                                                                                                                                            
    << 2019-11-13 17:29:57 >> 正在设置权限,大约需要一分钟 ...                                                                                                                                                                                                                                                                                                                   
    << 2019-11-13 17:29:58 >> Transmission Web Control 安装完成!                                                                                                                                                                                                                                                                                                        
    << 2019-11-13 17:29:58 >> 正在清理安装包...                                                                                                                                                                                                                                                                                                                            
    << 2019-11-13 17:29:58 >> 安装脚本执行完成。如遇到问题请查看:https://github.com/ronggang/transmission-web-control/wiki                                                                                                                                                                                                                                                          
    << 2019-11-13 17:29:58 >> == 结束 ==                                             
    

    无需重启Tranmissioon,浏览器中刷新即可看到刚刚安装的UI

    地址:

    https://github.com/ronggang/transmission-web-control/wiki/Linux-Installation-CN
    
  7. 配置Tranmission

    {
       "alt-speed-down": 50,
       "alt-speed-enabled": false,
       "alt-speed-time-begin": 540,
       "alt-speed-time-day": 127,
       "alt-speed-time-enabled": false,
       "alt-speed-time-end": 1020,
       "alt-speed-up": 50,
       "bind-address-ipv4": "0.0.0.0",
       "bind-address-ipv6": "::",
       "blocklist-enabled": false,
       "blocklist-url": "http://www.example.com/blocklist",
       "cache-size-mb": 4,
       "dht-enabled": false,
       "download-dir": "/downloads/complete",
       "download-queue-enabled": true,
       "download-queue-size": 5,
       "encryption": 1,
       "idle-seeding-limit": 30,
       "idle-seeding-limit-enabled": false,
       "incomplete-dir": "/downloads/incomplete",
       "incomplete-dir-enabled": true,
       "lpd-enabled": false,
       "message-level": 2,
       "peer-congestion-algorithm": "",
       "peer-id-ttl-hours": 6,
       "peer-limit-global": 200,
       "peer-limit-per-torrent": 50,
       "peer-port": 51413,
       "peer-port-random-high": 65535,
       "peer-port-random-low": 49152,
       "peer-port-random-on-start": false,
       "peer-socket-tos": "default",
       "pex-enabled": true,
       "port-forwarding-enabled": true,
       "preallocation": 1,
       "prefetch-enabled": true,
       "queue-stalled-enabled": true,
       "queue-stalled-minutes": 30,
       "ratio-limit": 2,
       "ratio-limit-enabled": false,
       "rename-partial-files": true,
       "rpc-authentication-required": true,
       "rpc-bind-address": "0.0.0.0",
       "rpc-enabled": true,
       "rpc-host-whitelist": "",
       "rpc-host-whitelist-enabled": false,
       "rpc-password": "{8df91b78e4ef83ddab7f7f322ecec67e3667335fsb/QzjUj",
       "rpc-port": 9091,
       "rpc-url": "/transmission/",
       "rpc-username": "hongwei",
       "rpc-whitelist": "127.0.0.1",
       "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": 100,
       "speed-limit-down-enabled": false,
       "speed-limit-up": 100,
       "speed-limit-up-enabled": false,
       "start-added-torrents": true,
       "trash-original-torrent-files": false,
       "umask": 2,
       "upload-slots-per-torrent": 14,
       "utp-enabled": false,
       "watch-dir": "/watch",
       "watch-dir-enabled": true
      }
      
    
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值