Suddenly out of the blue I was able to start the X server but with many warnings on CentOS and then I tried to make sure it was shut down by going into /usr/bin and gdm stop
but there is an error log which states:
[2148293.861] _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
[2148293.861] _XSERVTransMakeAllCOTSServerListeners: server already running
[2148293.861]
Fatal server error:
[2148293.862] Cannot establish any listening sockets - Make sure an X server isn't already running
[2148293.862] (EE)
Please consult the CentOS support
at http://wiki.centos.org/Documentation
for help.
[2148293.862] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[2148293.862] (EE)
[2148293.862] Server terminated with error (1). Closing log file.
With gdm stop
I get:
** (gdm-binary:25390): WARNING **: Couldn't connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or director