Skip to content

Instantly share code, notes, and snippets.

Avatar
⛩️
On the hunt

SleepingPanda SleepingPanda

⛩️
On the hunt
View GitHub Profile
@SleepingPanda
SleepingPanda / gist:68f446ea3c04436dbe525da1a9736a4a
Last active Feb 20, 2021
TrueNAS Jail Setup Guide for TheLounge IRC
View gist:68f446ea3c04436dbe525da1a9736a4a
## Make a handy json file to automatically install the needed packages for TheLounge to build and execute when the jail is made.
echo '{"pkgs":["python2","ca_root_nss","yarn","gmake"]}' > /tmp/pkg.json
## Create the jail using that json file we created earlier.
## I use 12.2-RELEASE as it's the most recent at the time of writing.
## Replace <IP>, <MASK> and <GATEWAY> with your own.
iocage create -n "thelounge" -p /tmp/pkg.json -r 12.2-RELEASE ip4_addr="vnet0|<IP>/<MASK>" defaultrouter="<GATEWAY>" vnet="on" allow_raw_sockets="1" boot="on"
## Delete the now useless file we created at the beginning.
rm /tmp/pkg.json
View gist:72037116cdd17e2e0cc67ee4196fbc88
## Make a handy json file to automatically install the needed packages for Radarr to run
echo '{"pkgs":["libunwind","icu","libinotify","openssl","mediainfo","sqlite3","ca_root_nss","libiconv","nano","curl","wget"]}' > /tmp/pkg.json
## Create the jail using that json file we created earlier.
## I use 12.2-RELEASE as it's the most recent at the time of writing.
## Replace <IP>, <MASK> and <GATEWAY> with your own.
iocage create -n "radarr" -p /tmp/pkg.json -r 12.2-RELEASE ip4_addr="vnet0|<IP>/<MASK>" defaultrouter="<GATEWAY>" vnet="on" allow_mlock="1" allow_raw_sockets="1" boot="on"
## Delete the now useless file we created at the beginning.
rm /tmp/pkg.json
View gist:cc2f7fea37000f8eec2c5e92cf156d39
# Create a pkg.json file containing everything your jail needs to install and run Komga.
echo '{"pkgs":["openjdk11-jre","nano","ca_root_nss","yarn"]}' > /tmp/pkg.json
# Using that file we just made, create the jail with IOCAGE. Replace <KOMGA> with the IP you want the Komga server to have on your network and <ROUTER> with the address of your network's router.
iocage create -n "komga" -p /tmp/pkg.json -r 12.2-RELEASE ip4_addr="vnet0|<KOMGA>/24" defaultrouter="<ROUTER>" vnet="on" allow_raw_sockets="1" boot="on"
# We can now safely delete that file we created earlier.
rm /tmp/pkg.json
# Make a config directory to store Komga, its config files, the database and logs.