Robotics/Software Tech.
Odroid에서 부팅시 root 계정으로 로그인
Hellboy
2015. 6. 16. 23:40
일반적인 경우라면 이렇게 해서는 안되겠지만, 어떤 이유에서 root계정으로 바로 부팅을 해야하는 일이 생겼다.
그 방법을 기록해 둔다.
$ sudo vim /etc/lightdm/lightdm.conf.d/12-autologin.conf
#autologin-user=odroid
autologin-user=root #이걸로 교체해준다.
$ reboot
이렇게하면 일단 root로 로그인이 되지만, x윈도우에서 아래와 같은 에러를 띄울지도 모른다.
Error found when loading /eoot/.profile : stdin: is not a tty
이럴때는 .profile을 수정하면 된다.
$ vim .profile
#mesg n
tty -s && mesg n #이렇게 교체하면 된다.
그러면 일단 에러메세지는 안뜬다.