Archive for julio, 2019

ltsp servidor Debian Buster con Xfce

# Nos guiamos en general desde el siguiente enlace
https://wiki.debian.org/LTSP/Howto
# Terminamos instalando Debian Buster estable con Xfce
Debian Buster Xfce

# Instalamos lo necesario
apt install –yes –install-recommends ltsp-server-standalone dnsmasq epoptes epoptes-client ltsp-client network-manager-gnome resolvconf rsync

# Para que pueda usar epopte el usuario tiene que pertenecer a dicho grupo
usermod -G epoptes -a usuario

# Solucionar un drama con el usuario root que pierde las variables de entorno
vi /etc/profile

if [ «`id -u`» -eq 0 ]; then
PATH=»/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin»
else
PATH=»/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games»
fi

# Para salir del paso hago esto
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin

# La configuracion de las dos placas va asi
vi /etc/network/interfaces

# La primer placa recibe por dhcp
auto enp4s0
iface enp4s0 inet dhcp

# La segunda placa da dhcp
auto enp3s0
iface enp3s0 inet static
address 192.168.67.1
netmask 255.255.255.0

# Creamos ambos clientes para ambas arquitecturas.
ltsp-build-client –arch i386 –mount-package-cache
ltsp-build-client –arch amd64 –mount-package-cache

# Esto hace un chroot de cada arquitectura instalando el cliente de epoptes.
ltsp-chroot -m –arch i386 apt install –yes –install-recommends epoptes-client -y
ltsp-chroot -m –arch amd64 apt install –yes –install-recommends epoptes-client -y

# Aca lo que hacemos es hacer andar el cliente
ltsp-chroot -m –arch i386 epoptes-client -c
ltsp-chroot -m –arch amd64 epoptes-client -c

# Le decimos a ltsp que funcione usando dnsmasq
ltsp-config dnsmasq

# Reiniciamos dicho servicio
service dnsmasq restart

# Como uso dos arquitecturas tuve que tocar la configuracion de dnsmasq para que tome ambas.

cat /etc/dnsmasq.d/ltsp-server-dnsmasq.conf

# Configures dnsmasq for PXE client booting.
# All the files in /etc/dnsmasq.d/ override the main dnsmasq configuration in
# /etc/dnsmasq.conf.
# You may modify this file to suit your needs, or create new ones in dnsmasq.d/.

# Log lots of extra information about DHCP transactions.
#log-dhcp

# IP ranges to hand out.
dhcp-range=192.168.67.20,192.168.67.50,8h

# If another DHCP server is present on the network, you may use a proxy range
# instead. This makes dnsmasq provide boot information but not IP leases.
# (needs dnsmasq 2.48+)
dhcp-range=192.168.0.0,proxy

# The rootpath option is used by both NFS and NBD.
dhcp-option=17,/opt/ltsp/amd64
dhcp-option=18,/opt/ltsp/i386

# Define common netboot types.
dhcp-vendorclass=etherboot,Etherboot
dhcp-vendorclass=pxe,PXEClient
dhcp-vendorclass=ltsp,»Linux ipconfig»

# Set the boot filename depending on the client vendor identifier.
# The boot filename is relative to tftp-root.
dhcp-boot=net:pxe,/ltsp/amd64/pxelinux.0
dhcp-boot=net:pxe,/ltsp/i386/pxelinux.0
dhcp-boot=net:etherboot,/ltsp/amd64/nbi.img
dhcp-boot=net:etherboot,/ltsp/i386/nbi.img
dhcp-boot=net:ltsp,/ltsp/amd64/lts.conf
dhcp-boot=net:ltsp,/ltsp/i386/lts.conf

# Kill multicast.
dhcp-option=vendor:pxe,6,2b

# Disable re-use of the DHCP servername and filename fields as extra
# option space. That’s to avoid confusing some old or broken DHCP clients.
dhcp-no-override

# We don’t want a PXE menu since we’re using a graphical PXELinux menu.
#pxe-prompt=»Press F8 for boot menu», 3

# The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86,
# Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
pxe-service=X86PC, «Boot from network-amd64», /ltsp/amd64/pxelinux
pxe-service=X86PC, «Boot from network-i386», /ltsp/i386/pxelinux

# A boot service type of 0 is special, and will abort the
# net boot procedure and continue booting from local media.
#pxe-service=X86PC, «Boot from local hard disk», 0

# Comment the following to disable the TFTP server functionality of dnsmasq.
enable-tftp

# The TFTP directory. Sometimes /srv/tftp is used instead.
tftp-root=/var/lib/tftpboot/

# Disable the DNS server functionality of dnsmasq by setting port=0
#port=0

Esto hace que no se jodan los dns
# Disable the DNS server functionality of dnsmasq by setting port=0
#port=0

# Esto ante cualquier cambio en el server siempre es asi

ltsp-update-image
ltsp-update-kernels
ltsp-update-sshkeys

# Aplicaciones necesarias.
apt install childsplay tuxmath tuxtype qemu-user-static gimp inkscape libreoffice simple-scan sweethome3d vlc scribus dia evince speedcrunch transmission nmap pidgin kupfer terminator gnome-system-monitor putty iptux tuxpaint gparted openshot tuxtype gedit bluefish filezilla geany ethtool librsvg2-bin ca-certificates python-gobject-2-dbg python-gtk2-doc gcc gfortran python-dev python-nose python-numpy-dbg python-numpy-doc iselect screenie byobu tcl-tclreadline gnome-screenshot gnome-font-viewer gnome-screenshot cups notification-daemon python-dbus python-notify python-openssl python-twisted-core xvnc4viewer ssvnc gnome-system-tools xterm -y

julio 8, 2019 at 5:47 pm Deja un comentario


bueno

julio 2019
L M X J V S D
1234567
891011121314
15161718192021
22232425262728
293031  

Archivos