[Linux] Linux in the automatic logon setting in mate desktop and gnome desktop root

Linux Automatic Login Settings mate desktop and gnome desktop

I used here for the desktop operating system Kylin operating system and server version of the operating system bid

First talk about the successful PC operating system which is mainly a desktop mate, is used lightdm

LightDM, namely: Light Display Manager, is a new, lightweight Linux desktop Desktop Display Manager

LightDM is a cross-desktop display manager, which aims to become the standard X org X server display manager. The reason we write a new display manager, because from the XDM since (XDM usually based on  the source code ) there have been many new display manager. The main difference between these items is a GUI (for example, a different development kit) and performance of the above - - These may be better to use a generic display manager implemented, and allow these differences.

The bid Server operating system and gnome ubuntu is the desktop is used by gdm

GDM is a computer terminology, the full name of The GNOME Display Manager, the GNOME display manager environment, and used to replace the original X Display Manager. Its competitors (X3DM, KDM, WDM) different, of GDM is completely rewritten, it does not contain any XDM code. GDM can run the X server and manage local and remote login (via XDMCP).

If we want to make linux restart, you must understand this difference

Here we look mate desktop configuration allowed to automatically log lightdm

First, its configuration file in /etc/lightdm/lightdm.conf

We need to find # autologin-user = This line

#autologin-user=

Then we will be in front of the # removed, after the equal sign plus root

autologin-user=root

Such lightdm configured, you can enter the root user to automatically restart

 

Here we look at the environment gnome gdm configuration

Its configuration file in /etc/gdm/custom.conf

We enter this profile

vi /etc/gdm/custom.conf

Modify the file

[daemon]
    AutomaticLoginEnable=True  #这里的True的T是大写,有的gnome环境可能是true小写的
    AutomaticLogin=root
    TimedLoginEnable=True
[security]
    AllowRoot=True

Thus, gdm configuration is completed, it will be automatically entered under the root user

Published 201 original articles · won praise 46 · views 90000 +

Guess you like

Origin blog.csdn.net/rong11417/article/details/104671137