Hey guys,
Context(Don't have to read):
I am a FreeNAS Noobie looking to setup his own home file server. And, one concern I had after setting up everything was how I was going to monitor the temperature settings.
In the FreeNAS GUI, there is a "reporting" tab which displays common system health info such as CPU usage , Ram or SWAP usage, Network Utilization etc. What it doesn't display is the CPU Temperatures, and HDD temperatures. So off I went to google and I found various useful scripts that did just that and more.
Problem:
So I found this very useful thread posted by Bidule0hm and read the "Script basics" instructions posted at the bottom of his entry. It gave step by step instructions on how to upload a script onto FreeNAS via SSH and NANO text editor. However, there were some issues I ran into while trying to create my script on my machine
1. When he refers to directory "/home/your_user_name/scripts/" there is no explicit folder named "home" and when I login to FreeNAS SSH Via Putty, (using root account) I end up in the root directory.
For my users I have setup the home directory for each user as "\nonexistant" which I assume is the folder right after the root. (correct me if I'm wrong) So, there is no "home" directory that I can refer to. Moreover, the only places I can assign a home directory for my users are in a mount point somewhere in my data sets. So I assume scripts can only be installed somewhere on a ZFS Pool in a dataset?
2. Where is the best/ideal place to place scripts? Does it have to be on a dataset or can it be somewhere in the bootdisk. I heard that /bin and other system file folders are not great places to setup scripts. I heard that if the script is left on the ZFS pool when its idle then, the drives will have to spin up every time the system needs to access the script. That would cause a lot of wear and tear.
3. He (Biduleohm) also mentioned to directly copy from the pastebin and paste directly into nano using the right click button. This did not work for me, it simply just outputted a single blank line. How would I go about copy and pasting code into nano from another program?
4. Side question: when I enter in "ls" into putty console. it brings up the entries "./" and "../" what does that indicate? I assume "../" is the root directory and "./" is the home?
5. Sorry for this long string of questions, I have searched on the forums and there doesn't seem to be any easy place to start if I want to learn about installing scripts (most of them just assume you have prior knowledge about the file system and how to operate the associated programs).
Context(Don't have to read):
I am a FreeNAS Noobie looking to setup his own home file server. And, one concern I had after setting up everything was how I was going to monitor the temperature settings.
In the FreeNAS GUI, there is a "reporting" tab which displays common system health info such as CPU usage , Ram or SWAP usage, Network Utilization etc. What it doesn't display is the CPU Temperatures, and HDD temperatures. So off I went to google and I found various useful scripts that did just that and more.
Problem:
So I found this very useful thread posted by Bidule0hm and read the "Script basics" instructions posted at the bottom of his entry. It gave step by step instructions on how to upload a script onto FreeNAS via SSH and NANO text editor. However, there were some issues I ran into while trying to create my script on my machine
1. When he refers to directory "/home/your_user_name/scripts/" there is no explicit folder named "home" and when I login to FreeNAS SSH Via Putty, (using root account) I end up in the root directory.
For my users I have setup the home directory for each user as "\nonexistant" which I assume is the folder right after the root. (correct me if I'm wrong) So, there is no "home" directory that I can refer to. Moreover, the only places I can assign a home directory for my users are in a mount point somewhere in my data sets. So I assume scripts can only be installed somewhere on a ZFS Pool in a dataset?
2. Where is the best/ideal place to place scripts? Does it have to be on a dataset or can it be somewhere in the bootdisk. I heard that /bin and other system file folders are not great places to setup scripts. I heard that if the script is left on the ZFS pool when its idle then, the drives will have to spin up every time the system needs to access the script. That would cause a lot of wear and tear.
3. He (Biduleohm) also mentioned to directly copy from the pastebin and paste directly into nano using the right click button. This did not work for me, it simply just outputted a single blank line. How would I go about copy and pasting code into nano from another program?
4. Side question: when I enter in "ls" into putty console. it brings up the entries "./" and "../" what does that indicate? I assume "../" is the root directory and "./" is the home?
5. Sorry for this long string of questions, I have searched on the forums and there doesn't seem to be any easy place to start if I want to learn about installing scripts (most of them just assume you have prior knowledge about the file system and how to operate the associated programs).