AMP AMP

Installation of GUI Gnome 3 Using Pendrive

Installation of GUI Gnome 3 Using Pendrive on CentOS 7

There are two methods to install GUI the top of minimal installation: First method is installing Gnome 3 GUI using the default base repository, which installs packages from Internet. Second method is installing using pen drive this will avoid downloading packages from internet. This tutorial takes you to through the process.

Install Gnome

If you going to use the first method, use the following command,

[root@linuxhelp ~]# yum groupinstall " GNOME Desktop" 

If you going to use the second method, use the following steps.

Step 1:

Connect the pen drive which has CentOS 7 OS files to the system.

Step 2:

Create a directory for the pen drive mount point under the /mnt directory.

[root@linuxhelp ~]# mkdir /mnt/pendrive

Step 3:

Check the connected devices using the following command.

[root@linuxhelp ~]#fdisk &ndash l

connected_device

Now edit the /etc/fstab file.

Open the fstab file using the following command.

[root@linuxhelp ~]# vi /etc/fstab

Go to the last line in the file and add the following.

/dev/sdb1        /mnt/pendrive        vfat        defaults        0 0

The device name /dev/sdb1 can vary it depends on the system.

Step 4:

Now you can mount the pendrive using the following command,

[root@linuxhelp ~]# mount /dev/sdb1 /mnt/pendrive

Step 5:

Now you need to create a repository file under the /etc/yum.repos.d/ directory.

[root@linuxhelp ~]# vi /etc/yum.repos.d/CentOS-7.repo

Add the following lines to your file and then save and exit.

[centos7]
name=centos7
baseurl=file:///mnt/pendrive/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Descriptions of terms

[centos7] &ndash is the name for the new repository section.

Name &ndash this name of the new repository.

Gpgkey &ndash gives you the location of the key.

Enabled &ndash In Enabled repository, value ‘ 1’ indicates that the repository is enabled and ‘ 0’ indicates that the repository is disabled.

baseurl &ndash tells you the current location of the packages.

gpgcheck &ndash checks the signature of the packages, before installing the packages.

Step 6:

Next, you need clear the yum cache and verify the repo list, for this use the following command.

[root@linuxhelp ~]# yum clean all
[root@linuxhelp ~]#yum repolist all
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
&hellip 
&hellip 
extras/7/x86_64              CentOS-7 - Extras                    enabled:    80
extras-source/7              CentOS-7 - Extras Sources            disabled
updates/7/x86_64             CentOS-7 - Updates                   enabled: 1,459
updates-source/7             CentOS-7 - Updates Sources           disabled
repolist: 13,542

The green color in the above output indicates that the local repo is enabled and is available to install packages.

We also see that other repositories are enabled, thus if we try to install a package it will take CentOS Base as the default repository.

Step 7:

Install Gnome 3 GUI

To install the gnome 3 GUI, use the following command,

[root@linuxhelp ~]# yum --disablerepo=* --enablerepo=centos7 groupinstall " GNOME Desktop" 

During installation, you will be prompted for confirming so press Y to continue.

Step 8:

To make the system boot gnome desktop automatically at the system start up, use the following command.

[root@linuxhelp ~]# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

Now the Gnome 3 GUI is successfully installed in centos7 server.

Now give restart the system and it boot into gnome desktop, after logging in you need to unmount the pendrive.

[root@linuxhelp ~]#umount /mnt/pendrive
FAQ
Q
How to operate as root in GUI GNOME?
A
For the root Press AltF2 to run a command and then enter gksu nautilus (using gksu is the recommended way to open GUI's with root permissions).
Q
How to check the version of GUI GNOME?
A
The command is used to check the version
Syntax: " GNOME --version"
Q
Is there any GUI GNOME games available?
A
GNOME Games have the look and feel of the GNOME Core Applications and are released simultaneously with GNOME.
Q
What Software used in GNOME 3?
A
Cinnamon a desktop environment based on GNOME 3.
Q
Where does GNOME store my photos?
A
Depending on your settings, they are stored in the XDG-directories for photos and videos (~/Pictures/Webcam and ~/Video/Webcam)