SYS ARM Debian9 安装qBittorrent

文章转自 https://www.anidays.com/archives/70/

谢谢会煮鱼的猫,文章说的是debian9,其实ubuntu16.04也是合适的

今天没事买了个SYS ARM-2T的服务器,硬盘3500小时,250M的带宽,感觉用来刷PT还是蛮不错的,下面结合网上教程和我的实操,说一下ARM怎么装qBittorrent 4.1.5

环境:armbian_9.9 x32

1、安装依赖软件

apt-get -yqq update; apt-get -yqq upgrade; \
apt-get -y install build-essential checkinstall pkg-config automake libtool git screen libgeoip-dev python3 python3-dev zlib1g-dev \
libboost-dev libboost-system-dev libboost-chrono-dev libboost-random-dev libssl-dev \
qtbase5-dev qttools5-dev-tools libqt5svg5-dev nano

可以直接一起复制

2、安装libtorrent 1.1.13

一行一行来

wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1_13/libtorrent-rasterbar-1.1.13.tar.gz

tar xf libtorrent-rasterbar-1.1.13.tar.gz

cd libtorrent-rasterbar-1.1.13

./configure --disable-debug --enable-encryption --with-libgeoip=system CXXFLAGS=-std=c++11 --with-boost-libdir=/usr/lib/arm-linux-gnueabihf

make -j$(nproc) && make install

checkinstall -y   
#此条命令会生成安装包,可以跳过

ldconfig

1.1.13比较稳定,所以选用他,但其他的也不是说不可以,其他版本:https://github.com/arvidn/libtorrent/releases

3、安装qBittorrent 4.1.5

虽然最新的是4.1.6,但是4.1.5比较稳定,我用起来没啥问题。下面的命令一行一行来。

wget https://github.com/qbittorrent/qBittorrent/archive/release-4.1.5.tar.gz
tar xf release-4.1.5.tar.gz

cd qBittorrent-release-4.1.5

./configure --disable-gui --disable-debug --with-boost-libdir=/usr/lib/arm-linux-gnueabihf

make -j$(nproc) && make install

checkinstall -y   
#此条命令会生成安装包,可以跳过

其他qb版本:https://github.com/qbittorrent/qBittorrent/releases

4、安装qBittorrent服务

安装qb的服务文件,可以达到开机启动的效果。
首先启动一次qBittorrent并且同意它的条款:

qbittorrent-nox -d

默认的WebUI:http://服务器IP:8080/
默认用户名:admin
默认密码:adminadmin

为qBittorrent添加相应的启动脚本:

touch /etc/systemd/system/qbittorrent.service
nano /etc/systemd/system/qbittorrent.service

粘贴

[Unit]
Description=qBittorrent Daemon Service
After=network.target
 
[Service]
Type=forking
ExecStart=/usr/local/bin/qbittorrent-nox -d
ExecStop=/usr/bin/killall -w -s 9 /usr/local/bin/qbittorrent-nox
TimeoutSec=300
 
[Install]
WantedBy=multi-user.target

Ctrl+X,按Y保存

设置开机启动:

systemctl enable qbittorrent

其他:

#重启systemctl
systemctl daemon-reload

#启动qb
systemctl start qbittorrent

#停止qb
systemctl stop qbittorrent

#查看qb运行状态
systemctl status qbittorrent

4、升级qBittorrent

首先停止qb

systemctl stop qbittorrent

然后下载新的安装包,执行编译qb那一步,最后在启动qb,注意libtorrent版本配对。

参考文献:
1、https://amefs.net/archives/1648.html
2、https://ymgblog.com/2017/09/24/147/
3、https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-nox-4.x-on-DietPi-or-Raspbian-(Debian-9.0)-for-ARM-devices

点赞

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注