This is a short post on how to install the necessary components to get X Server running on a bare bone RedHat 6 Enterprise Server (CentOS6) installation.
The following commands should be run from a console window as the root user.
Install barebone X support
# yum groupinstall "X Window System"
Install X and the Gnome Environment
# yum groupinstall "X Window System" "GNOME Desktop Environment"
Install X and the KDE Window System
# yum groupinstall "X Window System" KDE
Install the XFCE desktop environment
# yum groupinstall "X Window System" XFCE
When you have chosen your desired desktop environment, make the final change to make the Gnome Display Manager show you a logon screen.
Edit the file /etc/inittab and change the line
from
id:3:initdefault:
to
id:5:initdefault:
You will be greeted with a graphical logon screen the next time you have rebooted your server.
Tags: CentOS, KDE, rhel6, X, XFCE
Posted by Hans-Henry Jakobsen
A easy way to run remote X programs (from another host) on your local linux installation is to connect to it via ssh using the -Y switch.
For instance if you would like to run up2date in graphical mode on a remote machine but the server doesn’t have X installed. Then this is a great way of doing it.
On your host
ssh -Y remote_machine_name.com
When you have successfully connected to the remote host you start the up2date command.
up2date
Soon after you will get the up2date windows on your local linux machine.
Your sshd server should have enabled the X11Forwarding directive. This is enabled in your local local machines ssh config /etc/ssh/sshd_config file
X11Forwarding yes
The command you run can be anything else, for instance xterm.
Posted by Hans-Henry Jakobsen