Server Setup¶
Requirements¶
Savee API¶
- At least 120 GB disk space
- At least 4 GB RAM
- 64-bit architecture with support for virtualization and AVX2 instructions
- Docker Engine runtime version >= 23
- a Sandy Bridge or later Core processor, or
- a Tiger Lake or later Celeron or Pentium processor.
- At least 120 GB disk space
- At least 4 GB RAM
- 64-bit architecture with support for virtualization and AVX2 instructions
- Docker Engine runtime version >= 23
- a Bulldozer or later processor.
Tip
Consult the official Docker documentation for instructions on setting up the Docker Engine runtime. Platform-specific instructions for installing Docker Engine on Debian can be found here. If you follow these instructions, make sure to also go through the post-installation steps.
Note
Nikatron uses either K3921-N6 mSTX ADL-N i3-N305 or the less powerful
K3921-N1 mSTX ADL-N N50 industrial PCs to fulfill all customer orders.
Savee Webapp¶
- Google Chrome version >= 122
- Android version >= 8.1.0
- Fully with Google WebView version >= 122
Preparing the Server¶
Debian Installation¶
The first step of the installation is to install the Debian distribution of Linux. Simply follow the system's installation wizard, but whenever encoutering the disk setup, it is recommended to utilize the whole disk and to put all files in one partition.
At the end of the Debian installation, make sure not to install the Desktop environment and GNOME. And also do install the SSH module.
Changing the IP Address¶
After successfully installing Debian it is recommended to set your IP address to static. You can do this by entering:
into your command line, which will open up a text editor, where you can edit your server's interfaces.
Once there, if you change this line:
to this:
iface {interface name} inet static
address {IP address}
netmask {Subnet mask}
gateway {Gateway address}
dns-nameservers {DNS address}
and save the file by pressing CTRL+O and ENTER and then by pressing CTRL+X to exit, you will have successfully changed the IP address from DHCP to static.
Note
It is not required to change your IP address from DHCP to static. It is however strongly recommended to avoid any further complications.
Restarting the Networking Service¶
Even if you have changed the IP address in the interfaces file, it is required to reload the networking service for the system to take the changes into account. You can achieve this by simply rebooting the system.
Info
If you don't want to reboot the system, it is also possible to restart the networking service using this command:
However, be careful while using only the service restart because the server keeps both the DHCP address while also adding the static one. That's why we recommend rebooting the whole system.Installing SUDO¶
Installing SUDO allows root access after connecting with ssh to allow better remote control of the Savee server.
First, it is recommended to update the package source list by using:
Then, you can install SUDO by typing:
However, to get root priviliges from an administrator account, you have to add the account into the sudo group. You can do this by:
Then after logging out and then logging back in, the account will have access to the sudo command.
Continuing with SSH¶
From this point on, it is possible to carry on with the setup remotely using SSH from a remote machine.
Preparing the "/srv" folder¶
After logging in from your admin account, you should transfer the ownership of the /srv folder from the root account to the admin account. This is done by using this command:
Installing Docker¶
Docker is an essential part of running Savee. This means, that the Savee server has to have Docker installed. The installation of Docker is as easy as following the official Docker for Debian documentation.
The first step of installing Docker is ensuring no old Docker versions are installed on the machine. This can be verified by a command as shown here in the documentation.
After ensuring the system is clean of any old Docker versions, you can carry on installing Docker as described here in three quick steps.
Tip
You can also install Docker by using the Docker convenience script found here
Finally, it is recommended to follow these post installation steps to configure the Linux server to work better with Docker. The post-installation steps mainly consist of adding your server's admin account to the "docker" group to allow the control of Docker through your admin account without using root privileges.
You can achieve this by using this command:
and then by logging out and logging back in to ensure the re-evaluation of the admin account's group memberships.
To test if you installed Docker correctly, you can run: