New to FREENAS and got a bit stuck...

Status
Not open for further replies.

hearntd

Cadet
Joined
Dec 12, 2015
Messages
2
Hi,

So I've been looking for a new server setup (currently running a WHS 2011 and aa windows 8 box). So I bought a new Dell server T320 with an Intel Xeon CPU E5-1410 v2 @ 2.80GHz and 8GB ram, as I was going on go with windows I opted for a 120GB SSD and I will be transferring all of my WD Red 2TB drives over once I've finished playing, but at the moment I have 1 of the 2TB dives and a WD Black 1Tb drive.

I've decided to try freenas as my main reason for the box is a simple Plex server and central storage for home videos photos etc. And windows feels like an overkill, and it should keep the processor free for transcoding the videos.

So I've done a basic setup on the current stable version and got plex server running, I've seen that the version of PMS is not up to date and there seems to be options for keeping it up to date using a script.

Now this is were I'm feeling very stupid, for the life of me I can't seem to figure out how to run the scripts. I've tried putty and created a new script with the Raw text but it doesn't seem to do run and says either no permission to run or I can't seem to browse to the locations. Also as I've ot myself a but confused I'm not sure where to put the options the script mentions (-u -p etc..?). I know I'll need to set up a cronjob but want to test it in the Shell first.

I'm sure I'm just being stupid and haven't quite got the hang of things yet so any help would be greatly appreciated.
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
The first thing is to try running the commands at a command line one by one. Once you know it works, then you can script it.
I actually upgrade mine manually every couple months or so. I created a text file to remind me what to do, but I could easily make this file executable and run it as a cron job.

Code:
fetch --no-verify-peer -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh
chmod 755 PMS_Updater.sh
./PMS_Updater.sh -u MyPlexUsername -p MyPlexPassword -a -v


Once you connected using putty, and switch to the Plex jail, what editor did you use and how did you try to run the file? I think ee and vi are installed by default, but aren't very newbie friendly. You can run the following to install nano:
Code:
pkg update
pkg install nano
nano my_plex_update_script.sh


And then paste your script.
Ctrl X to exit and choose yes to save changes.
 

hearntd

Cadet
Joined
Dec 12, 2015
Messages
2
Thanks for that, it's helped move things along. the one thing I have noticed though since getting a basic system up and running (literally a box with a couple of drives and a blank Plex) the HDD with the Plex on it keeps spinning, like there is permanent read/write going on.
Is this correct? I would have thought the drive should only be active when something is going on not in an almost idle state?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
It's hard to tell. I'm sure Plex does some housekeeping tasks but constant sounds strange. Did you change your system dataset location to be the same pool as the jails?

Sent from my Nexus 6P using Tapatalk
 
Status
Not open for further replies.
Top