How to install Tautulli using iocage with startup script

dureal99d

Contributor
Joined
Aug 3, 2017
Messages
156
This is a tutorial on how to install Tautulli using iocage with a startup script so it auto starts.

All credit goes to https://github.com/Tautulli/Tautulli-Wiki/wiki/Installation

I just put it in simpler terms to exclude certain unneeded things for what i feel is a straight forward simple install.

Modify to your personal liking as you see fit.

First lets create your iocage jail:
Code:
iocage create -n Tautulli ip4_addr="your nic card name|your ip/yoursubnetmask" -r 11.1-RELEASE


Example:
Code:
iocage create -n Tautulli ip4_addr="your nic card name|192.168.2.25/24" -r 11.1-RELEASE


Now lets start the jail:
iocage start Tautulli

iocage should reply:
Code:
* Starting Tautulli
  + Started OK
  + Starting services OK


SSH into the jail or use the gui shell command, your choice, but ssh is recommended:

Now lets install Tautulli:
First:
portsnap fetch extract

Second:
Pkg install nano

Iocage will reply
Code:
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]:

your reply is pretty obvious:

Third:
pkg install python2 py27-sqlite3 py27-openssl py27-pycryptodome security/ca_root_nss git

Fourth:
cd /usr/local/share/

Fifth:
git clone https://github.com/Tautulli/Tautulli.git

Sixth:
Modify the permissions Options:
To Allow all users to run: chmod -R 777 Tautulli OR
or
To Allow only a certain user to run: chown -R user:group Tautulli

seventh:
cd Tautulli

eight:
cp /usr/local/share/Tautulli/init-scripts/init.freenas /usr/local/etc/rc.d/tautulli

Nine:
Set user to run: sysrc tautulli_user="root"

Ten:
Enable at boot: sysrc tautulli_enable="YES"

Eleven:
Type: python2 Tautulli.py

finally you should be able to go to whatever ip address you assigned to the iocage jail
Code:
192.168.3.1:8181
in you preferred web browser and the plexpy gui should be there.

once configured throught he GUI and if you are happy with it

Lets auto start the jail:

In the GUI:
SYSTEM>TUNABLES>ADD TUNABLE
Variable
Code:
iocage_enable

value
Code:
yes

type
Code:
rc.conf


From the CLI:
iocage set boot=on Tautulli


Best of luck!!!!!!!!!
 
Last edited:

dureal99d

Contributor
Joined
Aug 3, 2017
Messages
156
Tautulli can also be installed from ports. Migration from PlexPy to Tautulli can be found here: https://forums.freenas.org/index.php?threads/plexpy-is-now-tautulli-upgrade-tips.62450/
Yeah but it does not show people how to install it, but rather talks about upgrading if already installed and other things like why the name changed. as far as ports is concerned i am aware but i like this method better. as stated in my post it all about preference. but thanks!!!!
 
Joined
Sep 14, 2018
Messages
1
Thank you - extremely helpful. I had one issue prior to the step 'Pkg install nano'
My FreeNAS 11.2.1 returned with the error - 'Pkg command not found' instead of -

The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]:

I needed to execute -
# /usr/sbin/pkg
at which point I received the above message and was able to proceed per your guide.

Thanks
 
Top