zorglube / freenas-iocage-movienight

FreeNAS MovieNight Plugin
GNU General Public License v3.0
1 stars 0 forks source link
freenas freenas-iocage-movienight jail movienight

hazardous support

Prefer the TrueNAS / FreeNAS plugin deployment tool. ref

freenas-iocage-movienight

This is a simple script to automate the installation of MovieNight in a FreeNAS jail. It will create a jail, download and install GO from Golang and download compile and install the latest version of MovieNight from MovieNight.

Status

This script has been built under FreeNAS 11.3 U4.1 with FreeBSD 11.3-Release-P11. It should work for FreeNAS 11.3, and it should also work with TrueNAS CORE 12.0. Feel free to report any bad operation or purpose any improvement.

Usage

Since the COVID-19 has locked down everyone at home, we couldn't go to movie theater together. MovieNight is an solution to overcome that. Quoting the MovieNight developer: "This is a single-instance streaming server with chat. [...] platform for watching movies with a group of people online." If you wonder how to use after installation, have an look into the MovieNight manual MovieNight.

Prerequisites

MovieNight don't need to access any data outside of the jail. At this point, since MN
need an GO runtime, the runtime will be stored into the jail.

Warning

This script isn't fully working at this time. At the end of the deployment you'll HAVE TO connect to the Jail and customise the MovieNight settings.json file the restart the Jail.

Installation

Download the repository to a convenient directory on your FreeNAS system by changing to that directory and running git clone https://github.com/zorglube/freenas-iocage-movienight. Then change into the new freenas-iocage-movienight directory and create a file called mn-config with your favorite text editor. In its minimal form, it would look like this:

    JAIL_IP="10.1.1.3"
    DEFAULT_GW_IP="10.1.1.1"
    GO_DL_VERSION="go1.15.linux-amd64.tar.gz"
    TARGET="FreeBSD"
    ARCH="amd64"
    MN_REPO="https://github.com/zorchenhimer/MovieNight.git"

You'll find the value to set GO_VERSION from the download section of GO Lang

Many of the options are self-explanatory, and all should be adjusted to suit your needs, but only a few are mandatory. The mandatory options are:

In addition, there are some other options which have sensible defaults, but can be adjusted if needed. These are:

Execution

Once you've downloaded the script and prepared the configuration file, run this script (./movienight-jail.sh). The script will run for several minutes. When it finishes, your jail will be created and movienight will be installed.

Test

To test your installation, enter your Movie Night jail IP address and port 8089 e.g. 10.1.1.3:8089 in a browser. If the installation was successful, you should see a Movie Night home page.

Movie Night running configuration

If you want to use some run arguments at the Movie Night start, have a look here MovieNight_Configuration to choose your option, then edit the service startup file /usr/local/etc/rc.d/movienight customize the line command_args=""

Support and Discussion

Useful sources of support include the MovieNight.

Questions or issues about this resource can be raised in issues.