1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-09-19 18:31:16 +00:00

Update server_setup.adoc

This commit is contained in:
Mo 2022-05-17 13:52:46 +02:00
parent 57e81092fe
commit ce532e8383

View file

@ -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