X Window System CentOS

Install X-server

There are several variants of X servers. First let us look at installing MATE Desktop and then installing Server with GUI

Install MATE Desktop on a virtual CentOS 7

Before installing X it is better to connect to the virtual machine over ssh, become the superuser and do it from there

yum update
yum install -y redhat-lsb-core net-tools epel-release kernel-headers kernel-devel
yum groupinstall -y "Development Tools"

And then the installation itself

yum groupinstall -y "X Window System" "MATE Desktop"

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.

systemctl isolate graphical.target

After the previous command X should start in the Virtualbox window

Installation Server with GUI

First of all run yum grouplist to see the list of available variants.

yum grouplist

Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager There is no installed groups file. Maybe run: yum groups mark convert (see man yum) Determining fastest mirrors * base: centos.mirror.far.fi * epel: mirror.cspacehostings.com * extras: centos.mirror.far.fi * updates: centos.mirror.far.fi Available Environment Groups: Minimal Install Compute Node Infrastructure Server File and Print Server Cinnamon Desktop MATE Desktop Basic Web Server Virtualization Host Server with GUI GNOME Desktop KDE Plasma Workspaces Development and Creative Workstation Available Groups: Cinnamon Compatibility Libraries Console Internet Tools Development Tools Educational Software Electronic Lab Fedora Packager General Purpose Desktop Graphical Administration Tools Haskell LXQt Desktop Legacy UNIX Compatibility MATE Milkymist Scientific Support Security Tools Smart Card Support System Administration Tools System Management TurboGears application framework Xfce Done

sudo yum groupinstall "Server with GUI"

Check X type

Restart the X server (after switching to the console with Ctrl + Alt + F1) with the command

rpm -qa |grep xorg-x11-server-Xorg

Restart X-server

To restart X-server switch to terminal with Ctrl + Atl + F1 and run

/etc/init.d/gdm restart

or

/etc/init.d/gdm3 restart

or

/etc/init.d/kdm restart

Stop X-server

To Stop/Start X-server switch to terminal with Ctrl + Atl + F1 and run

/etc/init.d/gdm stop

or

/etc/init.d/gdm3 stop

or

/etc/init.d/kdm stop

If you do not know what type of X-server you have try:

/etc/init.d/gdm stop || /etc/init.d/gdm3 stop || /etc/init.d/kdm stop || /etc/init.d/xdm stop || /etc/init.d/lightdm stop

If it does not help try: here

or here.

Start X-server

/etc/init.d/gdm start

or

/etc/init.d/gdm3 start

or

/etc/init.d/kdm start

Works if your X-server is gdm, gdm3 or kdm if you have something else - type its name instead.

History

X Window System is a windowing system that provides the standard tools and protocols for building a graphical user interface. It is used in UNIX-like operating systems.

X Window System provides the basic functions of a graphical environment: drawing and moving windows on the screen and interaction with input devices such as the mouse and the keyboard.

X Window System does not define the details of the user interface; that is the job of window managers, of which many have been written. For this reason the look of programs in an X Window System environment can differ greatly depending on the capabilities and settings of a particular window manager.

X Window System provides network transparency: graphical applications can run on another machine on the network while their interface is transmitted over the network and displayed on the local machine of the user.

In the context of X Window System the terms client and server have a meaning unusual for many users: the server is the local display of the user (the display server), and the client is the program that uses this display (it may run on a remote computer).

X Window System was developed at the Massachusetts Institute of Technology (MIT) in 1984.

As of February 2016 the protocol version is X11R7.7, which appeared in June 2012.

The X project is led by the X.Org Foundation. The reference implementation of the system is freely available under the MIT licence and similar licences.

X Window System is often called X11 or simply X (in Russian colloquial speech, «iksy»)

Article author: Andrei Olegovich