How to take out GNOME from CentOS 7

How to take out GNOME from CentOS 7





centoshero.jpg

Image: Jack Wallen

I not too long ago been given a problem from a reader who mentioned they’d installed GNOME on a single of their facts middle CentOS 7 equipment (so they could get the platform configured to their liking). But they desired to then take out the GUI interface for the sake of stability and to guarantee the OS wasn’t losing precious methods on a now-needless GUI. The default response from quite a few a Linux admin may well be some thing akin to, “Why not just understand the command line for admin applications?” And that is a terrific response. However, some admins are migrating from Home windows and are accustomed to a GUI interface. If a GUI is what they require to help them go to Linux, additional electrical power to them. And this unique administrator knowledge the require to take out the GUI exhibits he is mindful of the penalty that may well accompany obtaining these an interface on a server (may well currently being the operative term).

The reply to the problem of removal is amazingly easy, but only when you know the distinct command to do handle the removal.

The put in

Prior to we get into the command to take out, let’s refresh our memory on how to put in. This is equally as easy. With three simple instructions you can put in GNOME, set it up to start off a graphical login, and reboot. All those instructions are:

sudo yum -y teams put in "GNOME Desktop"
sudo systemctl set-default graphical.goal
sudo reboot

That’s all there is to it. Upon reboot you need to see the graphical login screen awaiting your input.

You could also go the manual route by adding an .xinitrc file in your residence directory (rather of creating the graphical login screen the default, as carried out higher than with the sudo systemctl set-default graphical.goal command). To do this, issue the command:

echo "exec gnome-session" >> ~/.xinitrc

Now when you want to start off GNOME, just issue the command startx.

SEE: Server deployment/migration checklist (Tech Professional Investigate)

The removal

Now we reply the problem: How do you take out GNOME from CentOS 7? Stripping GNOME from your server can be managed with a solitary command:

sudo yum groupremove "GNOME Desktop"

If, on the off-likelihood you also produced an .xinitrc file in your ~/ directory, you may want to take out it with the command rm ~/.xinitrc.

You may well also want to issue the command

sudo yum grouplist

The higher than command will list out all of the teams you have installed on your program (Determine A).

Determine A

Figure A

Pre-GNOME removal grouplist.

SEE: twenty brief recommendations to make Linux networking less difficult (cost-free PDF)

If you have any lingering teams that serve the graphical atmosphere (these as X.org), you can take out those people as well. Just use warning with this, as you could wind up removing some thing critical.

Reboot the server and you need to now be presented with a textual content-dependent login.

And think it or not, that is all there is to removing GNOME from CentOS 7. Welcome back again to your terminal-only CentOS 7 server installation.

Also examine…






Server Install

Proxy Server

Server Install

Leave a Reply

Your email address will not be published.