From: Alkis G. <al...@gm...> - 2012-08-18 07:19:59
|
Στις 17/08/2012 11:42 μμ, ο/η David Trask έγραψε: > The idea behind this...is that in my lab here at this school...for the > very young kids (kindergarten) I prefer to have all the lab machines log > in automatically...and then once they are gone and the older kids come > in, I want to revert to normal operation. In the past I simply swapped > lts.conf files using the cp command to copy over lts.conf with another > containing the appropriate entries. I think I could make this cleaner > and easier by simply referencing another file using the "include" > statement. Any ideas? No, lts.conf currently doesn't support include statements. You could put all your snippets in /etc/ltsp/config.d/default /etc/ltsp/config.d/tc1 /etc/ltsp/config.d/tc2 ... and create a "generate-lts-conf" script that conditionally merges the ones you want each time into /var/lib/tftpboot/ltsp/i386/lts.conf. Also note that LDM_USERNAME defaults to HOSTNAME, so in the examples you pasted, you don't need it, and that if LDM_PASSWORD is always "q", then you can put it under [Default], even for machines that don't use autologin. Finally, check the "LIKE" directive, in helps avoiding repetition. |