“Gu3 itu…… p3Cinta DEBIAN……..he6x”

GDM autologin untuk thinstation dan LTSP client

sumber http://iwansetiawan.wordpress.com/2007/11/04/gdm-autologin-untuk-thinstation-dan-ltsp-client/

GDM autologin untuk thinstation dan LTSP client

Contoh-contoh file Mengguna file configurasiku (thinstation Warnet)

edit gdm.conf-custom

# mousepad /etc/X11/gdm/gdm.conf-custom

[daemon]
RemoteGreeter=/usr/lib/gdm/gdmgreeter
AutomaticLoginEnable=true
AutomaticLogin=/usr/bin/autologin.sh|
TimedLoginEnable=true
TimedLogin=/usr/bin/autologin.sh|
TimedLoginDelay=1

[security]
DisallowTCP=false
AllowRemoteAutoLogin=true

[xdmcp]
Enable=true

[greeter]
GraphicalTheme=UbuntuME
SoundOnLogin=true
GraphicalThemedColor=#105408

Buat file autologin.sh

# mousepad /usr/bin/autologin.sh

#!/bin/bash
HOSTNAME=$(echo $DISPLAY | cut -d: -f1)
case “$HOSTNAME” in
“192.168.0.101″) disp=com-1;;
“192.168.0.102″) disp=com-2;;
“192.168.0.103″) disp=com-3;;
“192.168.0.104″) disp=com-4;;
“192.168.0.105″) disp=com-5;;
esac
echo $disp
exit 0

simpan dan chmod agar bisa dieksekusi
# chmod +x /usr/bin/autologin.sh

ip client di buat fix, edit dhcp.conf

# mousepad /etc/dhcp3/dhcpd.conf

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
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.254;
option subnet-mask 255.255.255.0;

if substring( option vendor-class-identifier, 0, 9 ) = “PXEClient” {
filename “/thinstation/pxelinux.0″;
}
else{
filename “thinstation.nbi”;
}

use-host-decl-names on;

host com-1{
hardware ethernet 00:C0:4F:8D:B8:F5;
fixed-address 192.168.0.101;
}

host com-2{
hardware ethernet 00:B0:D0:2D:39:A9;
fixed-address 192.168.0.102;
}

host com-3{
hardware ethernet 00:50:8B:76:38:D1;
fixed-address 192.168.0.103;
}

host com-4{
hardware ethernet 00:50:DA:8D:E8:29;
fixed-address 192.168.0.104;
}

host com-5{
hardware ethernet 00:50:8B:4E:D8:49;
fixed-address 192.168.0.105;

}
range 192.168.0.101 192.168.0.150;
}

restart dhcp server dan gdm

# /etc/init.d/dhcp3-server restart
# /etc/init.d/gdm restart