I have a nice script for kdm auto login.  Each
machine sees it's own list with it's own set of users.
It is copied below.
By the way can gdm do this.  For me it is a big deal 
since not everyone can log in as parton
so I made partron_station1 etc or kids_station1 etc.
This way I have multiple logins per station and autologin as well.

----kdmrc----
[X-*-Greeter]
AntiAliasing=true
ColorScheme=
EchoMode=OneStar
FaceSource=AdminOnly
FailFont=Sans,10,-1,5,75,0,0,0,0,0
FocusPasswd=false
GUIStyle=Windows
GreetFont=Sans,12,-1,5,75,0,0,0,0,0
GreetString=Welcome the Wendell Library
GreeterPos=50,50
HiddenUsers=adm,alias,amanda,apache,bin,bind,daemon,exim,falken,ftp,games,gdm,gopher,halt,httpd,ident,ingres,kmem,lp,mail,mailnull,man,mta,mysql,named,news,nfsnobody,nobody,nscd,ntp,operator,pcap,pop,postfix,postgres,qmaild,qmaill,qmailp,qmailq,qmailr,qmails,radvd,reboot,rpc,rpcuser,rpm,sendmail,shutdown,squid,sympa,sync,tty,uucp,xfs,xten,dor,patron_station1,patron_station2
Language=en_US
LogoArea=Logo
LogoPixmap=/opt/ltsp/templates/k12linux/k12ltsp.jpg
MaxShowUID=65000
MinShowUID=500
NumLock=On
PreselectUser=None
SelectedUsers=patron_station2,patron_station1,dor
ShowUsers=Selected
SortUsers=true
StdFont=Sans,10,-1,5,50,0,0,0,0,0
Theme=/usr/share/apps/kdm/themes/Tux-Mania
UseBackground=true
UserCompletion=false
UserList=true

[X-:*-Core]
AllowShutdown=All
NoPassEnable=true
NoPassUsers=patron_station2,patron_station1

[X-:*-Greeter]
AllowClose=false
DefaultUser=admin
FocusPasswd=false
LoginMode=DefaultLocal
PreselectUser=None

[X-ws002:0-Core]
AutoLoginEnable=true
AutoLoginUser=patron_station1
NoPassEnable=true
NoPassUsers=patron_station1

[X-ws003:0-Core]
AutoLoginEnable=true
AutoLoginUser=patron_station2
NoPassEnable=true
NoPassUsers=patron_station2

[X-ws002:0-Greeter]
GreetString=Welcome to the Wendell Library Station One
SelectedUsers=patron_station1
PreselectUser=patron_station1

[X-ws003:0-Greeter]
GreetString=Welcome to the Wendell Library Station Two
SelectedUsers=patron_station2
PreselectUser=patron_station2

[Xdmcp]
Enable=true
Willing=/usr/share/config/kdm/Xwilling
Xaccess=/usr/share/config/kdm/Xaccess

----------------Here is the ltsp.conf
One for each of the stations
[00:D0:B7:9B:12:8A]
###this is the small gateway machine station 2
DISPLAY=ws002.ltsp:0.0
HOSTNAME = ws002.ltsp
SOUND_DAEMON = esd

---------------Here is dhcp
--the line "use-host-decl-names on" is key
default-lease-time            21600;
max-lease-time                21600;
ddns-update-style none;
allow booting;
allow bootp;

option subnet-mask            255.255.255.0;
option broadcast-address      192.168.0.255;
option routers                192.168.0.254;
option domain-name-servers    192.168.0.254;
option domain-name            "ltsp";
option root-path              "192.168.0.254:/opt/ltsp/i386";
option option-128 code 128 = string;
option option-129 code 129 = text;
option option-221 code 221 = text;

shared-network WORKSTATIONS {
  subnet 192.168.0.0 netmask 255.255.255.0 {
     range dynamic-bootp 192.168.0.100 192.168.0.252;
     use-host-decl-names       on;
     option log-servers        192.168.0.254;

     # trick from Peter Rundle <[EMAIL PROTECTED]>
     # newer Macs
     if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     }
     # really old iMacs
     elsif substring (option option-221, 0, 5) = "Apple"
     {
        filename      "yaboot";
        option vendor-class-identifier "AAPLBSDPC";
     }
     # Intel PXE
     elsif substring (option vendor-class-identifier, 0, 9) =
"PXEClient"
     {
        # NOTE: kernels are specified in /tftpboot/lts/pxe/pxelinux.cfg/
        filename      "/lts/pxe/pxelinux.0";
     }
     # default to an i386 BOOTP image
     else
     {
        filename      "/lts/vmlinuz.ltsp";
     }

     if substring (option vendor-class-identifier, 20, 3) = "ppc" {
        option root-path "192.168.0.254:/opt/ltsp/ppc";
     } else {
        option root-path "192.168.0.254:/opt/ltsp/i386";
     }
  }
}

# example configurations for specifying specific kernels to specific
clients
group   {
    use-host-decl-names       on;
    option log-servers        192.168.0.254;

    host ws099 {
        #Laptop for tech support
        hardware ethernet     00:0D:9D:89:BD:9D;
        fixed-address         192.168.0.099;
        filename              "/lts/pxe/pxelinux.0";
#        option option-128 e4:45:74:68:00:00;
#        option option-129 "NIC=3c509";
   }
    host ws002 {
        hardware ethernet     00:D0:B7:9B:12:8A;
        fixed-address         192.168.0.2;
        filename              "/lts/pxe/pxelinux.0";
#        option option-128 e4:45:74:68:00:00;
#        option option-129 "NIC=ne";
    }
    host ws003 {
        hardware ethernet     00:07:E9:EC:CD:12;
        fixed-address         192.168.0.3;
        # kernels are specified in /tftpboot/lts/boot/pxe/pxelinux.cfg/
        filename              "/lts/pxe/pxelinux.0";
    }
    host ws004 {
        hardware ethernet     00:07:E9:EC:CD:13;
        fixed-address         192.168.0.4;
        # kernels are specified in /tftpboot/lts/boot/pxe/pxelinux.cfg/
        filename              "/lts/pxe/pxelinux.0";
    }
}




_____________________________________________________________________
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

Reply via email to