SOLVED Qbittorrent with shared folder set up via SMB

Oriann

Explorer
Joined
Dec 15, 2018
Messages
84
Hello guys

So after 3 days spending most of my time triyng to figure out how to share that damn folder with my pc without deniying permissiong to qbittorrent I finally GOT THIS !

*celebrate emoji* :D

Here is how:

1. I assume you have qbittorrent set up and working and you have user qbittorrent made early and you have dataset or folder outside jail for downloaded files

2. Stop qbittorrent in jail

Code:
service qbittorrent stop


3. Set up share for folder where you have mount point from download folder from qbittorrent

Sharing > Windows share > Add > path(for my folder, use yours) mnt/tank/qbit/download > give it name for ex. download > SAVE

4. SMB will start after you make this share folder

5. Now console into qbittorrent jail

Code:
iocage console qbit
cd .. \\going to root
cd media \\going to folder where I have folders incomplete and download for qbittorrent
ls -al \\ list folder permissions etc...


6. Now you will see that you permissions for download folder are for example 901:901, change that for qbittorrent user and group

Code:
chown -R qbittorrent:qbittorrent download


7.Now go to FreeNAS GUI and go to Storage > Pools > and look for dataset permissions where you store downloaded files from qbittorrent (mount point) if permissions say User:Group, that should be ok

8. Start qbittorrent in jail

Code:
service qbittorrent start


9. In Windows go to windows explorer > Map network drive > insert info there > Connect with different credentials > login as User1 for example > Done

10. Voila

Check now qbittorrent if it downloads and seed, if YES then BRAVO you have done it and should be happy as me :D
 

Oriann

Explorer
Joined
Dec 15, 2018
Messages
84
Could you please list the steps installing qbittorrent in an iocage jail.
Thanks in advance.

Sorry for late answer:

Here are commands:

Firstly I change pkg to latest
ee /etc/pkg/FreeBSD.conf
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: yes
}
Click esc and the save with enter

Then install qbittorrent-nox
pkg update && pkg upgrade -y && pkg install qbittorrent-nox

Then set up service to run after reboot, and start is
sysrc qbittorrent_enable=YES
service qbittorrent start

Log in via webUI with

ipaddrofyourjail:8080

username/password - admin/adminadmin

Then you must set up permissions, its written by me above, note that all users and groups using qbittorrent files in jail must be added to jail and so in FreeNAS GUI and their GID and UID MUST match, more info on freebsd docs how to add users or mod users and groups look for pw command

Done
 

Oriann

Explorer
Joined
Dec 15, 2018
Messages
84
I am also setting up jail in GUI this way:

  1. Add Jail
  2. Advanced jail creation
  3. Fill name, choose release 11.2
  4. Tick VNET
  5. IPv4 interface vnet0, fill IPv4 Address, fill netmask and default router
  6. Tick autostart
  7. In Jail properties tick Allow_raw_sockets for pinging jail
  8. Save
  9. Mount your datasets where you will store data, set up permissions
  10. Start the jail
 
Top