Pseudolife
Dabbler
- Joined
- Jan 7, 2016
- Messages
- 25
Hello,
I've been running a little FreeNAS box at home for about a year now, and it's generally going great. It is, however, my first introduction to FeeBSD, and frankly to (home) networking. It's been a learning experience, but right now I'm currently on lunch at work with an OpenVPN connection to my home network where I have access to my own files and network enabled systems. I'm really proud of myself for that.
In the year I've been using FreeNAS I haven't touched the scripting aspects much. I have one script (found on the forum) for doing a backup of the FreeNAS system, but that's it. I'm getting to the point where I think I need to make it do more, and I'm looking for some patient advice.
First I want to start using one of the domain names I own for my Dynamic DNS. Sadly Hover doesn't have a DDNS service, but there is an unofficial solution. Basically some people have developed various takes on a Python script that checks for current IP and then does an update. Sounds great. I don't actually know Python, so it's going to be a learning experience. From the FreeNAS side, I assume I can just make this a cron job set to go off every half hour or so. I'm guessing it should probably only edit the the DNS record if it needs to instead of writing (the typically the same) number 48 times a day.
Here are the script details:
https://jeffquast.com/post/hover-api/
https://github.com/sideshowcoder/dyn-hover
https://gist.github.com/andybarilla/b0dd93e71ff18303c059
https://gist.github.com/dankrause/5585907
Second, I'm looking to setup a docker box on my network to play with various things without risking my FreeNAS machine's stability while I learn things (likely the hard way). I was thinking I would run both the FreeNAS box and the Docker Box off the same UPS. I'd plug the UPS into the FreeNAS box so it can be shut down if the UPS kicks in and the battery runs down. I'm guessing there is a way to the "shut down scripts" option in FreeNAS to have it issue a shut down request over the network to the docker server whenever it shuts down. I have no idea how to do that in a python script, but I'm betting someone else has already done it and I'm hoping I can be pointed at a user friendly guide or existing script?
Thank you
I've been running a little FreeNAS box at home for about a year now, and it's generally going great. It is, however, my first introduction to FeeBSD, and frankly to (home) networking. It's been a learning experience, but right now I'm currently on lunch at work with an OpenVPN connection to my home network where I have access to my own files and network enabled systems. I'm really proud of myself for that.
In the year I've been using FreeNAS I haven't touched the scripting aspects much. I have one script (found on the forum) for doing a backup of the FreeNAS system, but that's it. I'm getting to the point where I think I need to make it do more, and I'm looking for some patient advice.
First I want to start using one of the domain names I own for my Dynamic DNS. Sadly Hover doesn't have a DDNS service, but there is an unofficial solution. Basically some people have developed various takes on a Python script that checks for current IP and then does an update. Sounds great. I don't actually know Python, so it's going to be a learning experience. From the FreeNAS side, I assume I can just make this a cron job set to go off every half hour or so. I'm guessing it should probably only edit the the DNS record if it needs to instead of writing (the typically the same) number 48 times a day.
Here are the script details:
https://jeffquast.com/post/hover-api/
https://github.com/sideshowcoder/dyn-hover
https://gist.github.com/andybarilla/b0dd93e71ff18303c059
https://gist.github.com/dankrause/5585907
Second, I'm looking to setup a docker box on my network to play with various things without risking my FreeNAS machine's stability while I learn things (likely the hard way). I was thinking I would run both the FreeNAS box and the Docker Box off the same UPS. I'd plug the UPS into the FreeNAS box so it can be shut down if the UPS kicks in and the battery runs down. I'm guessing there is a way to the "shut down scripts" option in FreeNAS to have it issue a shut down request over the network to the docker server whenever it shuts down. I have no idea how to do that in a python script, but I'm betting someone else has already done it and I'm hoping I can be pointed at a user friendly guide or existing script?
Thank you
Last edited: