How to install GNOME as a desktop environment on CentOS 7

environment

[root@CENTOS7 ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@CENTOS7 ~]#

procedure

1. Install GNOME Desktop

Install "GNOME Desktop" with the following command.

yum -y groups install "GNOME Desktop"

Execution result


[root@CENTOS7 ~]# yum -y groups install "GNOME Desktop"
Loaded plugin:fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Determining fastest mirrors
 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
http://download.nus.edu.sg/mirror/centos/7.8.2003/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://download.nus.edu.sg/mirror/centos/7.8.2003/os/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30000 milliseconds')
Try another mirror.
base                                                     | 3.6 kB     00:00
extras                                                   | 2.9 kB     00:00
updates                                                  | 2.9 kB     00:00
(1/4): base/7/x86_64/group_gz                              | 153 kB   00:00
(2/4): extras/7/x86_64/primary_db                          | 206 kB   00:03
(3/4): updates/7/x86_64/primary_db                         | 4.5 MB   00:19
(4/4): base/7/x86_64/primary_db                            | 6.1 MB   00:32
Warning: Group core does not have any packages to install.
Resolving dependencies
-->Performing transaction confirmation.
--->Package ModemManager.x86_64 0:1.6.10-3.el7_Install 6
-->I'm dealing with dependencies: ModemManager-glib(x86-64) = 1.6.10-3.el7_6 packages: ModemManager-1.6.10-3.el7_6.x86_64
-->I'm dealing with dependencies: libqmi-utils package: ModemManager-1.6.10-3.el7_6.x86_64

~ Omitted ~

Has completed!
[root@CENTOS7 ~]#

2. Start X Window

Execute the following command from the CentOS 7 console. (It must be executed directly from the console, not from a remote connection such as Teraterm.)

startx

00.png

The desktop screen will start.

02.png

3. Language selection

Select "Japanese" and click "Next".

03.png

4. Keyboard selection

Make sure the keyboard is set to "Japanese" and click "Next".

04.png

5. Location-based service selection

Turn off location services and click Next.

05.png

6. Connect to your online account

Click "Skip".

06.png

7. Ready

Click "Get Started with CentOS Linux".

07.png

8. Reboot

Restart CentOS 7 from the desktop screen.

01.png

9. Change default.target

Change default.target from "multi-user.target" to "graphical.target".

Check the current "default.target" with the following command.

systemctl get-default

Execution result


[root@CENTOS7 ~]# systemctl get-default
multi-user.target
[root@CENTOS7 ~]#

I was able to confirm that default.target is "multi-user.target".

Check the "default.target" link with the following command.

ls -l /etc/systemd/system/default.target

Execution result


[root@CENTOS7 ~]# ls -l /etc/systemd/system/default.target
lrwxrwxrwx.1 root root 37 October 12 2019/etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target
[root@CENTOS7 ~]#

It was confirmed that the link of "default.target" is "multi-user.target".

Change default.target to "graphical.target" with the following command.

systemctl set-default graphical.target

Execution result


[root@CENTOS7 ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
[root@CENTOS7 ~]#

Check "default.target" with the following command.

systemctl get-default

Execution result


[root@CENTOS7 ~]# systemctl get-default
graphical.target
[root@CENTOS7 ~]#

I was able to confirm that default.target is "graphical.target".

Check the "default.target" link with the following command.

ls -l /etc/systemd/system/default.target

Execution result


[root@CENTOS7 ~]# ls -l /etc/systemd/system/default.target
lrwxrwxrwx.1 root root 40 September 12 22:13 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target
[root@CENTOS7 ~]#

It was confirmed that the link of "default.target" is "graphical.target".

10. Reboot CentOS 7

Reboot CentOS 7.

The GUI desktop environment starts. Click "Can't find your account?"

08.png

11. Log in as root

Log in as the root user.

Enter root as the user name and click Next.

09.png

Enter your password and click Sign In.

10.png

12. Rename the standard folder

The "Do you want to update the name of the standard folder to the current language?" Screen is displayed. Click Rename.

11.png

The desktop screen is displayed. 12.png


that's all

Recommended Posts

How to install GNOME as a desktop environment on CentOS 7
How to install beta php8.0 on CentOS8
How to build a Pytorch environment on Ubuntu
Install MySQL 5.6 on CentOS6 [How to specify the version]
How to deploy Laravel on CentOS 7
How to install ImageMagick on Windows 10
How to install WildFly on Ubuntu 18.04
Steps to install devtoolset-6 on CentOS 7
Install PHP7.4 to build CentOS7 Laravel environment
A memorandum on how to use Eclipse
How to redo a deployment on Heroku
How to install production Metabase on Ubuntu
How to install kafkacat on Amazon Linux2
Let's install Docker on Windows 10 and create a verification environment for CentOS 8!
How to build a Ruby on Rails environment using Docker (for Docker beginners)
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
Command to install nginx / PHP7 / php-fpm on CentOS7
How to install network drivers on standalone Ubuntu
How to install Titan2D (v4.2.0) in virtual environment
How to install NVIDIA driver on Ubuntu 18.04 (Note)
How to install multiple JDKs on Ubuntu 18.04 LTS
[Ruby on Rails] How to install Bootstrap in Rails
Run autossh as a systemd service on CentOS
How to add a virtual disk to Linux (CentOS7) on VirtualBox to free up space
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
Install Vertica 10.0 on CentOS 6.10
Install PostgreSQL 12 on Centos8
How to install Docker
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
How to install MySQL
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
How to install ngrok
How to install Ruby on an EC2 instance on AWS
Memo to build a Servlet environment on AWS EC2
How to create a Java environment in just 3 seconds
How to run the SpringBoot app as a service
How to install the root certificate of Centos7 (Cybertrust)
How to make JavaScript work on a specific page
How to install NVIDIA driver on Ubuntu ssh destination
Let's create a gcloud development environment on a centos8 container
Steps to set up a VNC server on CentOS 8.3
As of April 2018 How to get Java 8 on Mac
[Java] How to execute tasks on a regular basis
[Rails] How to install a decorator using gem draper
[Even beginners can do it! ] How to install Eclipse on Windows 10 (Java environment construction)
How to request a CSV file as JSON with jMeter
Environment construction for OSS-DB Silver # 2_Preparation 1-Create a user account to operate PostgreSQL on CentOS7
How to leave a comment
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
Install OpenFOAM v2006 on CentOS
How to run npm install on all projects in Lerna
Install Jenkins on Docker's CentOS
How to Burning a Install Disk of Windows from Ubuntu