http://www./blog/archives/2016/12/103.html 第一步是給root用戶設(shè)置個密碼. 我沒試過空密碼行不行,不折騰.sudo passwd root 第二步是在配置文件里設(shè)置自啟動: 1,編輯/etc/lightdm/lightdm.conf: sudo gedit /etc/lightdm/lightdm.conf
[Seat:*] autologin-guest=false autologin-user=root autologin-user-timeout=0 greeter-session=lightdm-gtk-greeter 2,編輯/root/.profile文件,增加tty -s &&: sudo gedit /root/.profile
# ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi tty -s && mesg n || true 然后重啟就行了. 關(guān)閉guest用戶
在最后增加 |
|