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

How to install the graphical interface in minimized case of Linux

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "how to install the graphical interface in the case of minimization of Linux". In the daily operation, I believe that many people have doubts about how to install the graphical interface in the case of minimization of Linux. The editor consulted all kinds of materials and sorted out a simple and easy-to-use operation method. I hope it will be helpful to answer the doubt of "how to install the graphical interface in the case of minimization of Linux"! Next, please follow the editor to study!

1. CentOS 6.x character interface installation graphical interface method [root@centos6~] # yum-y install xorg* [root@centos6~] # yum-y groupinstall "X Window System" [root@centos6~] # yum-y groupinstall Desktop [root@centos6~] # yum-y groupinstall "Chinese Support" after the installation of the above software package and package group, the graphical desktop is installed We can start the graphical desktop environment [root@centos6 ~] # startx or use init 5 by executing startx. If we want to boot the graphical desktop automatically, we need to change the default startup level in the / etc/inittab file to 5 to [root@centos6 ~] # vim / etc/inittabid:5:initdefault:: WQ II, CentOS 7.x character interface installation graphical interface method 1, configure the yum source You can use the CD image source (the configuration method is the same as centos6.x), or you can use the network source. Here, you can also use the domestic Ali source as an example. Execute the following command to configure successfully. Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo2, install the graphical desktop [root@localhost ~] # yum groupinstall "X Window System"GNOME Desktop" kde-l10n-Chinese3 through yum as a character-only system. When the above three package groups are successfully installed, execute startx to enter the graphical desktop. [root@localhost ~] # startx [root@localhost ~] # systemctl get-default View the default run level multi-user.target [root@localhost ~] # cat / etc/inittab... .. Omit several # multi-user.target: analogous to runlevel 3 runlevel 3: multi-user interface # graphical.target: analogous to runlevel 5 runlevel 5: graphical interface [root@localhost ~] # systemctl set-default graphical.target set default graphical runlevel [root@localhost ~] # systemctl get-default view default runlevel graphical.target [root@localhost ~] # systemctl set-default multi-user .target sets the default character interface run level [root@localhost ~] # systemctl get-default to view the default run level multi-user.target4, Modify permanent hostname No longer use / etc/sysconfig/network there are several ways to modify hostname in centos7: 1 modify hostname configuration file / etc/hostname can vi edit hostname Then execute the bash command immediately permanent effective method 2hostnamectl set-hostname "changed hostname" and then execute the bash command immediately permanent effective method 3 after the execution of the nmtui command will pop-up window and then you can edit the network card and hostname and other information, modify and save the exit, and then execute the bash command will be immediately permanent effective here, the study of "how to install the graphical interface in minimized circumstances" is over I hope I can solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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