El servidor perfecto - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Tutorial / Guía de instalación

Basado en:
http://www.howtoforge.com/perfect-server-ubuntu8.04-lts

Este tutorial muestra cómo instalar Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) versión servidor que ofrece los servicios necesario para ser ISP. Este tutorial está escrito para ser practicado bajo la versión de 32 bits de Ubuntu 8.04 LTS, pero puede ser aplicado a la versión de 64 bits con ligeras modificaciones.

Al final, deberías tener un sistema operativo funcional que trabaje de verdad, y si se requiere, se pueda instalar un control web hosting para ISPconfig.

Lo primero que hay que saber es que esta no es la única manera de configurar el sistema operativo, habiendo otras maneras. Por otra parte, no hay garantía de que esta configuración sea la definitiva para el correcto funcionamiento del sistema operativo

1 - Requerimientos

2 - Preliminar

En este tutorial se usa el hostname server1.example.com con la ip 192.168.0.100 y el gateway 192.168.0.1

En su aplicación, ud puede modificar estos valores de acuerdo a sus requerimientos.

3 - El sistema base

Inserte el disco, elija un idioma y seleccione Install Ubuntu Server:


Seleccione localizacion:
Escribe un hostname. en este ejemplo el sistema es llamado server1.example.com, entonces se escribe server1:

Ahora es tiempo de particionar el disco duro. Debido a la brevedad será indispensable usar todo el disco (o si prefieres se puede particionar de acuerdo a las necesidades):


Selecciona el disco a particionar (todo el disco):


Elija Sí para confirmar los cambios:


Luego de esto, la nueva partición será creada y formateada. A continuación, el sistema base se instalará:

Crea un usuario, por ejemplo, el usuario administrador (no uses el nombreadmin porque está resevado en Ubuntu 8.04), luego ponle una contraseña:


Lo proximo es la configuración de apt gets. Si el servidor está detras de un proxy HTTP, debes configurarlo para tener acceso a la Internet:

Necesitamos DNS, Servidor de mail, y un LAMP server, pero se instalará las últimas vesiones después. Por ahora, el único elemento que vamos instalar es OpenSSH server para conectarnos via un cliente SSH como PuTTY después de que la instalación haya finalizado:


La instalación continúa. Luego reiniciar:


4 - Habilitando la cuenta root

Despues de Reiniciar debes iniciar la sesión usando el usuario que hayas puesto (En este ejemplo Administrador) pero como vamos necesitar usar la cuenta root, así que será necesario activarla.

sudo passwd root

Y escribe una contraseña, luego

su

5 - Instalar el servidor SSH

Si te olvidaste instalar el servidor SSH en el paso anterior (para tener acceso remoto a Ubuntu Server) usar lo siguiente:

apt-get install ssh openssh-server

6 - Instalar vim-full

En este tutorial usaremos vi, pero si deseas puedes usar nano o joe:

apt-get install vim-full

7 - Configurar la red

Es posible que el servidor que configures se encuentre habilitado para recibir DHCP. Debemos cambiar este valor e indicar un IP estático:
vi /etc/network/interfaces
Luego tenemos:

#
# 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 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1

pero si tienes que configurar una segunda tarjeta de red distinta de eth0:

# 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 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
# Segunda tarjeta de red
auto eth1
iface eth1 inet static
address 192.168.0.100
netmask 255.255.255.0


Reiniciar la red:
/etc/init.d/networking restart
Luego, editar /etc/hosts. Debe quedar así:
vi /etc/hosts


127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Ahora ejecutar:

echo server1.example.com > /etc/hostname
/etc/init.d/hostname.sh start

A continuación, ejecutar:

hostname
hostname -f


Ambos deberían mostrar:
server1.example.com
8 Editar /etc/apt/sources.list y Actualizar la instalación Linux.
Edita /etc/apt/sources.list. Habilita los repositorios universe y multiverse
vi /etc/apt/sources.list
Debería quedar así:

# deb cdrom:[Ubuntu-Server 8.04 _Hardy Heron_ - Release i386 (20080423.2)]/ hardy main restricted
#deb cdrom:[Ubuntu-Server 8.04 _Hardy Heron_ - Release i386 (20080423.2)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ hardy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://de.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://de.archive.ubuntu.com/ubuntu/ hardy universe
deb http://de.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ hardy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://de.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://de.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse


Actualizar los paquetes:
apt-get update
Instalar las actualizaciones:
apt-get upgrade
9 - Cambiar el shell por defecto

/bin/sh es muy similar a /bin/dash, pero necesitamos /bin/bash, no /bin/dash. Debe hacerse el cambio así:
ln -sf /bin/bash /bin/sh
(Si no haces esto la ISPConfig puede fallar).

10 - Desabilitar AppArmor
AppArmor es una extensión para seguridad extendida. Más que ventaja, en ocasiones causa molestia, asi que por el momento será desabilitada:

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove

A partir de aquí, se puede:

AUTOR Miguel Cruz
COMENTARIOS 2 Comentarios

2 Respuestas a : El servidor perfecto - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) - Tutorial / Guía de instalación

  1. --By GEAR says:

    De veras q' gracias por el tutorial, había visto otro en el cual faltaban algunas cosas y estaba en ingles, es facilista de decir q' solo tradujiste, por eso noto q' hiciste algunas correcciones. Dudas puedo imaginar q' me colaboras?

  2. Gracias!, la verdad tome tiempo en traducir, pero lo hice para aprender :) Que bueno que les sirva.

Deja un comentario

(c) Miguel A. Cruz. C.. Tecnología de Blogger.