Centos 3 is switched by the character graphical interface init init 5

Centos6 and Centos7 switched from a different character interface GUI methods, the following were introduced.

A, Centos6 switching method

yum -y install xorg*
yum -y groupinstall "X Window System"
yum -y groupinstall Desktop
yum -y groupinstall "Chinese Support"

startx start graphical interface

Boot into the graphical interface of the two methods

1. Default into the character interface init 3, enter your user name and password into the graphical interface init 5

2.sed -I 26s / 3/5 / g / etc / ininttab

reboot reboot boot directly into the graphical interface

 

Two, Centos7 switching method

yum groupinstall "X Window System" "GNOME Desktop" kde-l10n-Chinese

  

 startx start graphical interface

After the restart you will find: You must create a regular user at login gnome desktop, or not to log on.

If you want the root user directly into the chart interface, directly modify configuration files

we /etc/gdm/custom.conf

Then [daemon] Add the following:

[daemon]
AutomaticLoginEnable = True
AutomaticLogin # = root user name you want to auto-login  

A command is:

sed -i "3a AutomaticLoginEnable=True \nAutomaticLogin=root" custom.conf

If you want to add to the desktop firefox browser

cp /usr/share/applications/firefox.desktop / root / Desktop

Save and reboot, when the user has logged in as root
----------------
Disclaimer: This article is the original article CSDN bloggers "Linux_Peng", following the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/weixin_43303487/article/details/84069928

Guess you like

Origin www.cnblogs.com/heboxiang/p/11413568.html