# Instalación del sistema operativo Debian para el servidor Medulla

##### Características técnicas

<div id="bkmrk-pr%C3%A9-requis-%E2%80%93-dimensi" style="text-align:center;"><table class="MsoNormalTable" style="width:643px;border-collapse:collapse;"><tbody><tr><td colspan="3" style="width:417.3pt;border:solid #999999 1pt;background:#99CC66;padding:2.75pt 2.75pt 2.75pt 2.75pt;">**<span style="font-size:11pt;font-family:FreeSans;color:#FFFFFF;">Requisitos previos – Dimensionamiento de los servidores</span>**

</td></tr><tr><td rowspan="6" style="width:81.95pt;border-top:none;border-left:solid #999999 1pt;border-bottom:solid #999999 1pt;border-right:none;background:#99CC66;padding:2.75pt 2.75pt 2.75pt 2.75pt;">**<span style="font-size:11pt;font-family:FreeSans;color:#FFFFFF;">Servidor principal </span>**

</td><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">SO</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">Debian 12.x</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">Arquitectura</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">X86-64</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">CPU</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">8 núcleos</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">RAM</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">8 GB</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">Partición /</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">20 GB en EXT4</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">Partición /var</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">400 GB como mínimo en XFS o punto de montaje en una bahía de almacenamiento</span>

</td></tr><tr><td rowspan="6" style="width:81.95pt;border-top:none;border-left:solid #999999 1pt;border-bottom:solid #999999 1pt;border-right:none;background:#99CC66;padding:2.75pt 2.75pt 2.75pt 2.75pt;">**<span style="font-size:11pt;font-family:FreeSans;color:#FFFFFF;">Servidores de retransmisión multisitio</span>**

**<span style="font-size:11pt;font-family:FreeSans;color:#808080;">(si procede)</span>**

</td><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">SO</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">Debian 12.x</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">Arquitectura</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">X86-64</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">CPU</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">4 núcleos</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">RAM</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">8 GB</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">Partición /</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">20 GB en EXT4</span>

</td></tr><tr><td style="width:155.4pt;border:solid #999999 1pt;border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;"><span style="font-family:'Liberation Serif', serif;">Partición /var</span>

</td><td style="width:179.95pt;border-top:none;border-left:none;border-bottom:solid #999999 1pt;border-right:solid #999999 1pt;padding:0cm 0.5pt 0cm 0.5pt;"><span style="font-family:'Liberation Serif', serif;">400 GB como mínimo en XFS o punto de montaje en una bahía de almacenamiento</span>

</td></tr></tbody></table>

</div>##### Instalación del servidor Debian

Resumen:

<span><span>-</span></span><span><span><span style="font:7pt 'Times New Roman';"> </span></span></span> Separar solo /var de / y ponerlos en LVM

<span><span>- <span style="font:7pt 'Times New Roman';"> Instalar </span></span></span>el servidor SSH y las utilidades estándar del sistema

<span><span>- <span style="font:7pt 'Times New Roman';"> No </span></span></span>instalar ningún antivirus ni cortafuegos

<span><span>- <span style="font:7pt 'Times New Roman';"> Definir </span></span></span>una cuenta que

<span style="font-family:'Courier New';"><span>o <span style="font:7pt 'Times New Roman';"> pueda </span></span></span>ejecutar sudo sin contraseña

<span style="font-family:'Courier New';"><span>o <span style="font:7pt 'Times New Roman';"> pueda </span></span></span>conectarse desde la IP **94.130.207.190**

<span style="font-family:'Courier New';"><span>o <span style="font:7pt 'Times New Roman';"> pueda </span></span></span>conectarse con la siguiente clave:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCScgwfwJKM5BtgzAYu6FEeJ5jW3onkzFp8D8piLR22kWbRcT/AJ1z0jhS5ZDtn6mumfidVPFbLkDf382u54pOU6JGwy9GhvEIXOSlzgxZMH5kcfeBE/8Ovr9zLtbRKsWQN9YUSt5y6lmcSxuQNVhkRy49/593oamVJACSitSVJ68716hj0gp4N8gUMVkvNgEBDZVSPe0DXz2h7JEzOKx2ejjRaw22ve+qARTw+60gMP0aCLGt/m0cyv+90AZigQwWIPcUk+bBRJn3Ku+Bkw+JuLYURlVc4xoTvT1JTWKXAzMln4nrlisIc9Ex5eEHSkvs/fgJCgU28Fza5n5mBj/pbQRY+/AWLjvBVuLiVReO7hq60fhrX9+j7MWMCYCZQiHbk/r7OprLyl2yGFX1DbgRGF1Sk2R9DtqRhwPzPxtQ7ZtKSjIhLjrZxJ/YJLHSoUsw+4CHprjzU0gXBt1RCQoyhYqEGcnuFyfd9dIBXCINkmp4jfz7CQjrC8uPqAtS1zQU= support@support

##### Configuración de la partición de discos

Particione los discos siguiendo las instrucciones que se indican a continuación:

Realizar una partición manual

<span>![RXi6qfZ9PswkCuWM-embedded-image-k3kebzpb.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/RXi6qfZ9PswkCuWM-embedded-image-k3kebzpb.png)</span>

<span>![8te0UWcUdspzZBMb-embedded-image-ympc4spb.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/8te0UWcUdspzZBMb-embedded-image-ympc4spb.png)</span>

<span>![VmC09oQIVFslMAOG-embedded-image-qvsjgdgq.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/VmC09oQIVFslMAOG-embedded-image-qvsjgdgq.png)</span>

Creación de la partición /boot

<span>![IwEnXmeZzAnsDTC7-embedded-image-w4xke79q.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/IwEnXmeZzAnsDTC7-embedded-image-w4xke79q.png)</span>

<span>![TV5wT18WD9OYAcqi-embedded-image-dwbr5kuq.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/TV5wT18WD9OYAcqi-embedded-image-dwbr5kuq.png)</span>

<span>![0qRqYiNJCdllwSJ9-embedded-image-qgdzniyl.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/0qRqYiNJCdllwSJ9-embedded-image-qgdzniyl.png)</span>

<span>![KINj9qRDPfRiYZqh-embedded-image-lxe8vm2c.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/KINj9qRDPfRiYZqh-embedded-image-lxe8vm2c.png)</span>

<span>![QTGvfLswyCwFcQx5-embedded-image-ogg9lntv.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/QTGvfLswyCwFcQx5-embedded-image-ogg9lntv.png)</span>

**<span>![gTD9G2rs5dtUG0r5-embedded-image-kwrl6wtl.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/gTD9G2rs5dtUG0r5-embedded-image-kwrl6wtl.png)</span>**

Creación del LVM

<span>![Hdz8G7I7yGDXCNMs-embedded-image-rmqzlrgh.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/Hdz8G7I7yGDXCNMs-embedded-image-rmqzlrgh.png)</span>

<span>![yMZHBmMiH2vXFpfy-embedded-image-5sakjhab.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/yMZHBmMiH2vXFpfy-embedded-image-5sakjhab.png)</span>

<span>![ZLmjvxT9xxd4XlQB-embedded-image-ah2je5fw.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/ZLmjvxT9xxd4XlQB-embedded-image-ah2je5fw.png)</span>

<span>![efACs6NK7Gbp3yNK-embedded-image-iksbohcj.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/efACs6NK7Gbp3yNK-embedded-image-iksbohcj.png)</span>

<span>![navXOvvK11MzaJFx-embedded-image-dt6vkkmg.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/navXOvvK11MzaJFx-embedded-image-dt6vkkmg.png)</span>

<span>![xujPjspeZkZypAVT-embedded-image-fzhrvved.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/xujPjspeZkZypAVT-embedded-image-fzhrvved.png)</span>

<span>![UAzAjpCcJyNLYOmb-embedded-image-sbnedsji.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/UAzAjpCcJyNLYOmb-embedded-image-sbnedsji.png)</span>

Creación del grupo de volúmenes vg

<span>![DYQK1prhJbIJVCL2-embedded-image-dpriouo9.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/DYQK1prhJbIJVCL2-embedded-image-dpriouo9.png)</span>

<span>![FrJtSW6vic2PpAbj-embedded-image-ratkesnt.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/FrJtSW6vic2PpAbj-embedded-image-ratkesnt.png)</span>

<span>![qeCGGIlWZ2t77JeH-embedded-image-guaasj24.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/qeCGGIlWZ2t77JeH-embedded-image-guaasj24.png)</span>

Creación del volumen lógico lvroot

<span>![oNaJ3t4UQqkEJ7Ez-embedded-image-hu8ybn2n.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/oNaJ3t4UQqkEJ7Ez-embedded-image-hu8ybn2n.png)</span>

<span>![cYmQl6BuhZPZp7fF-embedded-image-wo63hn3s.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/cYmQl6BuhZPZp7fF-embedded-image-wo63hn3s.png)</span>

<span>![peBSVAHNJOnmb1II-embedded-image-cchq1b6n.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/peBSVAHNJOnmb1II-embedded-image-cchq1b6n.png)</span>

<span>![vROib7ewmIUJYcuA-embedded-image-glmzrnrc.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/vROib7ewmIUJYcuA-embedded-image-glmzrnrc.png)</span>

Repetir para los volúmenes lvswap y lvvar

<span>![DquKSa2Mtlq0gG5R-embedded-image-snhvcaj6.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/DquKSa2Mtlq0gG5R-embedded-image-snhvcaj6.png)</span>

<span>![KZcKrmFHAJpUMTLP-embedded-image-ntgqhdgq.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/KZcKrmFHAJpUMTLP-embedded-image-ntgqhdgq.png)</span>

<span>![uYVhoMDThRZGqQR6-embedded-image-jkza0twt.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/uYVhoMDThRZGqQR6-embedded-image-jkza0twt.png)</span>

<span>![AEJKbB4FLVGOYwZK-embedded-image-93rhaz1w.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/AEJKbB4FLVGOYwZK-embedded-image-93rhaz1w.png)</span>

Para obtener el siguiente esquema LVM:

<span>![wiN6RiAoqlWTTpO7-embedded-image-tjy0unp9.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/wiN6RiAoqlWTTpO7-embedded-image-tjy0unp9.png)</span>

<span>![IyN684C1YqNlTixG-embedded-image-tlhdjfw0.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/IyN684C1YqNlTixG-embedded-image-tlhdjfw0.png)</span>

Configurar la partición /

<span>![5KxhfcV0spUh97la-embedded-image-rjjlj3ry.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/5KxhfcV0spUh97la-embedded-image-rjjlj3ry.png)</span>

<span>![z4trMBsNo0krFnQQ-embedded-image-zmal04r3.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/z4trMBsNo0krFnQQ-embedded-image-zmal04r3.png)</span>

Repetir para cada una de las particiones swap y /var:

<span>![X6XNDXKhchm0A1Nx-embedded-image-ubsfnaop.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/X6XNDXKhchm0A1Nx-embedded-image-ubsfnaop.png)</span>

<span>![BkApQxifsvygZxQL-embedded-image-3hqodqtd.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/BkApQxifsvygZxQL-embedded-image-3hqodqtd.png)</span>

Para obtener el siguiente esquema de particiones:

<span>![E0KfH5OcMAkGBumZ-embedded-image-ugnmmpfl.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/E0KfH5OcMAkGBumZ-embedded-image-ugnmmpfl.png)</span>

##### Instalación de los paquetes

<span>![ZdgL7U9FlIpckFMo-embedded-image-4c0bkbzl.png](https://docs.medulla-tech.io/uploads/images/gallery/2026-01/ZdgL7U9FlIpckFMo-embedded-image-4c0bkbzl.png)</span>

<span lang="en-us"> </span>

<span lang="en-us"> </span>

##### <span lang="en-us">Comprobación del servidor</span>

<span><span>1. <span style="font:7pt 'Times New Roman';"> Descargar </span></span></span>el script de verificación desde [https://dl.medulla-tech.io/nc/check\_server\_before\_install.sh](https://dl.medulla-tech.io/nc/check_server_before_install.sh)

```
wget https://dl.medulla-tech.io/nc/check_server_before_install.sh
```

<span><span>2. <span style="font:7pt 'Times New Roman';"> Ejecuta </span></span></span>los siguientes comandos:

```
chmod +x check_server_before_install.sh

./check_server_before_install.sh
```

<span><span>3.<span style="font:7pt 'Times New Roman';"> </span></span></span>

Todas las pruebas del script deben dar resultado correcto; una vez hecho esto, puede descargar el script de instalación a través del formulario de contacto:

[https://github.com/medulla-tech/medulla/blob/master/README.fr.md](https://github.com/medulla-tech/medulla/blob/master/README.fr.md)

Si dispone de un contrato de asistencia técnica, envíe el resultado a delivery@medulla-tech.io. Si no es así, póngase en contacto con el departamento de «ventas» a través de nuestra página web[medulla-tech.io](https://docs.medulla-tech.io/medulla-tech.io).

Estos son los errores más comunes:

##### 1. Límites de Core Dump (limits)

**Contexto:** El archivo `/etc/security/limits.d/10-coredump-debian.conf` define el tamaño máximo de los archivos «core dump». Nuestro script espera valores específicos que no se corresponden con la configuración actual.

**Cómo solucionarlo:** Modifique el archivo mencionado para que se ajuste a lo esperado.

1. Abra el archivo: `sudo nano /etc/security/limits.d/10-coredump-debian.conf`
2. Modifique las líneas para que queden así:
    
    
    - `* hard core infinity`
    - `root hard core infinity`
    - `* soft core 0`
    - `root soft core 0`

**Fuentes recomendadas:** Documentación de Debian sobre `limits.conf` y `core dump`.

---

##### 2. Número de archivos abiertos (lsof)

**Contexto:** Las líneas `de lsof` correspondientes a los usuarios <span style="text-decoration:underline;">xxx</span> y `messagebus` indican que el número de archivos abiertos actualmente se desvía del valor esperado por el script de verificación (a menudo porque hay servicios ya en ejecución o mal configurados).

**Cómo solucionarlo:** A menudo es solo informativo, pero si necesitas reducir estas cifras:

- Identifique qué están haciendo estos usuarios: `ps -u número_de_usuario_con_error`.
- Reinicie los servicios asociados (por ejemplo: `sudo systemctl restart dbus` para messagebus).
- Si los valores esperados son demasiado estrictos para su uso, puede que tenga que ajustar el propio script de verificación o los límites globales `de ulimit`.

**Fuentes recomendadas:** Manual de `lsof` y gestión de descriptores de archivos en Linux.

---

##### 3. Parámetros de systemd (NPROC y SIGPENDING)

**Contexto:** Los valores `DefaultLimitNPROC` (número máximo de procesos) y `DefaultLimitSIGPENDING` (señales en espera) deben ser**31541**.

**Cómo solucionarlo:** Hay que forzar estos valores en la configuración global de systemd para que coincidan exactamente con lo esperado.

1. Modifique el archivo de configuración: `sudo nano /etc/systemd/system.conf`
2. Descomente o añada las siguientes líneas:
    
    
    - `DefaultLimitNPROC=31541`
    - `DefaultLimitSIGPENDING=31541`
3. Recargue la configuración y reinicie (o utilice `systemctl daemon-reexec`).

**Fuentes recomendadas:** Documentación `de systemd-system.conf` en freedesktop.org.