看到autorun的帖子,顺便贡献一个autologin的方法。
I'm the only user of my linux box. I want to have autologin w/o gdm/kdm or
any other unnecessary stuff. Here is the solution:
- Change boot level to 3:
edit /etc/inittab: id:3:initdefault:
- Autologin w/o X:
edit /etc/event.d/tty1: change the last line to
exec /sbin/mingetty --autologin your-user-name tty1
- Auto start X:
edit your .bash_profile and add a line at the end
[ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ] && startx