V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wex
V2EX  ›  问与答

Linux 下还有什么好用的 BT 下载软件吗?

  •  
  •   wex · 2016-08-06 15:02:24 +08:00 · 4950 次点击
    这是一个创建于 2792 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用的 utorrent 简直不行啊


    有没有不自动停止的,要求带有 WEB 操作的
    25 条回复    2016-12-28 08:18:42 +08:00
    notgod
        1
    notgod  
       2016-08-06 15:18:15 +08:00   ❤️ 1
    其实你应该问 Linux 系统下
    哪个 BT 下载软件 对中文标题的支持最好

    我使用过的 有 2 个 都有 WEB 界面操作
    第一个 rtorrent.net
    需要安装 rtorrent 和 libtorrent
    然后加上 https://github.com/Novik/ruTorrent 的 Web 界面
    就可以了 Web ui 是 html+PHP+ RPC 协议通信

    这个怎么说勒
    功能强大 自动化很好
    速度也比较 NB
    但是对一些下载的特殊字符文件名 会导致崩溃 这个问题无解
    因为我经常下韩文的资源 然后就出奇葩问题 经常无故崩溃
    所以就放弃了
    下载英文资源 不带特殊符号的 一般不会有问题

    也贴个安装吧 For Centos7 的

    yum install -y cppunit cppunit-devel unrar xmlrpc-c-devel screen ncurses ncurses-devel
    rpm -Uvh http://pkgs.repoforge.org/unrar/unrar-5.0.3-1.el7.rf.x86_64.rpm

    cd /opt
    wget http://rtorrent.net/downloads/libtorrent-0.13.6.tar.gz
    tar xvf libtorrent-0.13.6.tar.gz
    cd libtorrent-0.13.6
    ./autogen.sh
    ./configure
    make && make install

    cd /opt
    wget http://rtorrent.net/downloads/rtorrent-0.9.6.tar.gz
    tar xvf rtorrent-0.9.6.tar.gz
    cd rtorrent-0.9.6
    PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    export PKG_CONFIG_PATH
    ./autogen.sh
    ./configure --with-xmlrpc-c
    make && make install
    ldconfig

    cat >/home/admin/.rtorrent.rc <<EOF
    #min_peers = 25
    max_peers = 100
    min_peers_seed = -1
    max_peers_seed = -1
    max_uploads = 100
    download_rate = 0
    upload_rate = 0
    directory = ~/bt/files
    session = ~/bt/.session
    schedule = watch_directory,5,5,load_start=~/bt/watch/*.torrent
    schedule = untied_directory,5,5,stop_untied=
    schedule = low_diskspace,5,60,close_low_diskspace=10240M
    # The ip address reported to the tracker.
    #ip = 127.0.0.1
    #ip = rakshasa.no
    #bind = 127.0.0.1
    #bind = rakshasa.no
    port_range = 6890-6999
    #port_random = no
    #check_hash = no
    #use_udp_trackers = yes
    #schedule = ip_tick,0,1800,ip=rakshasa
    #schedule = bind_tick,0,1800,bind=rakshasa
    #allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
    encryption = allow_incoming,enable_retry,prefer_plaintext
    dht = on
    dht_port = 6881
    peer_exchange = no
    #hash_read_ahead = 10
    #hash_interval = 100
    #hash_max_tries = 10
    scgi_port = 127.0.0.1:5000
    EOF

    su admin
    mkdir -p ~/bt/{files,watch,tmp,.session}
    chown -R admin:admin /home/admin/bt
    screen
    screen -S rtorrent -d -m su admin -c "rtorrent"
    echo 'screen -S rtorrent -d -m su admin -c "rtorrent"'>>/etc/rc.local

    mkdir /home/admin/public_html/tools
    cd /home/admin/public_html/tools
    git clone https://github.com/Novik/ruTorrent
    chown -R admin:admin /home/admin/public_html/tools

    修改 /home/admin/public_html/conf/config.php
    $tempDirectory = null;
    $tempDirectory = '/home/admin/bt/tmp';

    ps aux|grep torrent




    第二个 https://www.transmissionbt.com/
    自带 Web UI 的
    我使用体验没 Rtorrent 好 而且不知道为什么 速度也不如前者
    但是能用

    顺便贴个安装吧 For Centos 的

    yum install -y epel-release
    yum install -y transmission transmission-daemon
    systemctl start transmission-daemon
    systemctl stop transmission-daemon
    systemctl enable transmission-daemon.service

    mkdir -p /home/transmission/{download,waiting}
    chown -R transmission:transmission /home/transmission
    chmod g+w -R /home/transmission

    vi /var/lib/transmission/.config/transmission-daemon/settings.json

    "download-dir": "/home/transmission/download", #下载完成后的储存目录
    "incomplete-dir": "/home/transmission/download", #下载中的储存目录
    "rpc-authentication-required": true, #默认是 false, 改为 true 即可
    "rpc-password": "登陆密码", #默认是"一长串加密的密码"
    "rpc-username": "登陆用户名", #默认是"空的"
    "rpc-whitelist-enabled": false, #默认是 true, 改为 false 即可

    systemctl start transmission-daemon


    cat >/var/lib/transmission/.config/transmission-daemon/settings.json <<EOF
    {
    "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": true,
    "download-dir": "/home/transmission/download",
    "download-queue-enabled": true,
    "download-queue-size": 100,
    "encryption": 1,
    "idle-seeding-limit": 30,
    "idle-seeding-limit-enabled": false,
    "incomplete-dir": "/home/transmission/waiting",
    "incomplete-dir-enabled": true,
    "lpd-enabled": false,
    "message-level": 1,
    "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": 1,
    "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-password": "000000",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "admin",
    "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": true,
    "seed-queue-size": 1,
    "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": 18,
    "upload-slots-per-torrent": 14,
    "utp-enabled": true
    }
    EOF

    iptables -t filter -A INPUT -p tcp --dport 9091 -j ACCEPT
    iptables -t filter -A INPUT -p udp --dport 9091 -j ACCEPT

    This is a permission issue based on the user ID that is running Transmission. Transmission sets up a default user that you might not expect on first install. The user name is transmission.
    You can it:

    Stop the Transmission daemon service transmission-daemon stop
    Open the Transmission config file for editing: nano /etc/init.d/transmission-daemon
    Find the line that says USER=transmission and change it to the user that owns the folder in question. If you are not concerned about security issues, you can also use USER=root in this file. (Not advised, but good for troubleshooting).
    Start the Transmission daemon service transmission-daemon start
    imn1
        2
    imn1  
       2016-08-06 15:31:18 +08:00
    无论什么,带翻是需要的,因为几个主要的 DHT 服务器都墙了
    而且还需要选择性翻,不然 peers 也走梯子,这梯子也架不住重量会塌
    chocotan
        3
    chocotan  
       2016-08-06 15:33:11 +08:00
    qbittorrent
    Todd_Leo
        4
    Todd_Leo  
       2016-08-06 16:07:43 +08:00
    aria2c 可以哒
    xia0chun
        5
    xia0chun  
       2016-08-06 16:22:26 +08:00
    qbittorrent + 1
    ferran
        6
    ferran  
       2016-08-06 16:25:34 +08:00 via Android
    Qtorrent
    klesh
        7
    klesh  
       2016-08-06 16:34:35 +08:00
    Transmission ,一直用它挂 pt ,没崩溃过。
    chih
        8
    chih  
       2016-08-06 16:40:30 +08:00
    qbittorrent
    Vicer
        9
    Vicer  
       2016-08-06 16:58:41 +08:00 via Android
    @Todd_Leo aria2c ,怎么配置?搞了两天,下载 BT 都没速度。粘一下你的配置,参考一下
    chintj
        10
    chintj  
       2016-08-06 17:08:14 +08:00
    transmission 很稳定啊,就算 arm 也可以跑的不错。
    aria2c 默认不带 bt ,有点烦
    cncaihua
        11
    cncaihua  
       2016-08-06 17:12:39 +08:00 via Android
    Transmission, 可以安装 web interface
    chhx
        12
    chhx  
       2016-08-06 17:17:53 +08:00
    vuze 缺点是占用内存高点
    imswing
        13
    imswing  
       2016-08-06 17:30:07 +08:00 via Android
    马克,回去试试
    Suddoo
        14
    Suddoo  
       2016-08-06 17:33:13 +08:00 via Android
    deluge
    strwei
        15
    strwei  
       2016-08-06 18:09:22 +08:00
    居然没人说µTorrent
    chunchu
        16
    chunchu  
       2016-08-06 18:35:08 +08:00
    µTorrent 支持 x86 ,不支持树莓派,所以还是 Transmission 比较稳定一点
    xzpjerry731
        17
    xzpjerry731  
       2016-08-06 19:00:09 +08:00
    没人说 uget+aria2
    hosiet
        18
    hosiet  
       2016-08-06 19:09:24 +08:00 via Android
    transmission 稳定,该有的功能都有
    Bardon
        19
    Bardon  
       2016-08-06 19:31:36 +08:00
    挂 pt 就两个, transmission 与 rtorrent 。
    一般情况下 rtorrent 比较牛,配置项灵活,只不过有一个比较不爽,下完后要校验一遍,对于经常蓝光 pt 的人来说,这个校验太吃资源了。
    所以最后一只用 transmission 。
    KCheshireCat
        20
    KCheshireCat  
       2016-08-06 20:26:27 +08:00
    qbittorrent +2
    luo362722353
        21
    luo362722353  
       2016-08-07 07:55:37 +08:00 via iPhone
    deluge 也不错, rutorrent , transmission 用的最多的还是 deluge 和 rutorrent
    Peanut666
        22
    Peanut666  
       2016-08-07 12:45:50 +08:00
    @KCheshireCat 想请教一下你如何用 Wireshark 来观察 tcp 连接被劫持的情况 ,我这里四川移动劫持很严重,
    我把你之前写过的
    iptables -A FORWARD -p tcp -m tcp --sport 80 -m u32 --u32 "0>>22&60@10&25=25&&0>>22&60@9>>2&60@0=0x48545450&&0>>22&60@9>>2&60@8=0x20333032" -j DROP 放进 openwrt 路由器的防火墙,还是没用呢
    KCheshireCat
        23
    KCheshireCat  
       2016-08-07 13:59:43 +08:00   ❤️ 1
    @Peanut666

    这条规则主要是匹配针对网站主页面 302 跳转的劫持方式,

    不过最近使用更多的应该是对 js 脚本的进行注入,或者抢答正文使网页被 iframe 嵌套,从而对网站页面改写显示广告.

    用 Wireshark 对 tcp 劫持的观察,你还需要 chrome 的 f12 的开发者工具,并且对 html 各个节点的作用和 js 语言有初步的了解

    然后你要挑一个劫持高发的页面和时段,然后打开 Wireshark,开发者工具之后刷新页面等劫持包到来.

    出现劫持之后,开发者工具里面 Sources 页会显示页面对那些域名发送了请求,在这里应该能发现劫持之后对广告资源的请求

    然后到 Network 查找到底是哪个请求回复的被动了手脚,确认之后,再到 Wireshark 里寻找这条请求的 TCP 连接是怎么通信的,观察连接那些包是反常的,畸形的.这样最终能确定运营商是怎么抢答的.
    Peanut666
        24
    Peanut666  
       2016-08-07 14:32:33 +08:00
    @KCheshireCat 谢谢解答!!我现在已经对一次 jd.com 的劫持过程抓包完了,四川移动访问 jd.com 直接 302 跳转到自己的链接。但是我不是很懂,我能否把抓包保存下来传百度云盘,你有空帮我看分析一下?
    danili
        25
    danili  
       2016-12-28 08:18:42 +08:00
    @notgod 我的 screen rtorrent 过几天进程会自动结束,有什么办法能够保证他一直稳定运行吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2937 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:02 · PVG 22:02 · LAX 07:02 · JFK 10:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.