GDM auto-login with specific users to specific terminals
From K12LTSP Wiki
The same trick but with Kiosk mode added|
Found on the LTSP mailing list: <verbatim> From: Mike OConnor <moconnor@sy...> Solution: GDM Auto Remote Login 2002-11-20 18:19
Hi All
After a few hours of reading the GDM source code, I've worked out how to do remote terminal logins.
After playing with the %h command, ie 'AutomaticLogin=term%h' I dedicated that it was not going to work, it kept added :0 to the end of the hostname. Also it would be nice to adjust my script below to only do autologin for a listed set of terminals.
Autologin is great for internet cafe and sites where users are not members of your organization.
I'm using autologin for a internet cafe using win4lin.
--- gdm-conf --- daemon
AutomaticLoginEnable=true AutomaticLogin=/usr/bin/autologin.sh|| TimedLoginEnable=true TimedLogin=/usr/bin/autologin.sh|| TimedLoginDelay=30
security AllowRemoteAutoLogin=true -- end ---
--- autologin.sh ---
#====/bin/bash
====
HOSTNAME=`echo ${DISPLAY} || cut -f1 -d: || awk -F . {' print $1 '}`
echo $HOSTNAME
exit 0
--- end ---
Cheers -- Mike OConnor Service to Youth Council Inc moconnor@sy...
</verbatim>
