Update matrix

This commit is contained in:
Mauricio Baeza 2021-09-12 22:59:41 -05:00
parent 3af031be10
commit dddf2c5fc1
4 changed files with 35 additions and 10 deletions

View File

@ -25,6 +25,7 @@ Ordenadas en orden alfabético.
=> gemini://soviet.circumlunar.space/sejo/ • La Cabañita
=> gemini://srlobo.gorritodeplata.xyz • del Sr. Lobo
=> gemini://gemlog.blue/users/monika/ • de Monika
=> gemini://aperalesf.flounder.online/ • Adrian Perales
Otros idiomas

View File

@ -5,31 +5,40 @@ Matrix es un excelente software de chat desentralizado.
Si bien se puede tener un dominio como nombre de tu servidor, es más practico usar un subdominio, asegurate de tenerlo ya apuntando a tu servidor.
```
matrix.dominio.net
```
Instalar dependencias
```Instalar dependencias
sudo apt install curl wget gnupg2 apt-transport-https
```
Agregar la firma de los paquetes
```Agregar la firma de los paquetes
sudo wget -qO /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
```
Agregar el repositorio
```Agregar el repositorio
sudo echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/matrix-org.list
sudo apt update
```
Instalar el servidor
```Instalar el servidor
sudo apt install matrix-synapse-py3
```
Agrega el nombre de tu servidor (matriz.dominio.net) sin ningún protocolo cuando se te solicite.
=> gemini://elmau.net/chuletas.gmi Regresar el índice
=> gemini://elmau.net Regresar el inicio

View File

@ -3,6 +3,7 @@
Instalar
```Instalar
sudo apt install postgresql
```
Configurar acceso
@ -13,6 +14,7 @@ sudo vim /etc/postgresql/12/main/pg_hba.conf
local all all scram-sha-256
sudo systemctl restart postgresql
```
Crear roles y bases de datos
@ -22,6 +24,7 @@ psql -U postgres
create role ROLE_NAME with login encrypted password 'CONTRASEÑA';
create database NAME with owner ROLE_NAME;
```

View File

@ -4,17 +4,20 @@
Agregar un usuario.
```
adduser USER
```
Agregar un usuario al grupo "sudo".
```
gpasswd -a USER sudo
```
Establecer el uso horario
```Establecer el uso horario
sudo timedatectl set-timezone America/Mexico_City
```
Mantener actualizado el servidor
@ -23,6 +26,7 @@ Mantener actualizado el servidor
sudo apt update
sudo apt upgrade
```
Establecer locales
@ -33,6 +37,7 @@ sudo vim /etc/environment
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8
```
Limpiar locales no utilizados
@ -41,6 +46,7 @@ Limpiar locales no utilizados
sudo vim /var/lib/locales/supported.d/en
sudo dpkg-reconfigure locales
```
Establecer un mejor prompt
@ -50,6 +56,7 @@ 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
@ -64,6 +71,7 @@ sudo vim /etc/hostname
sudo vim /etc/hosts
127.0.0.1 elmau.net localhost
```
Establecer configuración para `ssh`
@ -72,16 +80,17 @@ 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
AllowUsers USER
PermitRootLogin no
LoginGraceTime 1m
ClientAliveInterval 600
ClientAliveCountMax 0
MaxAuthTries 3
IgnoreRhosts yes
PermitEmptyPasswords no
PasswordAuthentication no
LogLevel INFO
```
Desactivar los mensajes de Ubuntu al entrar
@ -97,6 +106,7 @@ Instalar certbot
sudo apt install certbot
sudo certbot register
```
Instalar firewall
@ -109,6 +119,7 @@ sudo ufw allow http
sudo ufw allow https
sudo ufw enable
```
@ -117,6 +128,7 @@ Cambiar limite de archivos abiertos
sudo vim /etc/security/limits.conf
* soft nofile 20480
```