echo '{"pkgs":["plexmediaserver","ca_root_nss"]}' > /tmp/pkg.json sudo iocage create -n "plex" -p /tmp/pkg.json -r 11.2-RELEASE ip4_addr="vnet0|192.168.1.100/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on" rm /tmp/pkg.json
sudo iocage fstab -a plex /mnt/Backups/apps/plex /config nullfs rw 0 0 sudo iocage fstab -a plex /mnt/Media/video /mnt/video nullfs ro 0 0 sudo iocage exec plex chown -R plex:plex /config sudo iocage exec plex sysrc "plexmediaserver_enable=YES" sudo iocage exec plex sysrc plexmediaserver_support_path="/config" sudo iocage exec plex service plexmediaserver start
All supported jails have been tested with the 11.3-RELEASE template. No changes are required other then changing that out in the initial create command. I will be updating the actual commands after the update has been out for a little bit longer.
iocage exec sonarr "pw user add media -c media -u 8675309 -d /nonexistent -s /usr/bin/nologin" iocage exec sonarr "pw groupadd -n media -g 8675309" iocage exec sonarr "pw groupmod media -m sonarr" iocage exec sonarr chown -R media:media /usr/local/share/Sonarr /config iocage exec sonarr sysrc 'sonarr_user=media'
Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx.
#!/bin/bash UPGRADECMD="pkg update && pkg upgrade -y" declare -a INSTALLEDAPPS=("plex" "tautulli" "sabnzbd" "transmission" "jackett" "radarr" "sonarr" "unifi") ## now loop through the above array for i in "${INSTALLEDAPPS[@]}" do if iocage exec "$i" "$UPGRADECMD" | grep -q 'Your packages are up to date.' then echo "$i" "is up to date!" elif iocage exec "$i" "$UPGRADECMD" | grep -q 'failed' then echo "$i" "upgrade failed" else echo "$i was updated; will restart the jail" iocage restart "$i" fi done
There is also the fnjailup script: HEREHeres an update script I have run each morning...seems to work well most times to keep each of the media jails updated. I get a nice email in the morning to see what's been updated and if any errors
Code:#!/bin/bash UPGRADECMD="pkg update && pkg upgrade -y" declare -a INSTALLEDAPPS=("plex" "tautulli" "sabnzbd" "transmission" "jackett" "radarr" "sonarr" "unifi") ## now loop through the above array for i in "${INSTALLEDAPPS[@]}" do if iocage exec "$i" "$UPGRADECMD" | grep -q 'Your packages are up to date.' then echo "$i" "is up to date!" elif iocage exec "$i" "$UPGRADECMD" | grep -q 'failed' then echo "$i" "upgrade failed" else echo "$i was updated; will restart the jail" iocage restart "$i" fi done
I'm not great with scripts so if there are improvements to be made please let me know.
Sounds like you forgot to replace the nginx.conf file with the edited one for Organizr.(?)Is anyone able to assist with Oranizr please?
Whenever I navigate to 'jailip' I get the 'Welcome to nginx!' message, everything works when pasting the code in.
Code:Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx.
Sounds like you forgot to replace the nginx.conf file with the edited one for Organizr.(?)
iocage console sonarr
iocage create -n "sonarr" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|http://192.168.7.53/24" defaultrouter="192.168.4.1" allow_raw_sockets="1" boot="on" rm /tmp/pkg.json
echo '{"pkgs":["mono","mediainfo","sqlite3","ca_root_nss","curl"]}' > /tmp/pkg.json
? Nothing shows after running it.this creates a temporary file that "iocage create" then parses to automagically install pkgng and the listed packages during jail creation. the 'rm' command then destroys the temp file just after jail creation.Additionally, what's supposed to happen when runningecho '{"pkgs":["mono","mediainfo","sqlite3","ca_root_nss","curl"]}' > /tmp/pkg.json
? Nothing shows after running it.
chmod u+x /usr/local/etc/rc.d/sonarr
iocage create -n "sonarr" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|http://192.168.7.53/23" defaultrouter="192.168.4.1" allow_raw_sockets="1" boot="on" rm /tmp/pkg.json
didn't initially show up in the freenas web gui.iocage exec sonarr "pw user add sonarr -c sonarr -u 351 -d /nonexistent -s /usr/bin/nologin"
didn't work at first. Well, it didn't show it in the freenas gui until I created it there.
chown -R sonarr:sonarr /usr/local/share/NzbDrone
chown -R sonarr:sonarr /config
Pool>Media (sonarr:media) Pool>Apps>sonarr (sonarr:media) Pool>Iocage>jails>sonarr>root Pool>torrents (sonarr:media)
/mnt/SuperPool/apps/sonarr /mnt/SuperPool/iocage/jails/sonarr/root/config /mnt/SuperPool/torrents /mnt/SuperPool/iocage/jails/sonarr/root/mnt/torrents /mnt/SuperPool/SuperMedia /mnt/SuperPool/iocage/jails/sonarr/root/mnt/video
echo '{"pkgs":["mono","mediainfo","sqlite3","ca_root_nss","curl"]}' > /tmp/pkg.json iocage create -n "sonarr" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|http://192.168.7.53/23" defaultrouter="192.168.4.1" allow_raw_sockets="1" boot="on" rm /tmp/pkg.json iocage exec sonarr mkdir -p /config iocage exec sonarr mkdir -p /mnt/video iocage exec sonarr mkdir -p /mnt/torrents iocage fstab -a sonarr /mnt/SuperPool/apps/sonarr /config nullfs rw 0 0 iocage fstab -a sonarr /mnt/SuperPool/torrents /mnt/torrents nullfs rw 0 0 iocage fstab -a sonarr /mnt/SuperPool/SuperMedia /mnt/video nullfs rw 0 0 iocage exec sonarr ln -s /usr/local/bin/mono /usr/bin/mono iocage exec sonarr "fetch http://download.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz -o /usr/local/share" iocage exec sonarr "tar -xzvf /usr/local/share/NzbDrone.master.tar.gz -C /usr/local/share" iocage exec sonarr rm /usr/local/share/NzbDrone.master.tar.gz iocage exec sonarr "pw user add sonarr -c sonarr -u 351 -d /nonexistent -s /usr/bin/nologin" iocage exec sonarr chown -R sonarr:sonarr /usr/local/share/NzbDrone /config iocage exec sonarr mkdir /usr/local/etc/rc.d
freenas# iocage exec sonarr "tar -xzvf /usr/local/share/NzbDrone.master.tar.gz -C /usr/local/share"
root@sonarr:~ # tar -xzvf /usr/local/share/NzbDrone.master.tar.gz -C /usr/local/share tar: Error opening archive: Failed to open '/usr/local/share/NzbDrone.master.tar.gz'
I never figured it that out. Deleted everything again. Moved on to creating separate jails for each app. So far going well. Now wondering if I’m going to have trouble with with those separate apps sharing/moving files appropriately. They all have same group with edit permissions. Haven’t tested yet.Did your fetch command complete successfully? I just tested your fetch/tar commands and they complete correctly for me