Instalación de LTSP
De Wiki Educalibre
Tabla de contenidos |
[editar] Preparando la Instalación
Nota:Esta instalación se hizo con la distribucion GNU/Linux Debian Sarge. Y los script de instalación desde internet para la version 4.1 de Ltsp.org
Casi todas las distribuciones poseen los mismos servicios y los mismos archivos de configuración, por lo que todas las configuraciones deberia ser muy similares, lo único que las diferencian son los paquetes especificos de LTSP a instalar.
Primero instalaremos todos los servicios basicos para que LTSP pueda funcionar sin problemas. Con el gestor de paquetes de debian apt podemos descargar todos los paquetes para nuestros propositos:
# apt-get install dhcp tftp tftp portmap # apt-get install nfs-common nfs-kernel-server nfs-user-server
Además podemos bajar un paquete que contiene varios script que nos ayudaran a configurar los servicios necesarios como tambien ltsp.
# apt-get install ltsp-utils
[editar] Servicios
[editar] dhcp
El archivo de configuración del servidor DHCP se encuentra en /etc/dhcpd.conf
# Sample configuration file for ISCD dhcpd
#
# Don't forget to set run_dhcpd=1 in /etc/init.d/dhcpd
# once you adjusted this file and copied it to /etc/dhcpd.conf
# (for dhcpd v. 2) or /etc/dhcp3/dhcpd.conf (for dhcpd v. 3).
#
# For dhcpd v. 3, you need to uncomment the following two lines:
#option option-128 code 128 = string;
#option option-129 code 129 = text;
#
default-lease-time 21600;
max-lease-time 21600;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.254;
option domain-name-servers 192.168.0.254;
option domain-name "yourdomain.com";
option root-path "192.168.0.254:/opt/ltsp/i386";
shared-network WORKSTATIONS {
subnet 192.168.0.0 netmask 255.255.255.0 {
}
}
group {
use-host-decl-names on;
option log-servers 192.168.0.254;
# The following is _NOT_ a MAC address!
option option-128 e4:45:74:68:00:00;
host ws001 {
hardware ethernet 00:E0:06:E8:00:84;
fixed-address 192.168.0.1;
filename "/tftpboot/lts/vmlinuz-2.4.19-ltsp-1";
option option-129 "NIC=eepro100";
}
host ws002 {
hardware ethernet 00:D0:09:30:6A:1C;
fixed-address 192.168.0.2;
filename "/opt/ltsp/lts/vmlinuz-2.4.19-ltsp-1";
option option-129 "NIC=tulip";
}
}
[editar] tftp
Para configurar tftp hay que editar el archivo de servicios de internet /etc/inetd.conf y agregar o modificar la linea que apunta hacia tftp.
#:BOOT: Tftp service is provided primarily for booting. Most sites # run this only on machines acting as "boot servers." tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot/lts
Luego reiniciamos los servicios:
# /etc/init.d/inetd restart (Debian ETCH 4.0) /etc/init.d/openbsd-inetd restart
[editar] nfs
Las unidades a exportar con NFS se encuentran en /etc/exports
# /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). ## LTS-begin ## # # The lines between the 'LTS-begin' and the 'LTS-end' were added # on: Fri Mar 4 12:28:39 CLST 2005 by the ltsp installation script. # For more information, visit the ltsp homepage # at http://www.ltsp.org # /opt/ltsp/i386 192.168.0.0/255.255.255.0(ro,no_root_squash) /var/opt/ltsp/swapfiles 192.168.0.0/255.255.255.0(rw,no_root_squash)
Para dar permiso a los usuarios para que puedan montar estas unidades se debe editar el archivo /etc/hosts.allow:
# /etc/hosts.allow: list of hosts that are allowed to access the system. # See the manual pages hosts_access(5), hosts_options(5) # and /usr/doc/netbase/portmapper.txt.gz # # Example: ALL: LOCAL @some_netgroup # ALL: .foobar.edu EXCEPT terminalserver.foobar.edu # # If you're going to protect the portmapper use the name "portmap" for the # daemon name. Remember that you can only use the keyword "ALL" and IP # addresses (NOT host or domain names) for the portmapper. See portmap(8) # and /usr/doc/portmap/portmapper.txt.gz for further information. # ## LTS-begin ## # # The lines between the 'LTS-begin' and the 'LTS-end' were added # on: Mon Jan 24 16:35:55 CLST 2005 by the ltsp installation script. # For more information, visit the ltsp homepage # at http://www.ltsp.org # bootpd: 0.0.0.0 in.tftpd: 192.168.0. portmap: 192.168.0. mountd: 192.168.0. ## LTS-end ##

