[ Frank Weißer, 2023-03-15 ] > What does not work: > Log in as that user graphical on diskless workstations 192.168.250.130 > (hostname ltsp130) nor 192.168.0.22 (ltsp22) > Changing to console 1 I can log in, getting > 'No directory, logging in with HOME=/'
LTSP needs to be adjusted, too. Please test the attached script. Wolfgang
#!/bin/bash # This script applies to Debian Edu 'bullseye'. It needs to be run on a combined # server (profiles Main-Server, Workstation, LTSP-Server) after having run the # subnet-change script and rebooted the main server afterwards. # Author/Copyright: Wolfgang Schweer <wschw...@arcor.de> # Licence: GPL2+ set -e # The /etc/network/interfaces file should look like this: # # auto eth0 eth1 # iface eth0 inet static # address 192.168.178.16 # gateway 192.168.178.1 # dns-search intern # dns-nameserver 127.0.0.1 # # iface eth1 inet static # address 192.168.0.254 # # Adjust in case of a wrong eth1 entry. if [ "$(hostname -I | cut -d' ' -f2)" = "192.168.0.254" ] ; then : else echo "" echo "The /etc/network/interfaces file contains a wrong eth1 entry," echo "it should be 'address 192.168.0.254'. Replacing it." ETH1ADD=$(hostname -I | cut -d' ' -f2) sed -i 's/'"$ETH1ADD"'/192.168.0.254/' /etc/network/interfaces echo "Restarting network" service networking restart fi # In case the next five steps below have been executed successfully # on the main server (after subnet-change and reboot) they could be commented. service named stop rm -rf /var/cache/bind/managed-keys* service named start ## See https://wiki.debian.org/DebianEdu/Status/Bullseye#Known_problems_that_can_be_fixed_locally apt install ntp -y cf-agent -I -D installation # Adjust LTSP related config and tools. # # Get related IP addresses. SERVER_IP="$(hostname -I | cut -d' ' -f1)" GATEWAY_IP="$(host gateway | cut -d' ' -f4)" # Modify LTSP configuration. sed -i 's/10.0.2.2/'"$SERVER_IP"'/g' /etc/ltsp/ltsp.conf # Copy LTSP tools and adjust these; they will take precedence due to root's $PATH. cp /sbin/debian-edu-ltsp-initrd /usr/local/sbin/ cp /sbin/debian-edu-ltsp-install /usr/local/sbin/ cp /sbin/debian-edu-pxeinstall /usr/local/sbin/ sed -i 's/10.0.2.2/'"$SERVER_IP"'/g' /usr/local/sbin/debian-edu-ltsp-initrd sed -i 's/10.0.2.2/'"$SERVER_IP"'/g' /usr/local/sbin/debian-edu-ltsp-install sed -i 's/10.0.0.1/'"$GATEWAY_IP"'/g' /usr/local/sbin/debian-edu-ltsp-install sed -i 's/10.0.2.2/'"$SERVER_IP"'/g' /usr/local/sbin/debian-edu-pxeinstall # Adjust LTSP initrd, image and PXE setup using the modified tools; takes some time. debian-edu-ltsp-initrd debian-edu-ltsp-install --diskless_workstation yes debian-edu-pxeinstall # Delete first 192.168 related entry (written by subnet-change script) if the # new subnet belongs to 192.168.0.0/16 to avoid LTSP client pitfall. if [ "$(grep -c 192.168 /etc/squid/squid.conf)" = "5" ] ; then sed -i '0,/src 192.168/{//d}' /etc/squid/squid.conf service squid restart fi echo "" echo "Done. No need to reboot the system." echo ""
signature.asc
Description: PGP signature