Install Apache In Freenas Jail Host

Installing GitWeb on FreeNAS Learn how to install GitWeb to browse the repositories on your server. Build the Git package from the Ports collection to install GitWeb on an Apache server. Optionally, configure access over HTTPS and LDAP authentication. Preparing the jail; Installing GitWeb from Ports; Configuring the web service. I’ve writen a simple script to automate installation of Plex Media Server. Like other scripts I’ve done, you’ll download the script, create a small configuration file, run the script, and your jail is up and running.

  1. Freenas Jail Upgrade
  2. Freenas Ssh Into Jail

Transmission is a open source BitTorrent client that can be managed by it’s web-interface.
This application also have an official plugin in FreeNAS, that way you can download files directly from the torrent to your own FreeNAS server.
This is a guide to how you install and configure it.

It is assumed that a FreeNAS jail has been setup as per Issue #329 and root access has been obtained. Update the ports tree: portsnap fetch extract Once that is done, build mariadb55-server from the ports tree, the uninstall mariadb55-server. This is to resolve the source dependencies for recompiling the MariaDB server later on with wsrep. Popular packages such as Apache, NGINX, LigHTTPD, MySQL, and PHP can be found and installed with the pkg search and pkg install commands. This example shows creating a jail, installing an Apache web server, and setting up a simple web page. NOTE: Do not directly attach FreeNAS to an external network (WAN). Use port forwarding, proper firewalls.

Install the Transmission plugin

The first step is to open up FreeNAS GUI and navigating to Plugins in the left menu.
If you want to change the default pool for Plugins and Jail storage click the gearwheel icon and select your preferences.
This is where Transmission will be stored. This is also the default location for downloaded files, but that can be changed.
To install Transmission, just find Transmission and hit INSTALL.
If you want to configure static IP that can be done by leaving DHCP unchecked, this can also be done later if needed.

Enter a Jail name and click SAVE. Wait a a few minutes for the installation to complete.

Set up Mount Points

Mount points are “links” between the FreeNAS filesystem and the jail filesystem. This is needed to reach files because the jail is isolated from the base OS.
By default all downloads from transmission will be stored inside it’s own jail, so no additional configuration of mount points are required.
The default download location is as follows:
/mnt/POOL_NAME/iocage/jails/JAIL_NAME/root/usr/local/etc/transmission/home/Downloads

However, if you want to use another dataset to store the downloads just follow these steps:

Go back to Plugins and open the drop-down menu right for the transmission jail. Click Stop to stop it, after this click on Mount Points.

Click on Actions and ADD. Here you need to select the correct path for Source and Destination.

In Source select a directory where you want your downloads to be stored.
In Destination write down Transmission’s default download location.
/mnt/POOL_NAME/iocage/jails/JAIL_NAME/root/usr/local/etc/transmission/home/Downloads

Click SAVE.

This is how my configuration looks: (volum3 is my pool)
Source: /mnt/volum3/download/transmission
Destination: /mnt/volum3/iocage/jails/transmission/root/usr/local/etc/transmission/home/Downloads

Share permissions

For Transmission to be able to use the added mount point the transmission user must have access to it. This can be done by giving it access by its user ID (UID) 921.

Assuming this dataset uses ACL permissions go to Storage and then Pools.
Select the tree dots right for you dataset and then hit Edit ACL.

Download Xtreme Download Manager - Speedy download manager with support for scheduled tasks, clipboard monitoring, browser integration, YouTube grabber, media converter, and more. Xtreme manager for mac. Dec 27, 2019 Popular Alternatives to Xtreme Download Manager for Mac. Explore 21 Mac apps like Xtreme Download Manager, all suggested and ranked by the AlternativeTo user community. List updated: 10:17:00 PM. Jan 13, 2020 Download Xtreme Download Manager for free. Powerfull download accelerator and video downloader. Linux and Mac OS X. XDM supports Google Chrome, Chromium, Firefox. Xtreme download manager free download - Fonts Manager, iPhoto Library Manager, Microsoft Office 2016 Preview, and many more programs.

Click ADD ACL ITEM and fil as shown in the image below.
(Ignore message “Could not find a user name for this user ID.”)

Check “Apply permissions recursively” and click SAVE.
Transmission should now have full access.

Accessing Transmission

Now you can go to Plugins and start Transmission.

Transmission is now starting, to access the web GUI go to http://<transmission_ip>:9091 or just click MANAGE.


Hopefully you now have a Transmission set up properly.

I had some free time this weekend and decided to upgrade my FreeNAS. I went from 11.1 to 11.3-UI and the upgrade installed without any issues. However, after the reboot I discovered that my jails and plugins were missing from the UI and that they were not running. I had read the manual (FreeNAS® 11.3-U1 User Guide) before the upgrade and and the instructions did not mention anything about the plugins, so I was little worried.

Host

After spending a lot of time researching I discovered that on FreeNAS 11.2 the project started to use the ‘iocage’ jail method instead of ‘warden’. FreeNAS 11.2 had the option of migrating your jails, and it could even display then from the UI. But for 11.3-UI that was no longer an option.

If you are on the same boat as me, the instructions below will help you quickly re-create a new Plex jail a move your old data to the new jail. If you have not upgraded to 11.3-UI you might want to convert your jail before upgrading. There are a lot of tutorials on-line on how to convert your jail that might be more useful to you.

Instructions

a. Create the plex user with UID 972 (this is the username and UID that is used by the project)

b. If desired, create a new Dataset to have Plex data outside of the plugin Dataset. I won’t go into details for this type of setup here as I keep my Plex data inside the Plex plugin Dataset

c. Install the ‘Plex Media Server’ plugin (official instructions)

d. Stop the plugin

e. Go to ‘Storage => Pools’ and edit the ACL for the Dataset where your media is saved. We want to give access to the ‘plex’ user (in case the files are not owned by ‘plex’)

f. With the plugin still stopped, copy the old installation data folder from the old plugin Dataset to the new plugin Dataset

Note: The JAIL_ROOT location will vary between different FreeNAS versions:

  • FreeNAS 11.1 and bellow (warden) - JAIL_ROOT=/mnt/[Volume]/jails/[JAIL_NAME]
  • FreeNAS 11.2 and above (iocage) - JAIL_ROOT=/mnt/[Volume]/iocage/jails/[JAIL_NAME]

Source for your old Plex plugin (warden)

If installed manually

${JAIL_ROOT}/root/usr/local/plexdata/Plex Media Server/

If installed via plugin

Freenas Jail Upgrade

${JAIL_ROOT}/var/db/plexdata/Plex Media Server/

Destination (iocage)

Freenas Ssh Into Jail

${JAIL_ROOT}/root/Plex Media Server/

g. In the jails configuration menu, select the new Plex jail and add the mount point for the media folder. Try to keep the same path as the old jail so you won’t have to edit your library. If you don’t remember that the path was, you can access it by looking at the contents of /mnt/[Volume]/jails/.[JAIL_NAME].meta/fstab

h. Start the plugin and try to access it via web

References: