Site Tools


server:nas4free_build

This is an old revision of the document!


Nas4Free Build

Partition drives for ZFS

VirtualBox

cd /mnt/storage
mkdir VirtualBox
cd VirtualVBox

For different version visit https://e-vectra.ru/index.php/s/TFbpcHxi7jTcIPe?path=%2FNAS4Free-VirtualBox and drop into /mnt/storage/VirtualBox

tar xf vbox_installerxxxxxxxxxxxxxx
chmod +x vbox_configure.sh 
./vbox_configure.sh

ZFS Tune

mkdir /mnt/data/zfskerntune
cd /mnt/data/zfskerntune
fetch http://www.peach.ne.jp/archives/nas4free/ext/zfskerntune-20121031.tar.gz
tar xvf zfskerntune-20121031.tar.gz
cd zfskerntune
./zfskerntune-install.php

TheBrig

http://www.forums.nas4free.org/viewtopic.php?t=3894

fetch -o /tmp/thebrig_install.sh https://github.com/fsbruva/thebrig/raw/working/thebrig_install.sh
chmod a+x /tmp/thebrig_install.sh
/bin/sh /tmp/thebrig_install.sh /mnt/NAS-A/Jail 2

note: change /mnt/NAS-A/Jail by your own destination, if your pool is named Data, can be /mnt/Data/Jail

Edit hosts file

vi /etc/hosts

edit line with IP address 127.0.0.1 to read

127.0.0.1 – localhost.{your jail name}.local

add line at bottom with your jail IP and your jail name (My line reads: 192.168.1.200 emon.local)

{your jail IP address} {your jail name}.local

Save and exit

Plex

Next, to download the ports tree (this includes the files to compile Plex), run the following:

portsnap fetch
portsnap extract

Now, to install Plex, run the following command:

cd /usr/ports/multimedia/plexmediaserver/ && make install clean

Once that is complete, you need to setup Plex to start automatically when the jail starts with the following command:

echo plexmediaserver_enable="YES" >> /etc/rc.conf

Next, start Plex with the following:

service plexmediaserver start

Upgrading Plex

When new releases of Plex come out, you may update without losing your data and preferences. To check if a new release of Plex is available via ports, visit this page:

http://www.freshports.org/multimedia/plexmediaserver/

To upgrade Plex, first install a tool called portupgrade with this command:

cd /usr/ports/ports-mgmt/portupgrade/ && make install clean

When configuration dialog boxes appear, accept the defaults.

Next, you have to update the FreeBSD port tree with this command:

portsnap fetch update

Then to upgrade all ports at once, use the following:

portupgrade -a

Alternatively, you can have portupgrade prompt you before upgrading each port with this:

portupgrade -ai

Afterwards, your ports, including Plex, should be up to date.

Monitoring HP cards with PRTG

server/nas4free_build.1435177070.txt.gz · Last modified: (external edit)