I tried some stuff again and came up with a super simple guide.
Assuming the dataset you want to use for downloads is the 'media' dataset and is owned by a group named 'media' with group ID 2000
Assuming you are only installing the no-gtk version in the jail, so you are going to use the GTK client (and/or the web version --> see remark at the bottom of this post).
- Create the jail (and add the 'media' dataset as storage, mounted at /mnt/media), and in that jail, do this:
- pkg update
- pkg upgrade
- pkg install deluge-cli (this doesn't include web version --> see bottom of this post for different package to use for web version)
- pw useradd -n deluge -u 1001 -c "Deluge BitTorrent Client" -s /sbin/nologin -w no
- echo 'deluged_enable="YES"' >> /etc/rc.conf
- echo 'deluged_user="deluge"' >> /etc/rc.conf
- mkdir -p /home/deluge/.config/deluge
- chown -R deluge:deluge /home/deluge/
- ee /etc/group
- in that file, add or modify the line to make the deluge user member of the media group:
- media:*:2000:deluge
- [Esc], [a], [a] to save and close the file
- /usr/local/etc/rc.d/deluged start
- /usr/local/etc/rc.d/deluged stop
- If you want to use the gtk-client:
- ee /home/deluge/.config/deluge/core.conf
- in that file, change the line:
- “allow_remote”: true
- [Esc], [a], [a] to save and close the file
- echo "[username]:[password]:10" >> /home/deluge/.config/deluge/auth
(of course replace [username] and [password] with your credentials.
- chmod 555 /home/deluge/.config/deluge/auth
- /usr/local/etc/rc.d/deluged start
That's it. Everything is working again :)
Connect with your Deluge gtk client application to hostname <your jail ip>, port 58846, and your user credentials
If you want to use the web version, then instead of installing deluge-cli, you have to install the deluge package in step 4, since it is not included in the cli version. To enable the web version, also run this command once after installation:
- echo 'deluge-web_enable="YES"' >> /etc/rc.conf
Then go with your web browser to:
http://<your jail ip>:8112 (default pw is "deluge" without the quotes)
Edit: adjusted for web version