安装
下载
wget https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/download/release-5.0.4.10/qbittorrent-enhanced-nox_x86_64-linux-musl_static.zipbash
- 1
安装unzip
sudo apt install unzipbash
- 1
解压
sudo unzip qbittorrent-enhanced-nox_x86_64-linux-musl_static.zip -d /usr/binbash
- 1
启动服务
新建配置文件
sudo vi /etc/systemd/system/qbittorrent-nox.servicebash
- 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.targetbash
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
重载
sudo systemctl daemon-reloadbash
- 1
开机自启
sudo systemctl enable qbittorrent-noxbash
- 1
启动
sudo systemctl start qbittorrent-noxbash
- 1
查看状态
sudo systemctl status qbittorrent-noxbash
- 1
连接WebUI
在浏览器输入192.168.22.101:8082
输入上面的用户名和密码,登录
设置设置中文
设置用户名和密码,保存
解决权限问题
创建shell
vi myshellbash
- 1
写入内容,其中密码替换为root密码
echo 密码 | sudo -s chmod 777 -R /mnt/disk/bash
- 1
设置qbittorrent运行脚本
开启smb服务
安装samba
sudo apt-get install samba samba-commonbash
- 1
添加用户
sudo smbpasswd -a qingbash
- 1
修改配置文件
sudo vi /etc/samba/smb.confbash
- 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 = yesbash
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12