This guide will get you setup with your own simple and lightweight home server using docker and more.
- A machine with Docker installed
- A machine with Debian based Distro or if you have windows then you can use wsl2
- Basic knowledge of using the command line bash
- Learn a little about how to use ubuntu, you can use any debian based distro.
- Firstly we will install some updates by
sudo apt -y update
and when we do this the system will ask us for our user password just give it - Now that we have installed important updates, we will be using something called ssh
- SSH gives us the power to use our server from anywhere on our home network, later I will list some programs to access our server remotely on windows, another linux machine, mac or even android phone.
- Simply run
sudo apt-get install -y openssh-server
into terminal to use it, if you prefer another method take a look here. - Now that it's done, we will be setting up a static ip on our server, here's a guide for ubuntu desktop and ubuntu server follow that and you should have static ip working.
- What's a Static IP you ask, when we have lot of devices on our home network, a DHCP server assigns local ip addresses to many devices each time they connect and disconnect so that's known as dynamic ip allocation.
- Well away with them BIG words, next we will be accessing our server over ssh (as god intented), dont forget to note down your static ip address alongside your username and password on a paper for later (if you forget).
- Get to your Windows Computer, open
cmd
or evenpowershell
works. - We will type
ssh yourusername@yourstaticiphere
here replaceyourusername
with the username you gave when you made installed your linux system, if you want to find it simply open a terminal on your server machine, it will look like this, heremacet
is the username. - If youre confused regarding ssh try this @ 3:40