Ubuntu24.04安装qbittorrent-enhanced-nox(四)

Ubuntu24.04安装qbittorrent-enhanced-nox(四)

安装

下载

wget https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/download/release-5.0.4.10/qbittorrent-enhanced-nox_x86_64-linux-musl_static.zip
bash
  • 1

安装unzip

sudo apt install unzip
bash
  • 1

解压

sudo unzip qbittorrent-enhanced-nox_x86_64-linux-musl_static.zip -d /usr/bin
bash
  • 1

启动服务

新建配置文件

sudo vi /etc/systemd/system/qbittorrent-nox.service
bash
  • 1

添加内容

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

[Service]
Type=simple
User=root
Group=root
UMask=007
ExecStart=/usr/bin/qbittorrent-nox --webui-port=8082
Restart=on-failure

[Install]
WantedBy=multi-user.target
bash
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

重载

sudo systemctl daemon-reload
bash
  • 1

开机自启

sudo systemctl enable qbittorrent-nox
bash
  • 1

启动

sudo systemctl start qbittorrent-nox
bash
  • 1

查看状态

sudo systemctl status qbittorrent-nox
bash
  • 1

在这里插入图片描述

连接WebUI

在浏览器输入192.168.22.101:8082
输入上面的用户名和密码,登录
在这里插入图片描述
设置在这里插入图片描述设置中文
在这里插入图片描述在这里插入图片描述在这里插入图片描述

在这里插入图片描述在这里插入图片描述
在这里插入图片描述在这里插入图片描述设置用户名和密码,保存
在这里插入图片描述

解决权限问题

创建shell

vi myshell
bash
  • 1

写入内容,其中密码替换为root密码

echo 密码 | sudo -s chmod 777 -R /mnt/disk/
bash
  • 1

设置qbittorrent运行脚本
在这里插入图片描述

开启smb服务

安装samba

sudo apt-get install samba samba-common
bash
  • 1

添加用户

sudo smbpasswd -a qing
bash
  • 1

修改配置文件

sudo vi /etc/samba/smb.conf
bash
  • 1
[share]
comment = share folder
browseable = yes
path = /mnt/disk
create mask = 0700
directory mask = 0700
valid users = qing
force user = qing
force group = qing
public = yes
available = yes
writable = yes
bash
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

参考

【详细步骤】Ubuntu安装Samba服务及配置共享文件夹


显示推荐内容

点击体验DeepSeekR1满血版
返回顶部
客服 返回顶部