Last active
June 9, 2024 15:07
-
-
Save nazariyv/9d8725ac1cd43872b8ac28ad90a0fffc to your computer and use it in GitHub Desktop.
creating-ubuntu-live-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1/ install ubuntu live server (skip docker here and manually post-install (during ubuntu install it will use snap socker and it's utter shit and will cause you headaches), openssh) | |
2/ set static ip (/etc/netplan/static.yaml): | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
<your-interface>: | |
addresses: | |
<your-local-static-ip> | |
routes: | |
- to: default | |
via: 192.168.0.1 | |
nameservers: | |
addresses: [1.1.1.1, 1.0.0.1] | |
3/ from the machine you are connecting, if using kitty, you will need to alias ssh (slap this into your bashrc or zshrc): | |
# kitty ssh fix | |
[[ "$TERM" == "xterm-kitty" ]] && alias ssh="TERM=xterm-256color ssh" | |
4/ add your current user to docker group to avoid writing sudo in front of docker every single time | |
5/ make sure you configure docker's json-file log driver to rotate files or your server might run out of disk space | |
6/ install portainer server on one server and agent on others |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment