更新系统
apt-get update
apt-get upgrade
安装transmission
apt-get install transmission-daemon
service transmission-daemon stop
nano /etc/transmission-daemon/settings.json
修改以下字段
"rpc-enable" = true,
"rpc-password" =“omv5”,
"rpc-port" = 9091,
"rpc-username" = "transmission",
"rpc-whitelist " = "*",
"download-dir":"/srv/dev-disk-by-label-MYUN/download",
"incomplete-dir":"/srv/dev-disk-by-label-MYUN/download"
上面下载目录和未完成目录的地址可以通过omv 的文件系统中来查看,也可以在命令行下采用ls命令查看 /srv 下的磁盘,补充完整磁盘路径,最后分别增加/download /incomplete ,这样就得到了完整的下载目录路径
ls /srv
编辑完成后,保存文件,然后启动transmission 服务
service transmission-daemon start
如果提示有如下udp错误
UDP Failed to set receive buffer: requested 4194304, got 327680 (tr-udp.c:78)
UDP Failed to set send buffer: requested 1048576, got 327680 (tr-udp.c:89)
是UDP接收和发送的缓冲区太小的问题,运行下列命令即可
sudo sysctl -w net.core.rmem_max=4195328
sudo sysctl -w net.core.wmem_max=4195328
sudo sysctl -w net.core.wmem_default=4195328
sudo sysctl -w net.core.rmem_default=4195328
sudo sysctl -w net.ipv4.udp_mem="4195328 4195328 4195328"
sudo sysctl -w net.ipv4.udp_rmem_min=4195328
sudo sysctl -w net.ipv4.udp_wmem_min=4195328
安装web-UI
wget https://gitee.com/culturist/transmission-web-control/raw/master/release/install-tr-control-gitee.sh
bash install-tr-control-gitee.sh
安装完毕后 在浏览器中访问transmission页面,其中xx.xx.xx.xx代表你的nas IP地址
http://xx.xx.xx.xx:9091
输入用户名和密码,见配置文件中
更新系统显示权限不够,我这边该如何更改权限?
加个sudo 以管理员身份运行试试