Start notes for almalinux

This commit is contained in:
Mauricio Baeza 2021-09-16 23:23:49 -05:00
parent dddf2c5fc1
commit 98fa4da216
1 changed files with 82 additions and 0 deletions

View File

@ -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