
我已將 systemd 設定deluged
為一項服務,以 user 身分執行deluge
。這個守護程式可以正常運作,因為deluge-console
如果我手動輸入憑證,我可以使用 Web-ui 並進行連線。但是,當我只是deluge-console
以普通用戶身份運行(在同一台電腦上本地運行)時(即不是deluge
),我只是收到“用戶名不存在”錯誤訊息。
守護程序的主目錄僅var/lib/deluge
包含.也同樣如此。我已經了解到,當以我的用戶身份運行時,預設將使用後一個檔案進行身份驗證。顯然事實並非如此。var/lib/deluge/.config/deluge/auth
test:test:10
~/.config/deluge/auth
deluge-console
connect localhost test test
在裡面打字deluge-console
有效。運行
deluge-console -c ~/.config/
或deluge-console -c ~/.config/deluge
不起作用(我不清楚開發人員所說的“配置文件夾位置”是什麼意思)。- 隱藏在http://dev.deluge-torrent.org/wiki/UserGuide/Authentication他們說應該始終有一個“localclient”條目
auth
——將其添加到兩個身份驗證文件中並沒有幫助。
我缺什麼?
不重複:https://superuser.com/a/619383/36197
這是在執行 OSMC 的 Raspberry Pi 3 上完成的。
答案1
我不知道是哪件事造成的,但運行後我可以自動與控制台連接:
systemctl stop deluged
systemctl start deluged
我不清楚何時需要這樣做。我的印像是,我可以在守護程序運行時編輯身份驗證文件,並且每次都會查找它。
答案2
我使用相同的作業系統和硬體。
將設定參數設定-c
為指向 deluge.pid、auth、core.conf、dht.state 和其他檔案所在的 Deluge 設定目錄。
$ deluge-console -c /var/lib/deluge/.config/deluge/ "add '/home/osmc/Downloads/totally not weird.torrent'"
Attempting to add torrent: /home/osmc/Downloads/totally not weird.torrent
Torrent added!