Ubuntu 14.04及以上使用root登录

by LauCyun Apr 5,2016 09:27:53 5,508 views

$ gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

修改50-ubuntu.conf,如下:

[SeatDefaults] 
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true
allow-guest=false

 

ubuntu 14.04开机出现错误“Error found when loading /root/.profile

$ gedit /root/.profile

找到“mesg n”,将其更改为“tty -s && mesg n”

# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
fi
tty -s && mesg n

 

Tags