v1.0.0

Getting Started

# Update system

Check update system

dnf -y update

# Change root password and Add user

Change root password

passwd

Add a new user

adduser {user}

Set password for a user

passwd {user}

Add user to sudoers

usermod -aG wheel {user}

# Login by public key

Edit ssh config file

nano /etc/ssh/sshd_config

Add login by public key setting

PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

Restart sshd service

systemctl restart sshd

Create .ssh folder

mkdir ~/.ssh

Create authorized file

touch ~/.ssh/authorized_keys

Assign permission for ssh

chmod 700 -R ~/.ssh
chmod 600 ~/.ssh/authorized_keys

Generate ssh keygen

ssh-keygen -t ed25519 -C "{comment}"

Add content public key to authorized file

ssh-ed25519 {public key content}

# Set language for server

Check current language

localectl

Check list language supported

localectl list-locales

Set main language

localectl set-locale LANG=en_US.UTF-8

# Config SELinux

Check SELinux status

sestatus

Edit SELinux config file

sudo nano /etc/selinux/config

Disable SELinux if it is necessary

SELINUX=disabled