Difference between revisions of "FreeNAS/Installation"
m (Tag: Visual edit) |
m (Tag: Visual edit) |
||
Line 11: | Line 11: | ||
== Getting Started/Downloading == | == Getting Started/Downloading == | ||
[[File:GNUGRUB.png|left|thumb|Fig.1 GRUB Installer Screen|220x220px]] | [[File:GNUGRUB.png|left|thumb|Fig.1 GRUB Installer Screen|220x220px]] | ||
− | [[File:NASInstall1.png|thumb|(Fig. 2) FreeNAS Installer Main Screen]] | + | [[File:NASInstall1.png|thumb|(Fig. 2) FreeNAS Installer Main Screen|220x220px]] |
[http://www.freenas.org/download-freenas-release/ Download the latest version] | [http://www.freenas.org/download-freenas-release/ Download the latest version] | ||
Line 20: | Line 20: | ||
[[File:SELECTdrive.png|left|thumb|Fig. 3 Drive Selection in FreeNAS Installer | [[File:SELECTdrive.png|left|thumb|Fig. 3 Drive Selection in FreeNAS Installer | ||
'''''Note: This was taken using a virtualBox, drive letters and info will differ!''''' | '''''Note: This was taken using a virtualBox, drive letters and info will differ!''''' | ||
− | ]] [[File:DriveCOnfirm.png|thumb|Fig. 4 Confirm Drive Selection]] | + | |220x220px]] [[File:DriveCOnfirm.png|thumb|Fig. 4 Confirm Drive Selection|220x220px]] |
'''''Set BiOS to see USB FIRST''''' | '''''Set BiOS to see USB FIRST''''' | ||
Line 33: | Line 33: | ||
'''YOU MUST SELECT THE RIGHT DRIVE! SELECT THE 8GB/16GB USB FLASH DRIVE!''' | '''YOU MUST SELECT THE RIGHT DRIVE! SELECT THE 8GB/16GB USB FLASH DRIVE!''' | ||
− | [[File:Rootpass.png|thumb|Fig. 5 Enter in new Root Password]] | + | [[File:Rootpass.png|thumb|Fig. 5 Enter in new Root Password|220x220px]] |
− | [[File:End.png|left|thumb|Fig. 6 End]] | + | [[File:End.png|left|thumb|Fig. 6 End|220x220px]] |
Confirm the Drive you selected (Fig. 4) | Confirm the Drive you selected (Fig. 4) | ||
Line 43: | Line 43: | ||
Let the installation go and follow the rest of the prompts. | Let the installation go and follow the rest of the prompts. | ||
+ | |||
+ | . | ||
+ | |||
+ | . | ||
== Run FreeNAS for the First Time == | == Run FreeNAS for the First Time == | ||
− | [[File:NASConsoleSetup.jpg | + | [[File:NASConsoleSetup.jpg|Console Setup Screen when you first boot. (Note http://IP will be different)|left|frame]] |
=== Console Screen === | === Console Screen === | ||
Line 146: | Line 150: | ||
<pre> | <pre> | ||
− | + | $ portsnap fetch extract | |
− | + | $ cd /usr/ports | |
− | + | $ make deinstall; | |
− | + | $ cd /usr/ports/ports-mgmt/pkg | |
− | + | $ make deinstall | |
− | + | $ maek reinstall | |
− | + | $ cd /../.. | |
− | + | $ make reinstall | |
− | + | $ pkg update | |
− | + | </pre> | |
<references /> | <references /> |
Revision as of 00:10, 30 August 2016
This guide is how to install the FreeNAS OS on the Archive Server.
These are, at first, notes from a VirtualBox test setup, and then confirmed in the production environment.
Install FreeNAS on USB using Win32USB or Unetbootin
Set BiOS to read USB drive FIRST. Keep USB Key forever in the same slot to make things easy.
Contents
Getting Started/Downloading
Using either unetbootin, or iso2usb copy the ISO to a bootable flashdrive
Insert flash drive PLUS a secondary flash drive 8GB or higher into the Server (FreeNAS will run off a USB flash drive because the OS does not utilize the drive it runs on.)
Set BiOS to see USB FIRST
Boot to USB and Follow Instructions
Select FreeNAS Installer (Fig.1)
Select Install/Upgrade (Fig. 2)
Select the USB Drive from the selection screen. (Fig. 3)
YOU MUST SELECT THE RIGHT DRIVE! SELECT THE 8GB/16GB USB FLASH DRIVE!
Confirm the Drive you selected (Fig. 4)
Enter in Root Password (Fig. 5)
ENTER IN A REALLY REALLY STRONG PASSWORD!
Let the installation go and follow the rest of the prompts.
.
.
Run FreeNAS for the First Time

Console Screen
Let everything load and you'll be greeted with the Console Screen.
We have to manually set the IP Address. Our network will probably give you the right IP address to use, but we need to make it static.
Select 1
It will list available network interfaces. The Archive/Nextcloud Server has 2 available network ports. You should find and connect to the eth0 port.
Since we're using eth0, type 1 and hit Enter
Delete Interface: N
Reset network configuration: N
Configure interface for DHCP? N
Configure IPv4? Y
Interface name: eth0
Configure IPv4
After making note of the IP address given at the beginning, reassign it with that same IP address. Set the NetMask to 255.255.255.0 (the same as any regular machine on the network)
Configure DNS
Set up DNS as below:
Logging In for the First Time
If you did everything right, and navigate to the IP Address listed on the console, you should be greeted with the below screen:
You need to create the root password.
Make it strong, this is the root account, meaning it has God-like control over the computer and is accessible from the internet!
MAKE THE PASSWORD STRONG!
Once you set the password, you'll be taken to the the FreeNAS main screen.
Change the Hostname from freenas.local to SETV-005-CLOUD.ssdcougars.org
Insert steps on adding it to school's domain
NextCloud Install
Check Setting Up Owncloud on FreeNAS
NOTES FROM TEST:
NSTALLATION
FreeNAS WebUI
Storage > Create ZFS Dataset
- Dataset Name = files
- Compression level = lz4
- Enable atime = Off
- Dataset Name = db
- Compression level = zle
- Enable atime = Off
- Record Size = 16K
Jails > Add Jails
Add a Debian jail. Name it "nextcloud"
Select nextcloud jail
Console in NextCloud jail
$ mkdir /mnt/files
$ mkdir /var/db/mysql
FreeNAS WebUI
Add Storage
- Source = /mnt/Cloud/files
- Destination = /mnt/files
- Source = /mnt/Cloud/db
- Destination = /var/db/mysql
Console in FreeNAS's userland
$ zfs set primarycache=metadata Cloud/db
Console in NextCloud jail
Code:
$ apt-get update && apt-get upgrade
Jails[3][4]:
Create Debian Jail; leave checkboxes alone
Within standard jail, need to update pkg:
$ portsnap fetch extract $ cd /usr/ports $ make deinstall; $ cd /usr/ports/ports-mgmt/pkg $ make deinstall $ maek reinstall $ cd /../.. $ make reinstall $ pkg update