1) 자동 로그인
rungetty 패키지 설치 후 /etc/inittab 파일에서

1:2345:respawn:/sbin/getty 38400 tty1

를 #로 주석처리한 후

1:2345:respawn:/sbin/rungetty tty1 --autologin 로그인할 아이디

라고 적어넣음.

2) X 자동 시작
  .bash_profile 파일에 아래 내용을 추가

if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then
   while true
   do
      startx --
      sleep 10
   done
fi

X를 종료하고 프롬프트로 떨어지지 않을 땐 Ctrl + C


Posted by 猫한 보스코
,