If you’re interested in creating your own private secure Smart Home and Internet of Things Services you have come to the right place. Please understand that this has been simplified so anyone can do this. That doesn’t mean everything will work for everyone exactly the same. Errors may occur.
I will be explaining 2 ways of hosting things.
One with a Raspberry Pi.
And one with an external Server.
Both have their advantages and disadvantages.
A Raspberry Pi is much less powerful, but also less expensive.
A Server is much more reliable, no outages, no Internet downtime, and you can almost always opt in a Backup Service.
You will need either the Raspberry Pi, or the external Server.
I recommend both, there are things you can’t do on an external Server that you can only do on a private Network, like hosting Home Assistant or PiHole.
If you don’t want an external Server, then make sure your home internet is NOT in a Dual-Stack Lite (DS-Lite) Configuration (Take a look into your router settings or contact your internet provider).
What if you have a DS Lite Internet Connection?
Basically, if you want to access your Setup from the public Internet, not just your home network, you won’t be able to. Or it’ll be much harder to set up. No promises!
Here is a small list for cheap V Servers and/or dedicated Servers:
You will also need to buy a registered Domain name, preferably one with unlimited subdomains.
Here is a small list where to buy a Domain name:
Nano is a file editor in Linux. You will come across it a lot when setting up your own things.
You can also use vim or any other editor you prefer.
Ctrl + X will get you into exit mode.
The program will ask you if you want to save or discard.
Answer y or n for yes or no.
Ctrl + O will let you save the current file.
It will overwrite the old file, you can also change the filename, so it doesn’t override.
To see what line you are on right now you can Press Ctrl + Space.
This is useful when trying to find errors in your files.
Cat a file for when you want to see an output of the file without editing it.
Docker the Container Platform we will be using throughout this Blog.
To display all currently running Containers.
To display all currently running Containers from this Stack.
To get into the live container.
If you need to cancel a command or stop a save press Ctrl + C.
There are so many more things to learn about Linux, these are just a few basics.
I can obviously not go over them all, but that should get you started.