PT下载入门教程

PT (英语:Private Tracker)是一种BitTorrent协议 “BitTorrent协议”) “BitTorrent (协议)")的P2P下载方式的另一种形式,“Private Tracker”指私有种子服务器。与BT最大的不同点为:进行私密范围下载,并且记录每一个用户的详细数据。

毕竟哪个男孩不想拥有自己的下载/看片服务器~

可以理解为PT就是BT的子集,关于BT的知识回形针的视频「别再问我什么叫 BT 种子」讲得通俗易懂,可以参考学习一下。

# 前言

教程将选用Debian作为seedbox(种子盒子),需要安装 qBittorrent-noxTransmission,以及 Flood

如果需要抢上传建议使用 qBittorrentDeluge+ltConfig插件,rTorrentTransmission更适合保种。

# 主机选购

PT下载是不需要担心版权问题的,推荐购买BuyVM中物理距离较近的拉斯维加斯。如果是下载BT可以选择购买抗版权DMCA投诉的卢森堡。

BuyVM

其优点如下:

  • 不限流量,可附加存储块
  • 价格适中,性能较强
  • 抗版权DMCA投诉(卢森堡)
  • 支持支付宝付款
  • 加币结算,更加实惠(支付宝)

# 主机购买

购买连接如下 https://my.frantech.ca/aff.php?aff=3888

  • 注册时请务必填写真实信息,BuyVM会审核信息真实性
  • 选择Order Hosting,选择AMD RYZEN KVM
  • 购买存储块,选择Block Storage Slabs

# 设置存储块

  1. 进入BuyVM Stallion 后台,将 Block Storage 附加到(Attached To) VPS

  2. 使用下面的命令查看刚才附加的存储块路径

    1
    2
    3
    4
    5
    6
    7
    8
    
    $ sudo lsblk -o name,vendor,model,size
    
    NAME   VENDOR   MODEL             SIZE
    sda    BUYVM    SLAB                250G
    sr0    QEMU     QEMU DVD-ROM     1024M
    vda    0x1af4                      10G
    ├─vda1                            9.5G
    └─vda2                            512M
    
  3. /dev/sda创建 GUID 分区表 (GPT)

    1
    
    parted /dev/sda mklabel gpt
    

    创建分区

    1
    
    parted /dev/sda mkpart primary 0% 100%
    
  4. 检查创建的新分区

    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    $ sudo lsblk -o name,vendor,model,size
    
    NAME   VENDOR   MODEL             SIZE
    sda    BUYVM    SLAB                250G
    └─sda1
    sr0    QEMU     QEMU DVD-ROM     1024M
    vda    0x1af4                      10G
    ├─vda1                            9.5G
    └─vda2                            512M
    
  5. 格式化存储块,并使用 ext4作为文件系统

    1
    
    mkfs.ext4 /dev/sda1
    
  6. 挂载存储块

    首先查看存储块UUID,将显示如下信息

    1
    2
    3
    
    blkid
    
    /dev/sda1: UUID="1cb43a43-105c-46f1-9d7f-1c736c10ffdf" TYPE="ext4"
    

    设置开机自动挂载,编辑 /etc/fstab并添加下面的内容

    1
    
    UUID=1cb43a43-105c-46f1-9d7f-1c736c10ffdf /mnt/slab ext4 defaults 0 0
    
  7. 创建挂载点

    1
    
    mkdir /mnt/slab/
    
  8. 挂载存储块

    1
    
    mount -a
    

    检查挂载

    1
    2
    3
    4
    5
    6
    
    $ df -h
    
    Filesystem      Size  Used Avail Use% Mounted on
    [...]
    /dev/sda1       251G  81M   250G 1% /mnt/slab
    [...]
    

# Transmission安装与配置

可通过http://ip-of-server:9001访问网络面板

# 安装

1
$ sudo apt install transmission-daemon

# 配置

  1. 停止Transmission
    1
    
    $ sudo systemctl stop transmission-daemon
    
  2. 编辑配置文件 /etc/transmission-cli/settings.json,以下为建议修改的配置内容
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    "download-dir": "/PT/Downloads", # 下载完成的保存路径
    "rpc-authentication-required": true,
    "rpc-enabled": true,
    "rpc-password": "密码",
    "rpc-username": "账户",
    "rpc-whitelist-enabled": false,
    "rpc-whitelist": "0.0.0.0",
    "cache-size-mb": 4, # 缓存大小,单位MB,建议设置内存大小的1/6~1/4
    "preallocation": 1, # 预分配文件磁盘空间,0=关闭,1=快速,2=完全,默认取1,防止文件下载了一半后才发现磁盘空间不够,取2时耗时较多,但是可以减少磁盘碎片;0可以有效利用空间
    

# 服务与权限

  • 启动服务:sudo systemctl start transmission-daemon
  • 检查状态:systemctl status transmission-daemon
  • 停止服务:sudo systemctl stop transmission-daemon
  • 开机自启:sudo systemctl enable transmission-daemon
1
2
$ sudo chmod 775 -R /PT/Downloads
$ sudo chown transmission:transmission -R /your/folders

# 网页UI主题安装

1
2
$ sudo wget https://github.com/ronggang/transmission-web-control/raw/master/release/install-tr-control-cn.sh
$ sudo chmod +x install-tr-control-cn.sh

# qBittorrent安装与配置

可通过http://ip-of-server:8080访问网络面板

# 安装

1
$ sudo apt install qbittorrent-nox

接受免责声明

1
2
3
4
5
6
7
$ qbittorrent-nox

******** Information ********
To control qBittorrent, access the Web UI at http://localhost:8080
The Web UI administrator user name is: admin
The Web UI administrator password is still the default one: adminadmin
This is a security risk, please consider changing your password from program preferences.

默认帐号密码

1
2
User: admin
Password: adminadmin

# 创建守护进程

创建文件 /etc/systemd/system/qbittorrent.service

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
[Unit]
Description=qBittorrent-nox service
Wants=network-online.target
After=network-online.target nss-lookup.target

[Service]
Type=exec
User=qbtuser
ExecStart=/usr/bin/qbittorrent-nox
Restart=on-failure
SyslogIdentifier=qbittorrent-nox

[Install]
WantedBy=multi-user.target

更新服务管理

1
$ sudo systemctl daemon-reload

# 服务与权限

  • 启动服务:sudo systemctl start qbittorrent
  • 检查状态:systemctl status qbittorrent
  • 停止服务:sudo systemctl stop qbittorrent
  • 开机自启:sudo systemctl enable qbittorrent
1
2
$ sudo chmod 775 -R /your/folders
$ sudo chown qbtuser:qbtuser -R /your/folders

# Flood安装与配置

可通过http://ip-of-server:3000访问网络面板

# 安装

添加软件源

1
$ sudo echo "deb [trusted=yes] https://deb.jesec.io/ devel main" | sudo tee /etc/apt/sources.list.d/jesec.list

安装

1
$ sudo apt update && sudo apt install -y flood

# 创建守护进程

创建文件 /etc/systemd/system/flood.service

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[Unit]
Description=Flood
Documentation=https://github.com/jesec/flood/wiki
After=network.target

[Service]
Type=simple
KillMode=process
Restart=on-failure
User=flood
Group=flood
ExecStart=/usr/local/bin/flood -h 0.0.0.0
WorkingDirectory=/home/flood

[Install]
WantedBy=multi-user.target

# 服务

  • 启动服务:sudo systemctl start flood
  • 检查状态:systemctl status flood
  • 停止服务:sudo systemctl stop flood
  • 开机自启:sudo systemctl enable flood

# PT站点汇总

排名部分先后,不为引战,只提供萌新参考(更新于2020-9-24)

# 教育站

# IPV4可用

  • 【北洋园】TJUPT(天津大学)
  • 【百川】HITPT(哈尔滨工业大学)
  • 【南洋】NYPT(西安交通大学)
  • 【葡萄】SJTU(上海交通大学)
  • 【好多油/HDU】 upxin(杭州电子科技大学)
  • 【蝴蝶】HUD(华中科技大学)
  • 【PT江湖】DUTPT(大连理工大学)

# 仅IPV6

  • 【北邮人】BYRBT(北京邮电大学)
  • 【六维】六维空间(东北大学)
  • 【极速之星】bitpt(北京理工大学)
  • 【麦田】麦田PT(西北农林科技大学)
  • 【蒲公英】NPU(多所学校共建)

# 五大顶级综合站

  • 【馒头】M-Team
  • 【天空】HDsky
  • 【TTG】Totheglory
  • 【彩虹岛】CHDBits
  • 【瓷器】HDChina

# 顶级PT站

  • 【我堡】Ourbits
  • 【家园】HDHome
  • 【朋友】KeepFrds
  • 【春天】SSD

# 一线站点(torrents>=1W)

  • 【猫站】PTerclub
  • 【兽站】HD4Fans
  • 【思路/HDR】hdroute
  • 【铂金家】Pthome 合并了 【萌猫】moecat
  • 【学校】Btschool
  • 【视界】HDArea
  • 【柠檬】LeagueHD
  • 【杜比】HD Dobly
  • 【时间】HDTime
  • 【吐鲁番】TFLBits/eastgame
  • 【CCF】ccfbits

# 新站/小站(torrents<1W)

  • 【城市】HDCity
  • 【影客】Yingk
  • 【JoyHD】JoyHD
  • 【烧包】Ptsbao
  • 【备胎】Beitai
  • 【马杀鸡/美术馆】PTMSG
  • 【我爱PT】52PT
  • 【红豆饭】HDFans
  • 【空间】HDZone
  • 【海胆】HaiDan
  • 【欧神】oshenPT
  • 【机械硬盘】HDDisk/HDBug
  • 【麦PT】1ptba
  • 【龙之家】dragonhd
  • 【全景声】hdatmos
  • 【大卫堡】PTNIC

# 特色站

# 电子书/有声读物

  • 【聆听】Soulvoice

# 音乐

  • 【皇后】OpenCD
  • 【海豚】DICMusic
  • 【定海村】DHC

# 学外语

  • 【老师】NicePT
  • 【艾薇网】AVGV
  • 【伊甸园】HDbd
  • 【gaytorrents】gaytorrents

# 动漫

  • 【幼儿园】dmhy/U2
  • 【天雪】SkyeySnow

# 华语影视

  • 【港知堂】DiscFan
  • 【高清街】HDStreet

# 教育资源

  • 【TCCF/他吹吹风】torrentccf

# 国外站点

  • 【海德堡】HDB(世界第一高清影音综合站)
  • BTN(世界第一美剧站)
  • PTP(世界第一电影站)
  • CG(cult、恐怖、B级片等)
  • KG(文艺、喜剧、默片等)
  • TIK(小众电影圆盘站)
  • RED(第一音乐站)
  • GGN(第一游戏软件站)
  • AHD(高清电影站)
  • Ab(第一ACG站)
  • Bib(第一电子书站)
  • emp(第一X站)
  • exoticaz(X站)
  • ipt(宇宙第一大站)
  • 【文件列表】FileList
  • 【HDT】hd-torrents
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计