« Open WebMail 行事曆進階應用 | 首頁 | 讓 Outlook Express 不再出現壓縮郵件提示訊息 »

2009年01月14日

自動登入 Linux 系統

自動登入 GNOME 桌面

vi /etc/gdm/custom.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=account
TimedLoginEnable=true
TimedLogin=account
TimedLoginDelay=0

參考資料:


自動登入 tty 文字介面

vi /sbin/autologin

#!/bin/sh

exec 0</dev/$1 1>/dev/$1 2>&1
shift
exec $*

vi /etc/event.d/tty1

respawn
#exec /sbin/getty 38400 tty1
exec /sbin/autologin tty1 login -f your_name

or

vi /etc/inittab

#1:2345:respawn:/sbin/mingetty tty1
1:2345:respawn:/sbin/autologin tty1 login -f your_name

參考資料: http://phorum.study-area.org/index.php?topic=52586.0

Posted by Jamyy at 2009年01月14日 10:30