From ce532e8383ebcee278e73c7c11814e1e362521f4 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Tue, 17 May 2022 13:52:46 +0200 Subject: [PATCH] Update server_setup.adoc --- docs/user_docs/server_setup.adoc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/user_docs/server_setup.adoc b/docs/user_docs/server_setup.adoc index 197bfb2..d345bf6 100644 --- a/docs/user_docs/server_setup.adoc +++ b/docs/user_docs/server_setup.adoc @@ -80,6 +80,29 @@ After reboot: poetry run python3 -m advlabdb.scripts.setup.init_database ---- +List all available timezones: +[source,bash] +---- +sudo timedatectl list-timezones +---- + +Choose your timezone and enter it as showed while listing as your timezone using this command (with Europe/Berlin as example): +[source,bash] +---- +sudo timedatectl set-timezone Europe/Berlin +---- + +Edit the file `/etc/hostname` with `sudo` such that its content is only your SERVER_NAME. + +Edit the file `/etc/hosts` with `sudo` such that the first two lines are: +[source,bash] +---- +127.0.0.1 localhost +127.0.1.1 SERVER_NAME SERVER_NAME_WITHOUT_DOMAIN +---- + +Reboot again and go to your SERVER_NAME from the browser. + == Stop ssh to root // TODO: Add blocking password access