diff --git a/source/notes/almalinux.gmi b/source/notes/almalinux.gmi new file mode 100644 index 0000000..92f3de7 --- /dev/null +++ b/source/notes/almalinux.gmi @@ -0,0 +1,82 @@ +## Alma Linux 8.4 + + +Agregar un usuario. +``` +adduser USER + +``` + +Agregar un usuario a un grupo. +``` +gpasswd -a USER GRUPO + +``` + +Establecer el uso horario +```Establecer el uso horario + +sudo timedatectl set-timezone America/Mexico_City + +``` + +Mantener actualizado el servidor +```Mantener actualizado + +dnf check-update + +dnf update + +``` + + +Establecer un mejor prompt +```Establecer un mejor prompt +vim .bashrc + + PS1="┌─[\e[0;32m\H\e[m][\e[1;31m\u\e[m]->{\[\e[34;1m\]\w\[\e[0;1m\]}\n└──> \[\e[0m\]" + +source .bashrc + +``` + + +Establecer el hostname +```Establecer el hostname + +sudo hostnamectl set-hostname elmau.net + +sudo vim /etc/hostname + + elmau.net + +sudo vim /etc/hosts + + 127.0.0.1 elmau.net localhost + +``` + +Establecer configuración para `ssh` +```Establecer configuración para ssh + +sudo vim /etc/ssh/sshd_config + + Port 2274 + AllowUsers USER + PermitRootLogin no + LoginGraceTime 1m + ClientAliveInterval 600 + ClientAliveCountMax 0 + MaxAuthTries 3 + IgnoreRhosts yes + PermitEmptyPasswords no + PasswordAuthentication no + LogLevel INFO + +``` + + +=> gemini://elmau.net/chuletas.gmi Regresar el índice +=> gemini://elmau.net Regresar el inicio + +