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
- echo 'deluge-web_user="deluge"' >> /etc/rc.conf
And to start it:
- /usr/local/etc/rc.d/deluge-web start
Then go with your web browser to:
http://<your jail ip>:8112 (default pw is "deluge" without the quotes)
NOTE: All users that are members of the 'media' group (both in FreeNAS - Account section in GUI, not the jail) will have
read access with this setup (since the guide assumes the 'media' group is the dataset owner), and the owner user of the dataset will have
write access to the files created by the processes in the jail (deluge). This is the way I like it, since I only want members of the 'media' group to have read access (i.e. the Plex user), and only my own user (owner of the dataset) write access.
If you want all the FreeNAS users that are members of the 'media' group to have write access too:
- Go into your jail
- ee /.cshrc
- Change the line umask 22 to umask 2
- [Esc], [a], [a] to save and close the file
- Restart the jail
Edit: adjusted for web version
Edit added note and instructions for file permissions. Thanks to
@JKman for the info.