Couchpotato jail

couchpotato jail

Setup for couchpotato service jail with iocage.

On FreeNAS

Create jail:

iocage create --release 11.1-RELEASE --name couchpotato \
          boot="on" vnet=on bpf=on \
          allow_raw_sockets="1" \
          ip4_addr="vnet1|172.20.40.31/24" \
          interfaces="vnet1:bridge1" \
          defaultrouter="172.20.40.1" \
          resolver="search ramsden.network;nameserver 172.20.40.1;nameserver 8.8.8.8"

On Freenas create datasets:

  • Datasets

    • Couchpotato Data

      • tank/data/database/couchpotato

    • Media

      • For all media tank/media/Movies/...

    • Downloads

      • For all Downloads tank/media/Downloads/...

Create media user/group using uid from freenas:

Nullfs mount datasets in jail:

Couchpotato data:

Downloads:

Setup directories:

Repeat for media:

Check fstab:

Start jail and enter.

In Jail

Install couchpotato freebsd version from git.

Install required tools

Use user media, clone to a temp repo in /var/db.

Move the bare repo that was just cloned to the dataset we mounted earlier to /var/db/couchpotato.

Switch to the media user and reset the repo to HEAD.

As root, copy the startup script to /usr/local/etc/rc.d and make the startup script executable.

Read the options at the top of /usr/local/etc/rc.d/couchpotato.

If not using the default install, specify options with startup flags.

Finally, start couchpotato.

Restart the jail, open your browser and go to http://server:5050/.

Last updated