Στις 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net