FnOS安装qbittorrent-enhanced-nox并设置开机自启

FnOS安装qbittorrent-enhanced-nox并设置开机自启

AI智能摘要
飞牛系统基于Debian,可手动安装qBittorrent增强版以解决应用商店版本老旧问题。通过SSH连接后安装qbittorrent-nox,浏览器访问IP:8080配置账号密码。创建systemd服务文件并写入启动参数,重载配置后启用开机自启,使用status命令确认运行状态。卸载时需停止服务、禁用自启、删除服务文件并清除软件包与配置残留。
— 此摘要由AI分析文章内容生成,仅供参考。

飞牛应用商店中虽然提供了qBittorrent应用,但是一直都没有更新,也无法自动更新tracker,所以我更倾向于自己安装qBittorrent增强版。

FnOS系统是基于Linux内核(Debian发行版)开发,所以我们直接按照文档说明进行操作。

安装

选择Debian12,使用SSH工具连接飞牛,依次粘贴命令。

图片[1]-FnOS安装qbittorrent-enhanced-nox并设置开机自启-四次元拾光

如下图安装成功

图片[2]-FnOS安装qbittorrent-enhanced-nox并设置开机自启-四次元拾光

接着输入命令临时启动qbittorrent-enhanced-nox

qbittorrent-nox
图片[3]-FnOS安装qbittorrent-enhanced-nox并设置开机自启-四次元拾光

浏览器地址输入飞牛ip:8080打开web页面登录,在设置里修改用户名和密码,接下来设置开机自启。

设置开机自启

创建系统服务文件

执行命令创建并编辑服务配置文件:

sudo vim /etc/systemd/system/qbittorrent-nox.service

写入服务配置内容

i 粘贴以下内容,按 Esc 退出输入,按 :wq 保存退出

[Unit]
Description=qBittorrent Command Line Client
After=network.target

[Service]
Type=forking
User=root
ExecStart=/usr/bin/qbittorrent-nox -d
Restart=on-failure

[Install]
WantedBy=multi-user.target

重载配置并启用自启

依次执行以下命令,完成后就设置好开机自启了:

# 重载systemd配置使其生效
sudo systemctl daemon-reload
# 启动qbittorrent-nox服务
sudo systemctl start qbittorrent-nox
# 设置开机自启
sudo systemctl enable qbittorrent-nox

验证状态

执行命令查看服务是否正常运行:

sudo systemctl status qbittorrent-nox
图片[4]-FnOS安装qbittorrent-enhanced-nox并设置开机自启-四次元拾光

若显示“Active: active (running)”,则说明配置成功。

卸载

取消开机启动(Debian/Ubuntu 通用,基于 systemd)

停止当前运行的服务:

sudo systemctl stop qbittorrent-nox

禁用开机自启:

sudo systemctl disable qbittorrent-nox

删除服务文件(若手动创建过):

sudo rm /etc/systemd/system/qbittorrent-nox.service

刷新 systemd 配置:

sudo systemctl daemon-reload && sudo systemctl reset-failed

彻底卸载软件

移除软件包及依赖:

sudo apt purge --auto-remove qbittorrent-nox -y

清理残留文件:

  • 配置文件:
rm -rf ~/.config/qbittorrent ~/.local/share/data/qbittorrent
  • 系统级配置:
sudo rm -rf /etc/qbittorrent
  • 日志文件:
sudo rm -rf /var/log/qbittorrent-nox

移除安装源:

sudo add-apt-repository --remove ppa:qbittorrent-team/qbittorrent-stable -y

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容