contabo:setup
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
contabo:setup [2021/11/01 12:49] – created jodoc | contabo:setup [2024/12/22 23:17] (aktuell) – [Set up SUDO] jodoc | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Contabo server setup ====== | ====== Contabo server setup ====== | ||
- | Just after setup of Ubuntu 20.04 server there are several things to do. For the very first step you need to login as root via ssh, but all subsequent steps should be done as you new sudo user. | + | Just after setup of Ubuntu 20.04 VPS server |
- | ===== Set up SUDO ===== | + | ===== Preparation |
- | This might be a bit tricky, suggestion is to actually login into the server using **two ssh terminals/ | + | For the first two steps you need to login as root via ssh. All subsequent steps should |
+ | |||
+ | ===== Enable IP v6 ===== | ||
+ | |||
+ | This is a specific thing with contabo: Per default, IPv6 is //NOT// enabled, and should be done manually. Luckily, there is a command available to do it, but this is just made available via an alias definition in the root's ' | ||
+ | |||
+ | < | ||
+ | alias enable_ipv6=' | ||
+ | </ | ||
+ | |||
+ | So to perform this step, login as root and call | ||
+ | |||
+ | < | ||
+ | enable_ipv6 | ||
+ | </ | ||
+ | |||
+ | Done. | ||
+ | |||
+ | ===== Set up SUDO ===== | ||
- | 1) Add a user, make her part of '' | + | Login into server as root, add a user ('' |
< | < | ||
- | adduser | + | adduser |
- | adduser | + | adduser |
</ | </ | ||
- | 2) Log out and in as the new user and try if sudo works (by updating the apt database) | + | Log out and in with ssh as the new user and try if '' |
< | < | ||
Zeile 20: | Zeile 38: | ||
</ | </ | ||
- | 3) If everything worked, disable the root account (by deleting and locking it, see '' | + | If everything worked, disable the root account (by deleting and locking it, see '' |
+ | |||
+ | :!: **Attention**: | ||
< | < | ||
Zeile 29: | Zeile 49: | ||
Make sure ssh daemon listens on different port and does not allow root login: | Make sure ssh daemon listens on different port and does not allow root login: | ||
- | * Set '' | + | * Set '' |
- | * Set '' | + | * Set '' |
< | < | ||
Zeile 40: | Zeile 60: | ||
< | < | ||
- | ssh -p 3141 jrathert@< | + | ssh -p < |
</ | </ | ||
- | If everything works, you can and should close all other (root) terminals / sessions to the server! | + | **If everything works, you can and should close all other (root) terminals / sessions to the server |
===== Update Ubuntu ===== | ===== Update Ubuntu ===== | ||
+ | As a last step to make sure everything is up-to-date. | ||
< | < | ||
- | ===== Enable IP v6 ===== | + | ====== |
- | + | ||
- | + | ||
- | + | ||
- | ====== Set up other applications/ | + | |
- | + | ||
- | - Reconfigure ssh daemon (port) | + | |
- | - Set up relevant servers: Apache, MariaDB, Exim - see separate documents | + | |
+ | Of course there are many other relevant servers / daemons to be configured appropriately. The descriptions are, however, not Contabo specific, documentation can be found in the server section. | ||
- | asd | + | * Apache httpd server, incl. SSL via letsencrypt |
+ | * PHP as part of Apache | ||
+ | * MariaDB as database | ||
+ | * Exim as local mail daemon | ||
contabo/setup.1635767345.txt.gz · Zuletzt geändert: 2021/11/01 12:49 von jodoc