Steps taken from following guides:
- Use the wizard
$ nmcli d# check interface status$ nmtui# Open network manager. Edit your connection and make sure dhcp enable and "auto connect" selected$ nmtui-hostname# configure hostname$ ifconfig# check if dhcp works$ ip a$ ping -c2 google.com
$ yum check-update$ yum upgrade
$ yum install nano wget curl net-tools lsof bash-completion
$ systemctl list-unit-files -t service
Remove Postfix (mailserver)
$ systemctl stop postfix$ systemctl disable postfix$ yum remove postfix
Ensure you have a non-root admin user configured and added to the wheel group (if you did not create if with the wizard)
$ adduser <user>$ passwd <user-pass>$ usermod -aG wheel <user>
On your local machine, copy your ssh pubkey to the server
$ ssh-copy-id <user>@SSH_SERVER_IP- Test passwordless login with
$ ssh <user>@SSH_SERVER_IP
Disable root login with ssh
$ nano /etc/ssh/sshd_config- set
PermitRootLogin no $ systemctl restart sshd- Test root ssh disabled
$ ssh root@SSH_SERVER_IP
$ yum install firewalld$ systemctl start firewalld$ firewall-cmd --permanent --add-service=ssh
$ timedatectl list-timezones$ timedatectl set-timezone region/timezone # timedatectl set-timezone Europe/Berlin$ timedatectl# test to see if timezone correct
NTP:
$ yum install ntp$ systemctl start ntpd$ systemctl enable ntpd