Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

FreeNAS 9.1 Setup Guide

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE
Status
Not open for further replies.

fishinfiend

Junior Member
Joined
Aug 10, 2013
Messages
24
FreeNAS 9.1 Setup Guide
If using a different version, this guide may not guide you through your setup.

Download Location
http://www.freenas.org/download-releases.html
(If doing below install make sure you get the IMG not the ISO)

  • Any Processor as long as 64 Bit (32 Bit would work but limited to 4GB of RAM)
  • Min. 8GB of RAM (General Rule 4GB for ZFS plus 1GB per 1TB of Storage (more the better))
  • OS Drive a simple USB Flash Drive would work with a minimum size 4 GB (Says 2GB would work but I am saying 4GB to be on safe side) NOTE: You can NOT use a storage drive for a OS Drive cause the OS will take over the entire drive.
  • Storage Drive minimum of 3 same size drives for ZFS, then you will have a two storage drives with one drive redundincy.
(You don't need a CD drive and when IMG is done, you can plug into server and you are up and running)
1. Download 7-zip(http://www.7-zip.org/) and Win32DiskImager(https://launchpad.net/win32-image-writer)
2. Install the two above programs.
3. Extract FreeNAS with 7-zip.
4. Write IMG to USB using Win32DiskImager.
5. Plug completed USB into server and you are good to go.
1. Turn on server connected to a monitor to see what its IP address is so you can use the GUI.
2. Type the IP address into browser to access the GUI. (Firefox is the supported web browser and from personal experiance don't use IE10 it does NOT work)
3. Once there, lets setup the datasets first.
1. Click on the Storage icon on top of screen.
2. Click on ZFS Volume Manager and a dialog box should come up.
3. Name the Volume what ever you want. (I did Volume1)
4. Take the Slider in Volume Layout and slide it until you have used up all your drives. (If you have three it should say RAID-Z)
5. Once done, click Add Volume.
6. Now, click the volume you just created, should turn blue and icons show up on the bottom of the screen.
7. Click on the Create ZFS Dataset button, whcih is on the bottom, and a dialog box should show up.
8. Name the Dataset whatever you want. (I did 3 main Datasets: Media, Public, and Private and under Private that is where I created the Personal folders, as in my own personal one and the one for Admin)
9. Compression Level I set to lz4 which is recommended and ZFS Deduplication to Off.
10. Click Add Datatset when done.
11. Repeat steps 6 thru 10 to create more datasets. To create a dataset under a dataset, click on the dataset that you want to create a subdataset instead of the you volume. (Ex. click on Private, then click add dataset.)
1. Click on Account on top of the page.
2. Click on the Users Tab directly below the Account Tab with the X.
3. Click on Add User button.
4. Insert a User ID and it must be a number. (I used 1001 for Admin and started with 2001 for the Users)
5. Username is the Log in name for the users.
6. Leave Create a new primary group checked.
7. Make the users Home Directory there own bu useing the browse button to find there directory.
8. For Full Name insert whatever you want.
9. For the Password, insert the same Password in both Password and Password confirmation OR just check Disable password login.
10. Click on the Advanced Mode button next to the cancel button on the bottom of the screen.
11. After clicking on it you will see right below the Home Directory a bunch of check boxes next to the words of Home Directory Mode, only checkmark the boxes of read, write and execute under Owner and Group. If any are checkmarked under Other, uncheck them (except if you create a Media User, then leave Read and Execute Checked so you can access the Files or add in write so you can write to them also.)
12. Click OK when done.
13. Repeat steps 3 thru 12 to create more users.
1. Click on the Storage icon again.
2. Highlight your volume.
3. Click on Change Permissions button, which is by the Create ZFS Dataset button on the bottom of the screen.
4. Set user as nobody (which is a premade user) from drop down.
5. Set the group to nogroup (which is also premade) from the drop down, also.
6. Under Mode, check all nine boxes.
7. When done, click Change button.
8. Navagate to the Public dataset and click on it.
9. Click on the Change Permission button.
10. Set user as nobody.
11. Set group as nogroup.
12. Under Mode, check all nine boxes.
13. When done, click Change button.
14. Navagate to the Admin's dataset and click on it.
15. Click on the Change Permission button.
16. Set user as Admin.
17. Set group as nogroup.
18. Under Mode, check all the boxes under Owner and Group and uncheck the boxes under Other.
19. Click Change when done.
20. Navagate to one of the user datasets and click on it.
21. Click on the Change Permission button.
22. Set user to the name of the user.
23. Set group to Admin.
24. Under Mode, check all the boxes under Owner and Group and uncheck the boxes under Other.
25. Click Change when done.
26. Repeat steps 20 thru 25 for the rest of the Users.
1. Click on Sharing on top of screen.
2. Click on Windows (CIFS) button. (will work on the most systems)
3. Click on Add Windows (CIFS) Share button.
4. Type the name of what you want to call the share under Name. (I would use the same name as the User except for the Public dataset then name it the same as the dataset)
5. Browse for the dataset of the user you want to share.
6. Then click OK.
7. Repeat 3 thru 6 for the rest of users, Admin, and Public dataset.
8. Click on Services on top of screen.\
9. Click the slider next to CIFS to turn it on.
10. Click on the wrench next to the slider, a dialog box should appear.
11. Make sure under Guest account that nobody is the user. If not make nobody the user.
12. Click OK when done.
1. Log on to the computer you want to access the server from.
2. Open Windows Explorer.
3. Click on Network on the Bottom of the left hand side.
4. Click on FreeNAS if you did not change the name of the system.
5. Right click on your share.
6. Click on Map Network Drive.
7. Select the Drive letter you want.
8. Checkmark both Reconnect at sign-in and Connect using different credentials.
9. Click Finish.
10. When asked to enter the password, click on use another account.
11. Type in the username and password you made for that shares user.
12. Click OK.
13. Repeat 3-12 for the Public drive.
14. Repeat 1-13 for other computers and other users.
1. Click on Plugins on top of screen.
2. Click on DLNA/UPnP
3. Click Install
4. A box should pop up and then click OK
5. After done installing, Click on Jails on top of screen.
6. Click on Jails on top of screen next to Plugin.
7. Select dlna_1.
8. Click Add Storage on bottom of screen.
9. Under Source, Browse for the location you have your all your media stored and select it.
10. Under Destination, Browse for the Media folder and select it.
11. Click OK.
12. On the left side of screen, expand Plugins.
13. Click on MiniDLNA
14. Under Friendly name, name what you want to call your DLNA server.
15. Browse for Media in the Media directory
16. Checkmark Rescan on (re)start.
17. Click OK.
18. Click on Plugins on top of the screen again.
19. Slide the slider next to the plugin MiniDLNA to ON, if not on.
Now you should be able to access your media in WMP and any other device that is DLNA certified.
Note: If you do not see your media, just turn the plugin off and back on again.
1. Click on Plugins on top of screen.
2. Click on mt-daapd
3. Click Install
4. A box should pop up and then click OK
5. After done installing, Click on Jails on top of screen.
6. Click on Jails on top of screen next to Plugin.
7. Select mt-daapd_1.
8. Click Add Storage on bottom of screen.
9. Under Source, Browse for the location you have your all your media stored and select it.
10. Under Destination, Browse for the Media folder and select it.
11. Click OK.
12. On the left side of screen, expand Plugins.
13. Click on Firefly.
14. Under Servername, change the name to what you want it to be.
15. Make sure Mp3 dir is set to Media.
16. Checkmark Always scan if not already.
17. Click OK.
18. Click on Plugins on top of the screen again.
19. Slide the slider next to the plugin FireFly to ON.
Now you should be able to access your media in Itunes.

This image belongs to silentmonolith from the FreeNAS forum.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Just an FYI for anyone looking for this kind of info, the FreeNAS manual and wiki at doc.freenas.org and wiki.freenas.org contains this information and is kept up to date.
 

fishinfiend

Junior Member
Joined
Aug 10, 2013
Messages
24
After taking a second look at the manual, I guess it does say how to set up the system in detail. When I just finished setting up my first file server using FreeNAS (started beginning of Aug. finished beginning of Sept.), I was frustrated with the manual because I only ever got down to the point of how they described what each part of the dialog is for, so I wrote this up. Though, in the manual it does not explain very well how to setup the miniDLNA or Firefly very well.
 

Marcus Cole

Newbie
Joined
Sep 1, 2013
Messages
2
Had some issues doing an upgrade from 9.1.1 to 9.2.1.3.

Nuked my machine, then followed these instructions. Works like a charm.

Have you thought of adding instructions for:

1. ZFS Snaphots
2. ZFS Replication
 
Status
Not open for further replies.
Top