Γεια σε όλους. Έχω ένα πρόβλημα με τα customized settings των thin clients μου.
Έχω 3 σέρβερς. 1 LDAP και 2 LDAP clients thin client servers. Και οι 2 είχανε 7.10 και εχω κάνει upgrade σε 10.04. Όλα δουλἐβουν μια χαρά (σχετικά) εκτός από τα autologins που είχα σε ορισμένα clients. Όταν γράφω στον thin client
getltscfg -a
σαν root το command στο terminal δεν βγάζει τίποτα. Υπάρχει κάπιος τρόπος να δω τι κάνει το tftp? Τα σχετικά αρχεία είναι συνημμένα.
Ευχαριστώ
Νικόλας
GNU nano 2.2.2 File: /var/lib/tftpboot/ltsp/i386/lts.conf
[default]
SOUND=True
LOCALDEV=True
NBD_SWAP=True
LDM_DIRECTX = True
SCREEN_02 = shell
[00:19:db:86:7b:11]
X_MODE_0=1024x768
[00:19:db:88:a1:e0]
PRINTER_0_NAME="USBHP"
PRINTER_0_DEVICE=/dev/usblp0
PRINTER_0_TYPE=U
[00:19:DB:86:7A:9F]
PRINTER_0_NAME="USBHP5440"
PRINTER_0_DEVICE=/dev/usblp0
PRINTER_0_TYPE=U
[00:19:DB:88:A1:E1]
LDM_AUTOLOGIN = True
LDM_USERNAME = registration
LDM_PASSWORD = password
[00:19:db:86:7a:ba]
LDM_AUTOLOGIN = True
LDM_USERNAME = station1
LDM_PASSWORD = password
[00:19:db:88:a1:a1]
LDM_AUTOLOGIN = True
LDM_USERNAME = station2
LDM_PASSWORD = password
[00:19:db:86:7b:37]
LDM_AUTOLOGIN = True
LDM_USERNAME = station4
LDM_PASSWORD = password
[00:19:db:86:7b:e5]
LDM_AUTOLOGIN = True
LDM_USERNAME = station5
LDM_PASSWORD = password
GNU nano 2.2.2 File: /etc/ltsp/dhcpd.conf
#
# Default LTSP dhcpd.conf config file.
#
authoritative;
default-lease-time 1209600;
max-lease-time 31557600;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.250;
host debesa-printer
{
hardware ethernet 00:19:db:86:7b:e5;
fixed-address 192.168.0.153;
}
option domain-name "example.com";
option domain-name-servers 192.168.0.1;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
# next-server 192.168.0.254;
# get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path "/opt/ltsp/i386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "/ltsp/i386/pxelinux.0";
} else {
filename "/ltsp/i386/nbi.img";
}
}
GNU nano 2.2.2 File: /etc/inetd.conf
# /etc/inetd.conf: see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard stream tcp nowait root internal
#discard dgram udp wait root internal
#daytime stream tcp nowait root internal
#time stream tcp nowait root internal
#:STANDARD: These are standard services.
#:BSD: Shell, login, exec and talk are BSD protocols.
#:MAIL: Mail, news and uucp services.
#:INFO: Info services
#:BOOT: TFTP service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#<off># tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tf$
#:RPC: RPC based services
#:HAM-RADIO: amateur-radio services
#:OTHER: Other services
#<off># netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
#<off># sane-port stream tcp nowait saned:saned /usr/sbin/saned saned
9571 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/ldminfod
9572 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/nbdswapd
2000 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/nbdrootd /opt/ltsp/images/i386.img
Γεια σου Νικόλα, ωραίος ο συνδυασμός LDAP/LTSP, ίσως χρειαστούμε τη βοήθειά σου μελλοντικά! ;)
Εφόσον οι clients μπουτάρουν αλλά δεν κατεβάζουν το lts.conf, φταίνε οι ρυθμίσεις του dhcp ή του tftp.
Για το tftp, έγραψα τις προάλλες μια αναλυτική σελίδα για troubleshooting στο https://help.ubuntu.com/community/UbuntuLTSP/Troubleshooting/TFTP
Θα δεις μερικές διαφορές από το τρέχον setup σου, επειδή έχεις μερικές παλιές ρυθμίσεις λόγω αναβαθμίσεων. Άλλαξέ τες όπως θα δεις στη σελίδα για να έχεις τις συνηθισμένες ρυθμίσεις της 10.04 (π.χ. το /etc/default/tftpd-hpa).
Μόλις επαληθεύσεις ότι οι ρυθμίσεις του tftp είναι ΟΚ, αν το πρόβλημα παραμένει, ανέβασε και το /etc/default/tftpd-hpa σου, και στη συνέχεια κάνε login σε έναν thin client, τρέξε ένα gnome-terminal, και εκεί μέσα τρέξε
ltsp-localapps xterm
Θα ανοίξει ένα τοπικό xterm. Από αυτό, τρέξε:
getltscfg -a
cat /etc/lts.conf
και πόσταρέ τα κι αυτά εδώ.
ΟΚ, όταν πάω στον thin client και βάλω
getltscfg -a
δεν βγάζει τίποτα.
cat /etc/lts.conf
βγάζει το conf file που είναι μέσα στο /opt/ltsp/i386/lts.conf και όχι το file που είναι στο /var/lib/tftpboot/ltsp/i386/lts.conf
Το tftp file:
nicolas@edubuntuS1:~$ cat /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
#TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
Όταν ακολουθήσω αυτό https://help.ubuntu.com/community/UbuntuLTSP/Troubleshooting/TFTP τα thin clients δεν κανουν boot. Όταν κάνω comment out την 3η γραμμή και προσθέσω την 2η όλα είναι μια χαρά
nicolas@edubuntuS1:~$ ls -l /var/lib/tftpboot/ltsp/i386
total 49856
-rw-r--r-- 1 root root 411006 2007-04-15 04:01 abi-2.6.20-15-386
-rw-r--r-- 1 root root 420774 2007-10-14 21:35 abi-2.6.22-14-386
-rw-r--r-- 1 root root 422607 2008-04-10 12:51 abi-2.6.24-16-generic
-rw-r--r-- 1 root root 422900 2009-12-01 17:54 abi-2.6.24-26-generic
-rw-r--r-- 1 root root 508481 2010-03-11 23:56 abi-2.6.27-17-generic
-rw-r--r-- 1 root root 507665 2008-11-04 16:00 abi-2.6.27-7-generic
-rw-r--r-- 1 root root 651618 2010-08-20 14:22 abi-2.6.32-24-generic
-rw-r--r-- 1 root root 115905 2010-08-20 14:22 config-2.6.32-24-generic
lrwxrwxrwx 1 root root 28 2010-09-08 18:22 initrd.img -> initrd.img-2.6.32-24-generic
-rw-r--r-- 1 root root 4435653 2008-02-25 19:14 initrd.img-2.6.22-14-386.bak
-rw-r--r-- 1 root root 4562048 2008-10-16 18:01 initrd.img-2.6.24-16-generic.bak
-rw-r--r-- 1 root root 4566386 2009-12-24 12:30 initrd.img-2.6.24-26-generic.bak
-rw-r--r-- 1 root root 8996871 2010-09-08 16:01 initrd.img-2.6.32-24-generic
lrwxrwxrwx 1 root root 28 2010-05-03 10:19 initrd.img.old -> initrd.img-2.6.24-26-generic
-rw-r--r-- 1 root root 376 2008-08-04 15:15 lts_back_now.conf
-rw-r--r-- 1 root root 1635 2010-09-08 18:37 lts.conf
lrwxrwxrwx 1 root root 25 2010-09-08 18:22 nbi.img -> nbi.img-2.6.32-24-generic
-r--r--r-- 1 root root 6129893 2008-02-25 19:14 nbi.img-2.6.22-14-386.bak
-r--r--r-- 1 root root 12973560 2010-09-08 16:00 nbi.img-2.6.32-24-generic
lrwxrwxrwx 1 root root 25 2010-05-03 10:19 nbi.img.old -> nbi.img-2.6.24-26-generic
-rw-r--r-- 1 root root 14776 2010-09-08 16:00 pxelinux.0
drwxr-xr-x 2 root root 4096 2010-08-15 23:41 pxelinux.cfg
-rw-r--r-- 1 root root 1689036 2010-08-20 14:22 System.map-2.6.32-24-generic
-rw-r--r-- 1 root root 1074 2010-03-11 23:58 vmcoreinfo-2.6.27-17-generic
-rw-r--r-- 1 root root 1073 2008-11-04 16:02 vmcoreinfo-2.6.27-7-generic
-rw-r--r-- 1 root root 1196 2010-08-20 14:24 vmcoreinfo-2.6.32-24-generic
lrwxrwxrwx 1 root root 25 2010-09-08 18:22 vmlinuz -> vmlinuz-2.6.32-24-generic
-rw-r--r-- 1 root root 4034976 2010-08-20 14:22 vmlinuz-2.6.32-24-generic
lrwxrwxrwx 1 root root 25 2010-05-03 10:19 vmlinuz.old -> vmlinuz-2.6.24-26-generic
Όσο για το LDAP έχω κάνει ένα setup με ltsp-cluster σε VMs. Δεν έχω guide ακόμη αλλά το network layout είναι εδώ:
http://nroussi.blogspot.com/2010/05/ltsp-cluster-with-ubuntu-1004-lucid.html
Εφόσον χρησιμοποιείς το /srv/tftp για tftp directory, το lts.conf θα πρέπει να μπει στο /srv/tftp/ltsp/i386/lts.conf.
Γι' αυτό δεν το βρίσκουν οι clients.
Όπως γράφω και στο wiki, το πρόβλημα αυτό συναντάται σε upgrades από παλιές εκδόσεις. Αυτό που δεν μπορώ να καταλάβω είναι γιατί δεν σου δούλεψε όταν το άλλαξες σε /var/lib/tftpboot.
Μπορείς να έρθεις από το IRC (βλ. υπογραφή μου) για live troubleshooting;
Μπορώ να μπω στο IRC αλλά έχω κοιτάξει μέσα στο /srv/tftp/ltsp/i386 και έχω διαφορετικό linux image από αυτό που πρέπει
nicolas@edubuntuS1:/srv/tftp/ltsp/i386$ ls -l
total 27888
-rw-r--r-- 1 root root 651618 2010-08-20 14:22 abi-2.6.32-24-generic
-rw-r--r-- 1 root root 115905 2010-08-20 14:22 config-2.6.32-24-generic
lrwxrwxrwx 1 root root 28 2010-09-08 18:22 initrd.img -> initrd.img-2.6.32-24-generic
-rw-r--r-- 1 root root 8996871 2010-09-08 16:01 initrd.img-2.6.32-24-generic
lrwxrwxrwx 1 root root 25 2010-09-08 18:22 nbi.img -> nbi.img-2.6.32-24-generic
-r--r--r-- 1 root root 12973560 2010-09-08 16:00 nbi.img-2.6.32-24-generic
-rw-r--r-- 1 root root 14776 2010-09-08 16:00 pxelinux.0
drwxr-xr-x 2 root root 4096 2010-08-15 23:41 pxelinux.cfg
-rw-r--r-- 1 root root 1689036 2010-08-20 14:22 System.map-2.6.32-24-generic
-rw-r--r-- 1 root root 1196 2010-08-20 14:24 vmcoreinfo-2.6.32-24-generic
lrwxrwxrwx 1 root root 25 2010-09-08 18:22 vmlinuz -> vmlinuz-2.6.32-24-generic
-rw-r--r-- 1 root root 4034976 2010-08-20 14:22 vmlinuz-2.6.32-24-generic
nicolas@edubuntuS1:/srv/tftp/ltsp/i386$ uname -a
Linux edubuntuS1 2.6.32-25-generic-pae #43-Ubuntu SMP Wed Sep 1 11:17:51 UTC 2010 i686 GNU/Linux
Μετά που άλλαξα το /etc/default/tftpd-hpa έκανα απλά sudo restart tftpd-hpa. Θα το αλλάξω ξανά, θα κάνω rebuild το image και θα επανέρθω.
Ένα ltsp-update-kernels λογικά φτάνει, αλλά οκ και το image rebuild κάνει.
Ο kernel του server δεν χρειάζεται να είναι ίδιος με τον εικονικό δίσκο, π.χ. στον server έχεις -pae για να βλέπει πάνω από 4 GB RAM, ενώ συνήθως στους clients δεν χρειάζεται ο -pae...
ΟΚ, άλλαξα το /etc/default/tftpd-hpa σε /var/lib/tftpboot και το lts.conf έρχετε από εκεί. Έπρεπε να κάνω ltsp-update-kernels και ltsp-update-image. Μετά σταμάτησε να δουλεύει ο DHCP server. Τον έκανα restart 2-3 φορές και φαίνετε εντάξει. Το ltsp-update-kernels μου δείχνει ακόμη 2 directories. /var/lib/tftpboot και /srv/tftp
Κανονικά, μπορείς πλέον να σβήσεις τελείως το φάκελο /srv. Αυτός είναι το "νέο πρότυπο" που ακολουθεί το Debian βάσει του FHS (http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard), αλλά στη Lucid αποφασίστηκε να μείνει ο παλιός φάκελος /var/lib/tftpboot, και από αυτή τη "διαφωνία" ξεκίνησαν τα προβλήματα...