TTY 자동로그인

Ubuntu Korea Community Wiki
imported>Seony님의 2014년 4월 25일 (금) 09:09 판 (새 문서: TTY에서 자동 로그인 활성화 하기 <pre> <syntaxhighlight lang="bash"> cat <<EOF >/etc/init/openvt.conf start on started tty1 stop on runlevel [!2345] respawn pre-start sc...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
둘러보기로 이동 검색으로 이동

TTY에서 자동 로그인 활성화 하기

<syntaxhighlight lang="bash">
cat <<EOF >/etc/init/openvt.conf
start on started tty1
stop on runlevel [!2345]
 
respawn
pre-start script
    if status tty1 | grep -q start/; then
        stop tty1
    fi  
end script
exec /bin/openvt -e -c 1 -f -- /bin/login -f USERNAME
EOF
start openvt
</syntaxhighlight>