qBittorrent是一个跨平台的开源、免费的BitTorrent客户端,本文介绍的是在Ubuntu系统中qBittorrent的安装过程
安装add-apt-repository命令
1
|
sudo apt-get update && sudo apt-get install software-properties-common -y
|
添加qbittorrent-nox的PPA软件源
1
2
|
# qBittorrent 稳定版
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
|
1
2
|
# qBittorrent 测试版
sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-unstable
|
安装qbittorrent-nox
1
|
sudo apt-get update && sudo apt-get install qbittorrent-nox -y
|
设置开机启动
1
|
sudo apt-get install vim -y && vim /etc/systemd/system/qbittorrent-nox.service
|
1
2
3
4
5
6
7
8
9
10
|
[Unit]
Description=qBittorrent-nox
After=network.target
[Service]
User=root
Type=forking
RemainAfterExit=yes
ExecStart=/usr/bin/qbittorrent-nox -d
[Install]
WantedBy=multi-user.target
|
相关命令
修改qbittorrent-nox.service文件后重新载入
1
|
sudo systemctl daemon-reload
|
启动
1
|
sudo systemctl start qbittorrent-nox
|
停止
1
|
sudo systemctl stop qbittorrent-nox
|
设置开机启动
1
|
sudo systemctl enable qbittorrent-nox
|
查看状态
1
|
sudo systemctl status qbittorrent-nox
|
默认账号:admin 密码:adminadmin
默认登陆网址:ip:8080
根据qBittorrent官网的更新日志https://www.qbittorrent.org/news ,4.6.1.0包含一个重大更新。可以看到自4.6.1.0开始,qBittorrent将弃用adminadmin默认密码,采用随机密码,将在终端控制台输出显示。
停止
1
|
sudo systemctl stop qbittorrent-nox
|
修改密码
1
|
vim ~/.config/qBittorrent/qBittorrent.conf
|
添加[Preferences]节,添加WebUIPort=**行,添加在其上方或下方。
1
|
WebUI\Password_PBKDF2="@ByteArray(ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==)"
|
启动
1
|
sudo systemctl start qbittorrent-nox
|
账号:admin 密码:adminadmin
本文参考Ubuntu安装qbittorrent-nox - 简书 (jianshu.com),感谢原发布者