Diferencia entre revisiones de «Polonio: servidor intranet»
Ir a la navegación
Ir a la búsqueda
| (No se muestran 3 ediciones intermedias de 3 usuarios) | |||
| Línea 1: | Línea 1: | ||
=== Instalación Ubuntu Server - Polonio - === | === Instalación Ubuntu Server - Polonio - === | ||
| + | [[Instalación Básica Server]] | ||
== Respaldo: == | == Respaldo: == | ||
| Línea 19: | Línea 20: | ||
POLONIO: | POLONIO: | ||
| − | sda1 /boot -> 500Mb ext2 (primaria) | + | *sda1 /boot -> 500Mb ext2 (primaria) |
| − | sda2 / -> 2Gb ext4 (primaria) | + | *sda2 / -> 2Gb ext4 (primaria) |
| − | sda3 swap 6Gb àrea de intercambio (primaria) | + | *sda3 swap 6Gb àrea de intercambio (primaria) |
| − | sda5 /usr -> 10Gb ext4 | + | *sda5 /usr -> 10Gb ext4 |
| − | sda6 /var -> 10Gb ext4 | + | *sda6 /var -> 10Gb ext4 |
| − | sda7 /tmp -> 512Mb ext4 | + | *sda7 /tmp -> 512Mb ext4 |
| Línea 64: | Línea 65: | ||
Para decir cada cuánto tiempo purgamos hosts.deny: | Para decir cada cuánto tiempo purgamos hosts.deny: | ||
| − | PURGE_DENY = 1h | + | PURGE_DENY = 1h |
| − | DENY_THRESHOLD_INVALID? = 2 | + | DENY_THRESHOLD_INVALID? = 2 |
| − | DENY_THRESHOLD_VALID? = 5 | + | DENY_THRESHOLD_VALID? = 5 |
| Línea 81: | Línea 82: | ||
# This file describes the network interfaces available on your system | # This file describes the network interfaces available on your system | ||
# and how to activate them. For more information, see interfaces(5). | # and how to activate them. For more information, see interfaces(5). | ||
| − | |||
# The loopback network interface | # The loopback network interface | ||
auto lo | auto lo | ||
iface lo inet loopback | iface lo inet loopback | ||
| − | |||
# The primary network interface | # The primary network interface | ||
auto eth0 | auto eth0 | ||
| Línea 106: | Línea 105: | ||
Para no permitir que se puedan hacer login con el usuario root por ssh hay que cambiar: | Para no permitir que se puedan hacer login con el usuario root por ssh hay que cambiar: | ||
PermitRootLogin yes por: PermitRootLogin no | PermitRootLogin yes por: PermitRootLogin no | ||
| + | |||
| + | NTP: | ||
| + | sudo apt-get install ntp | ||
| + | |||
| + | Configuramos el archivo /etc/ntp.conf | ||
| + | |||
| + | Agregamos los servidores más cercanos de stratum 2: | ||
| + | # Definición de los servidores | ||
| + | server 0.south-america.pool.ntp.org | ||
| + | server 1.south-america.pool.ntp.org | ||
| + | server 2.south-america.pool.ntp.org | ||
| + | server 3.south-america.pool.ntp.org | ||
| + | #server ntp.ubuntu.com | ||
| + | [[Category:Descontinuadas]] | ||
Revisión actual - 19:23 13 ene 2022
Instalación Ubuntu Server - Polonio -
Respaldo:
completo /etc
completo /home
parcial /var
ej: /var/www o/y /var/lib/mysql (para este último hay que parar el servicio antes de respaldarlo)
Particionado:
POLONIO:
- sda1 /boot -> 500Mb ext2 (primaria)
- sda2 / -> 2Gb ext4 (primaria)
- sda3 swap 6Gb àrea de intercambio (primaria)
- sda5 /usr -> 10Gb ext4
- sda6 /var -> 10Gb ext4
- sda7 /tmp -> 512Mb ext4
En LVM
sda8 LVM
Configurar LVM
Crear grupo de volumenes: polonio -> y se seleciona solamente la partición LVM
Crear un volúmen lógico: polonio ->nombre volúmen lógico: home -> tamaño 50GB
en LVM VG polonio, LV home - 50.0 gb Linux device-mapper (linear)
- 1 50.0GB f ext4 /home
Instalar Deny Host
sudo apt-get install denyhosts
Para configurarlo:
nano /etc/denyhosts.conf
Para decir cada cuánto tiempo purgamos hosts.deny:
PURGE_DENY = 1h
DENY_THRESHOLD_INVALID? = 2
DENY_THRESHOLD_VALID? = 5
Configuración de red:
Editamos el archivo /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.5.1.254 netmask 255.255.255.0 network 10.5.1.0 broadcast 10.5.1.255 gateway 10.5.1.1 # dns-* options are implemented by the resolvconf package, if installed
Otros servicios instalados:
SSH:
sudo apt-get install openssh-server
Configuramos el archivo /etc/ssh/sshd_conf
Para no permitir que se puedan hacer login con el usuario root por ssh hay que cambiar:
PermitRootLogin yes por: PermitRootLogin no
NTP:
sudo apt-get install ntp
Configuramos el archivo /etc/ntp.conf
Agregamos los servidores más cercanos de stratum 2:
# Definición de los servidores server 0.south-america.pool.ntp.org server 1.south-america.pool.ntp.org server 2.south-america.pool.ntp.org server 3.south-america.pool.ntp.org #server ntp.ubuntu.com