serversetup_prepare - dl3ebb/OpenIot GitHub Wiki

Prepare the server

At the beginning of an installation, it is recommended to first bring the server up to date.

To do this, open a terminal on the newly installed desktop and enter:

sudo apt update

You will be asked for your password. This command updates the package lists. Afterward, you will see how many packages can be upgraded. Perform the upgrade with:

sudo apt upgrade

Depending on the number of packages to be updated, the second command might take some time. Eventually, the update manager will prompt you to restart the computer. However, since we will restart the system after installing the SSH daemon anyway, you can ignore this prompt for now.

In my environment, I usually work on servers in the network via SSH. Unfortunately, Ubuntu Desktop does not include an SSH server by default. Let’s install it now:

sudo apt install ssh
sudo systemctl enable ssh

Before restarting, we should ensure that our server has a fixed IP address in both networks and is reachable by name. In my network, both tasks are handled by our core router.

The IoT network in my setup uses the subnet 10.103/16. The server is assigned the fixed IP address 10.103.1.10 and is reachable under the name openiot-int.

The DMZ network has the subnet 172.16/16. The server is assigned the fixed IP address 172.16.1.10 and is reachable under the name openiot.

Once this configuration is completed, restart the server with:

sudo reboot

Now the server should be accessible via SSH. By the way: To enhance security, all servers in my setup use a pre-shared key, so I never have to enter a password. On most servers the log in by password is even disabled.

| ← Previous Page (Install Ubuntu Desktop) | ↑ Server Setup Main Page | Next Page (Install Mosquitto) β†’ |