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://soviet.circumlunar.space/sejo/ • La Cabañita
=> gemini://srlobo.gorritodeplata.xyz • del Sr. Lobo => gemini://srlobo.gorritodeplata.xyz • del Sr. Lobo
=> gemini://gemlog.blue/users/monika/ • de Monika => gemini://gemlog.blue/users/monika/ • de Monika
=> gemini://aperalesf.flounder.online/ • Adrian Perales
Otros idiomas 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. 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 matrix.dominio.net
``` ```
Instalar dependencias Instalar dependencias
```Instalar dependencias ```Instalar dependencias
sudo apt install curl wget gnupg2 apt-transport-https sudo apt install curl wget gnupg2 apt-transport-https
``` ```
Agregar la firma de los paquetes Agregar la firma de los paquetes
```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 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
```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 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
```Instalar el servidor ```Instalar el servidor
sudo apt install matrix-synapse-py3 sudo apt install matrix-synapse-py3
``` ```
Agrega el nombre de tu servidor (matriz.dominio.net) sin ningún protocolo cuando se te solicite. 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/chuletas.gmi Regresar el índice
=> gemini://elmau.net Regresar el inicio => gemini://elmau.net Regresar el inicio

View File

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

View File

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