Skip to content

Instantly share code, notes, and snippets.

View SleepingPanda's full-sized avatar

SleepingPanda SleepingPanda

View GitHub Profile
@SleepingPanda
SleepingPanda / gist:cc2f7fea37000f8eec2c5e92cf156d39
Created July 17, 2021 15:21
TrueNAS Jail Setup Guide for Komga!
# 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.
@SleepingPanda
SleepingPanda / gist:72037116cdd17e2e0cc67ee4196fbc88
Created May 14, 2021 07:35
TrueNAS Jail Setup Guide for Radarr
## 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
@SleepingPanda
SleepingPanda / gist:68f446ea3c04436dbe525da1a9736a4a
Last active February 20, 2021 10:28
TrueNAS Jail Setup Guide for TheLounge IRC
## 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