Note: This document is not completed.
This is my personal Linux Server Setup cheatsheet.
After buy a vps:
- change root pass
- make root inactive
- add new user
adduser mrht74
usermod -aG sudo mrht74```
3. update and upgrade
4. disable and remove cloud services and snapd
- Reconfigure the cloud-init service, then deselect all the options:
```bash
dpkg-reconfigure cloud-init
- Remove cloud-init:
apt purge cloud-init
- List the services which depend on network being online:
sudo systemctl show -p WantedBy network-online.target
- disable the services and remove the open-iscsi package:
systemctl disable <service name>
apt remove open-iscsi
- remove snapd:
apt purge snapd
- install python3-pip and python3 and git
- install vim and best config
- change the default SSH port
sudo vim /etc/ssh/sshd_config
- Enable 2FA (optional)
- use SSH keys
ssh-copy-id mrht74@Remote
- set ssh config on client
vim ~/.ssh/config
- set webmin Click here
- Set up a firewall
- Backup your server
- Set up monitoring
- Set up a mail server
- Install an (S)FTP server
- Telegram MTProto
Click here - start vpn server
link 1 link 2