21

Install qbittorrent on raspberry pi(Debian)

 2 years ago
source link: https://azhuge233.com/install-qbittorrent-on-raspberry-pidebian/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Install qbittorrent on raspberry pi(Debian)

19.01.14更新:使用qbtuser用户无法在外接硬盘写入文件(表现为无法下载,已经在OpenMediaVault中配置过用户特权),修改qbittorrent.service文件中的【User=qbtuser】为【User=root】,使用root用户开启qbt即可。因为是家庭内网使用,安全问题不严重。

  • ARMBian 5.46(OpenMediaVault镜像)

Setting up qBittorrent on Ubuntu server as daemon with Web interface (15.04 and newer)

  1. (可选)添加qbt源,不添加源也可以安装
    sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
    sudo add-apt-repository ppa:qbittorrent-team/qbittorrent-stable
  2. 安装qbittorrent-nox
    sudo apt-get update && sudo apt-get install qbittorrent-nox
    sudo apt-get update && sudo apt-get install qbittorrent-nox
  3. 添加用户(考虑到安全问题)
    sudo adduser qbtuser
    # 输入密码后一路回车即可
    sudo adduser qbtuser
    # 输入密码后一路回车即可
  4. 创建系统服务,新建/etc/systemd/system/qbittorrent.service文件,写入以下内容
    [Unit]
    Description=qBittorrent Daemon Service
    After=network.target
    [Service]
    User=qbtuser
    ExecStart=/usr/bin/qbittorrent-nox
    ExecStop=/usr/bin/killall -w qbittorrent-nox
    [Install]
    WantedBy=multi-user.target
    [Unit]
    Description=qBittorrent Daemon Service
    After=network.target
    
    [Service]
    User=qbtuser
    ExecStart=/usr/bin/qbittorrent-nox
    ExecStop=/usr/bin/killall -w qbittorrent-nox
    
    [Install]
    WantedBy=multi-user.target
  5. 更新systemctl
    sudo systemctl daemon-reload
    sudo systemctl daemon-reload
  6. 切换到qbtuser并初次运行qbittorrent,以生成配置文件来保存设置
    sudo su qbtuser
    qbittoreent-nox
    sudo su qbtuser
    qbittoreent-nox
  7. 运行后通过访问树莓派IP+8080端口来进入qbt的Webui。默认管理员用户名为admin,密码为adminadmin。
  8. ctrl+c结束qbt进程,exit退出qbtuser用户。
  9. 开启qbt服务
    #开启qbt服务
    systemctl start qbittorrent
    #查看服务状态
    systemctl status qbittorrent
    #服务开机自启
    systemctl enable qbittorrent
    #开启qbt服务
    systemctl start qbittorrent
    #查看服务状态
    systemctl status qbittorrent
    #服务开机自启
    systemctl enable qbittorrent

可惜的是qbittorrent的webui没有提供rss订阅自动下载功能,下一步应该会配合flexget实现。

所有, 树莓派树莓派

发表评论 取消回复

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

评论

显示名称 *

电子邮箱地址 *

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK