Coronavirus disease 2019

COVID-19 is a contagious disease caused by the coronavirus SARS-CoV-2. In January 2020, the disease spread worldwide, resulting in the COVID-19 pandemic.

The symptoms of COVID‑19 can vary but often include fever,[7] fatigue, cough, breathing difficulties, loss of smell, and loss of taste.[8][9][10] Symptoms may begin one to fourteen days after exposure to the virus. At least a third of people who are infected do not develop noticeable symptoms.[11][12] Of those who develop symptoms noticeable enough to be classified as patients, most (81%) develop mild to moderate symptoms (up to mild pneumonia), while 14% develop severe symptoms (dyspnea, hypoxia, or more than 50% lung involvement on imaging), and 5% develop critical symptoms (respiratory failure, shock, or multiorgan dysfunction).[13] Older people have a higher risk of developing severe symptoms. Some complications result in death. Some people continue to experience a range of effects (long COVID) for months or years after infection, and damage to organs has been observed.[14] Multi-year studies on the long-term effects are ongoing.[15]

COVID‑19 transmission occurs when infectious particles are breathed in or come into contact with the eyes, nose, or mouth. The risk is highest when people are in close proximity, but small airborne particles containing the virus can remain suspended in the air and travel over longer distances, particularly indoors. Transmission can also occur when people touch their eyes, nose, or mouth after touching surfaces or objects that have been contaminated by the virus. People remain contagious for up to 20 days and can spread the virus even if they do not develop symptoms.[16]

Testing methods for COVID-19 to detect the virus’s nucleic acid include real-time reverse transcription polymerase chain reaction (RT‑PCR),[17][18] transcription-mediated amplification,[17][18][19] and reverse transcription loop-mediated isothermal amplification (RT‑LAMP)[17][18] from a nasopharyngeal swab.[20]

Several COVID-19 vaccines have been approved and distributed in various countries, many of which have initiated mass vaccination campaigns. Other preventive measures include physical or social distancing, quarantining, ventilation of indoor spaces, use of face masks or coverings in public, covering coughs and sneezes, hand washing, and keeping unwashed hands away from the face. While drugs have been developed to inhibit the virus, the primary treatment is still symptomatic, managing the disease through supportive care, isolation, and experimental measures.

Coronavirus disease 2019

COVID-19 is a contagious disease caused by the coronavirus SARS-CoV-2. In January 2020, the disease spread worldwide, resulting in the COVID-19 pandemic.

The symptoms of COVID‑19 can vary but often include fever,[7] fatigue, cough, breathing difficulties, loss of smell, and loss of taste.[8][9][10] Symptoms may begin one to fourteen days after exposure to the virus. At least a third of people who are infected do not develop noticeable symptoms.[11][12] Of those who develop symptoms noticeable enough to be classified as patients, most (81%) develop mild to moderate symptoms (up to mild pneumonia), while 14% develop severe symptoms (dyspnea, hypoxia, or more than 50% lung involvement on imaging), and 5% develop critical symptoms (respiratory failure, shock, or multiorgan dysfunction).[13] Older people have a higher risk of developing severe symptoms. Some complications result in death. Some people continue to experience a range of effects (long COVID) for months or years after infection, and damage to organs has been observed.[14] Multi-year studies on the long-term effects are ongoing.[15]

COVID‑19 transmission occurs when infectious particles are breathed in or come into contact with the eyes, nose, or mouth. The risk is highest when people are in close proximity, but small airborne particles containing the virus can remain suspended in the air and travel over longer distances, particularly indoors. Transmission can also occur when people touch their eyes, nose, or mouth after touching surfaces or objects that have been contaminated by the virus. People remain contagious for up to 20 days and can spread the virus even if they do not develop symptoms.[16]

Testing methods for COVID-19 to detect the virus’s nucleic acid include real-time reverse transcription polymerase chain reaction (RT‑PCR),[17][18] transcription-mediated amplification,[17][18][19] and reverse transcription loop-mediated isothermal amplification (RT‑LAMP)[17][18] from a nasopharyngeal swab.[20]

Several COVID-19 vaccines have been approved and distributed in various countries, many of which have initiated mass vaccination campaigns. Other preventive measures include physical or social distancing, quarantining, ventilation of indoor spaces, use of face masks or coverings in public, covering coughs and sneezes, hand washing, and keeping unwashed hands away from the face. While drugs have been developed to inhibit the virus, the primary treatment is still symptomatic, managing the disease through supportive care, isolation, and experimental measures.

Instalar servidor samba

(En Fedora)

Instalar tanto el servidor como los archivos auxiliares:

dnf install samba samba-common samba-client -y

Habilitar e inicializar los servicios de samba. El servicio principal es smb y el NetBIOS es nmb.

systemctl enable --now smb

systemctl enable --now nmb

Habilitar el firewall

firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
Ahora, editar el archivo de configuración /etc/samba/smb.conf

(Normalmente no hay que hacer nada con este archivo, a menos que quieras compartir recursos adicionales al home del usuario).

Crear los usuarios de samba.

Para cada usuario linux, hay que agregar al mismo usuario en samba:

smbpasswd -a <username>
Configurar una interface de red en Fedora
Pon el nombre del host

nmcli general hostname servidor.unam.mx

Despliega los datos de la conexión, necesitamos el nombre
nmcli connection
NAME UUID TYPE DEVICE
enp1s0 d5b9269c-cc38-396f-9443-ba28307b8c6e ethernet enp1s0
lo ff3c1301-f3d5-4859-aaa8-9fcd7d67edaa loopback lo
Cambia la dirección IPV4

nmcli connection modify enp1s0 ipv4.addresses 10.10.10.1/24

Cambia el gateway

nmcli connection modify enp1s0 ipv4.gateway 10.10.10.254

Cambia los DNS’s. Si con varios, separarlos por espacios

nmcli connection modify enp1s0 ipv4.dns 132.248.204.1

Cambia los dominios de búsqueda

nmcli connection modify enp1s0 ipv4.dns-search unam.mx

Activa el modo manual (Auto para DHCP)

nmcli connection modify enp1s0 ipv4.method manual

Reinicializa la conexión

nmcli connection up enp1s0

Instalar postgresql en un fedora

Instalación básica

Para instalar postgresql (17.2) en un sistema FEDORA (41) ejecutar

dnf install postgresql-server postgresql-contrib

El servidor postgres no está corriendo y está deshabilitado. Para habilitarlo y ejecutarlo

systemctl enable postgresql

Postgres funciona con su propio usuario (postgres). Hay que inicializar el usuario y la base de datos. Este comando también crea los archivos de configuración  postgresql.conf y pg_hba.conf

sudo postgresql-setup --initdb --unit postgresql

Creación de usuario y bases de datos

Ahora hay que crear un usuario normal y la base de datos del usuario. Para ello hay que ser usuario postgres

sudo -u postgres psql

Crearemos al usuario Perez y la base de datos Proyecto del usuario Perez. Al usuario Perez le asignaremos el password mipasswordsecreto.

postgres=# CREATE USER Perez WITH PASSWORD 'mipasswordsecreto';
postgres=# CREATE DATABASE Proyecto OWNER Perez;

Ahora ya puedes acceder como usuario Perez e iniciar la base de datos

psql Proyecto

pgAdmin 4

PgAdmin es una excelente interface para administrar tu postgres. Para instalar neceitas actualizar tus repositorios

 rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm

e instalar la interface web

yum install pgadmin4-web

Ejecuta la configuración

/usr/pgadmin4/bin/setup-web.sh

y ejecuta una actualización final

yum upgrade pgadmin4
Comando scp entre servidores

Para la autenticación y la configuración de la conexión, deberás generar un par de llaves ssh en el terminal mediante el siguiente comando:

Equipo de origen:

ssh-keygen -t rsa

Copia esta llave del sistema remoto usando:

ssh-copy-id user@remote_machine

Instalar LAMP

LAMP: Linux + Apache + Mysql + PHP

En un sistema FEDORA instalado, lo primero que hacemos es una actualización de los paquetes (como usuario root).

dnf upgrade --refresh

Ahora, instalaremos el apache

dnf -y install httpd

Instalado procedemos a arrancarlo y que se ejecute cuando arrancamos el equipo

systemctl enable httpd
systemctl start httpd

Ahora, vamos a instalar Mysql

dnf -y install mariadb-server
systemctl start mariadb
systemctl enable mariadb

Por defecto, mariadb viene con el usuario root sin contraseña. Asignar una contraseña nueva:

mysql_secure_installation

Asignamos un password nuevo y recomiendo eliminar usuarios anónimos, bases de prueba y accesos remotos.

Antes que nada, la vida no sirve sin un editor de a deveras:

dnf install emacs

Instalar php

dnf -y install php php-cli php-php-gettext php-mbstring php-mcrypt php-mysqlnd php-pear php-curl php-gd php-xml php-bcmath php-zip

Para ver la versión instalada

php -v

Instalar phpMyAdmin

dnf install phpmyadmin

editar el archivo /etc/httpd/conf.d/phpMyAdmin.conf

Y agregar las siguientes lineas al final:

<Directory /usr/share/phpMyAdmin>
    AddDefaultCharset UTF-8
    Require all granted
</Directory>

Podemos acceder al phpMyAdmin con

http://localhost/phpmyadmin

El SElinux debe estar en modo permisivo: Editar el archivo/etc/selinux/config

Con la variable SELINUX=permissive

Y abrir el firewall para permitir conexiones de apache:

firewall-cmd --permanent --add-service=http

Si vas a instalar certificados de seguridad, necesitarás adicional:

dnf install mod_ssl

y abrir el firewall para el puerto 443

firewall-cmd --add-service=https --permanent
firewall-cmd --reload