创建默认配置目录
mkdir -p ~/.config/qBittorrent
创建配置文件
touch ~/.config/qBittorrent/qBittorrent.conf
编辑文件
nano ~/.config/qBittorrent/qBittorrent.conf
添加下面的内容,Web UI 端口可以自行定义
[LegalNotice]
Accepted=true
[Preferences]
WebUI\Port=8080
General\Locale=zh
WebUI\HostHeaderValidation=false
WebUI\CSRFProtection=false
输入完后,按下Ctrl+X
,然后输入y保存
根据需求下载编译好的二进制文件: https://github.com/userdocs/qbittorrent-nox-static/releases/
可以将下载地址替换下面wget的地址: https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.6.3_v2.0.10/x86_64-qbittorrent-nox
mkdir -p ~/bin && source ~/.profile
wget -qO ~/bin/qbittorrent-nox https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-4.6.3_v2.0.10/x86_64-qbittorrent-nox
chmod 700 ~/bin/qbittorrent-nox
输入
~/bin/qbittorrent-nox
新版本启动后会出现一个随机密码,默认用户名为:admin
访问:IP:8080
进入Qbitorrent,选择工具->选项->WebUI
修改账号密码,修改之后每次启动就不会使用随机密码启动了。