Setup
- You will need a USB drive 16GB or larger.
- Download Balena Etcher to create an image on the USB
- Download TrueNAS Core
Tools
Install
-
Use Balena and create a TrueNAS image on the USB.
Boot the Treunas computer to the USB.
Follow onscreen directions for install. The install will ask you what drive to install too.
Use arrow keys and space bar to choose drive.
Next you will be asked for a Root Password. Don't forget the password.
Truenas will now install to the drive specified. Once the system is up take note of the IP address.
Configure TrueNAS
From another computer, open the browser and enter the ip address.Enter "root" and then the root password. You are now at the dashboard.
Create a Mirrored Pool
-
Click Storage > Pools
Click ADD > Create Pool
Give the pool a name.
Next Click Suggested layout. Note all HDD/SSD must be the same capacity. Exception of the boot drive.
Next click the 3 dots to the right and click on Add DataSet. Give the dataset a name and click submit.
Give the dataset a name and click submit.
Create a user
-
Click Accounts > Users > Add
Enter a name for FullName and Username
Enter your password and then reenter under confirm password
Click the Microsoft Account box lower right side.
Change Primary group to dan because dan is the owner of the pools.
Click Submit
Repeat for new users
Create Windows Share & ACL
- Click Windows Share SMB
Click ADD and add the new dataset
You will be asked to create a ACL, Click configure now
Change Default ACL: to Restricked
Change User to Dan and click check box
Change group to dan and click check box
Click Submit
Allow others to connect
-
Click Accounts > Groups
Click the " > "greater than and click members. Add member.
Drive Spin Down
-
From the Truenas Dashboard click System > System Dataset
- camcontrol cmd ada1 -a "E5 00 00 00 00 00 00 00 00 00 00 00" -r -
-
Results: "E5 00 00 00 00 00 00 00 00 00 ff 00" = Drive is Spinning.
Results: "E5 00 00 00 00 00 00 00 00 00 00 00" = Drive is Not Spinning.
Change the system data set to boot drive.
Next Click: Storage > Disk
Edit each drive to spin down after 10 minutes. Also change power management to Level 1 Minimum Power Usage. Click Save.
Next from the dashboard click "Shell" Enter this command in the shell.
Note that "ada1" is the name of the drive you are checking.
Command results:
Plex install:
1. Create a pool (Storage1)
2. Add a dataset (Silo1)
3. Create Users and a Group. Add users to Group. ( PlexGroup )
4. Click on share tab > Samba share. Choose Silo. Click submit.
5. Click on Create and edit ACL User “root”. Group = “PlexGroup” Check the boxes
6. Change permission from advanced to “Basic” then change permissions to Full control
7. Do the same for Groups. Set flag to inherit in both sections
8. Click Save
Now copy your data to the shared drive using File Explorer
Next go back to Truenas and install plex.
1. Click on Plugins. It will ask you to choose a pool for Plugin and Jail Storage
2. Choose Storage1
3. Click on Plex and click Install
4. Give the jail a name (Truenas ) and click Save
5. One installation is complete click Close.
6. Click Check box next to jail and click STOP
7. Click the drop-down arrow at the far right and click Mount Points
8. In the “Source box” click Silo1
9. In the destination box click on Media
10. Next click the check box next to jail and click Start
11. Now click the Plex icon and enter your credentials. If you do not have a login create on at plex.tv.com
12. Change the name to Truenas and click through
13. Go back to Truenas and click on Jails, click the drop-down and click on shell
14. In the shell type id plex. Remember this id number. (uid=972)
15. Goto Storage > Pool and on the dataset (Silo1) click on edit dataset
16. Click on ADD ACL ITEM and change Who to User
17. Add the id (972) on the line below who
18. Change permissions to read only
19. Save
20. Go back to plex
21. Click “More: and add library
22. Click ADD Library then Browse media folder
23. Choose /media now add slash folder name. Example: media/vidoes
24. Plex will update the data. This will take a long time. Create each library one at a time
25. Goto plex.tv.com login