Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install Linux graphical

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Centos7 minimizes installation and then installs GNOME graphical interface

Install Desktop component package

Yum-y groupinstall "GNOME Desktop"

Yum-y groupinstall "X Window System"

Yum groupinstall "KDE Desktop" (centos6)

Start desktop startx

Startx

View the default run level

Systemctl get-default

Set the default run level

Systemctl set-default graphical.target

Rm'/ etc/systemd/system/default.target'

Ln-s'/ usr/lib/systemd/system/graphical.target''/ etc/systemd/system/default.target'

Note: you can query the running level of the graphical interface through the / etc/inittab file

[root@local ~] # cat / etc/inittab

# inittab is no longer used when using systemd.## ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.## Ctrl-Alt-Delete is handled by / usr/lib/systemd/system/ctrl-alt-del.target## systemd uses' targets' instead of runlevels. By default, there are two main targets:## multi-user.target: analogous to runlevel operations graphical.target: analogous to runlevel 5 (runlevel 5) # # To view current default target, run:# systemctl get-default## To set a default target, run:# systemctl set-default TARGET.target

(besides)

Test whether the installation is successful

Use the init 5 command to enter the graphical interface, and if successful, you will enter the initial graphical interface.

How to uninstall the graphical interface

Use the group uninstall command yum groupremove + group package name, where the group package name is the one we installed above.

Reference article:

Http://www.linuxidc.com/Linux/2017-03/141348.htm

Http://www.linuxidc.com/Linux/2015-12/126690.htm**

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report