Skip to content

Install Xwindows and Gnome on Centos with Yum

I recently had need to add XWindows to a Centos 4.x install that didn't have X or Gnome. I was doing this under VMware which added slightly to the degree of difficulty. As it turns out, using Yum makes this a very easy process, although you probably end up with some bloated packageware.

CODE:
# yum groupinstall "X Window System" "GNOME Desktop Environment"


Pay close attention to the capitalization -- Yum is picky. "Gnome desktop environment" won't work, for example.
Defined tags for this entry: , , , , ,

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

Yuri on :

*Thanks to your post which I found on my first google query attempt I had it done in no time

Riddla on :

*Yep... simple stuff, but first google post for centos install gnome xwindows... worked like a charm!

thx

loris on :

*Very good Hint.but for me it said "Processing Dependency: perl-XML-Dumper >= 0.4 for package: foomatic
--> Processing Dependency: perl-XML-Parser for package: intltool
--> Processing Dependency: perl-libxml-enno >= 1.02 for package: foomatic
--> Processing Dependency: perl-Parse-Yapp >= 1.04 for package: foomatic
--> Processing Dependency: perl-XML-Parser >= 2.29 for package: foomatic
--> Processing Dependency: perl-XML-Encoding >= 1.01 for package: foomatic
--> Processing Dependency: perl-libxml-perl >= 0.07 for package: foomatic
--> Finished Dependency Resolution
Error: Missing Dependency: perl-XML-Dumper >= 0.4 is needed by package foomatic
Error: Missing Dependency: perl-libxml-enno >= 1.02 is needed by package foomatic
Error: Missing Dependency: perl-libxml-perl >= 0.07 is needed by package foomatic
Error: Missing Dependency: perl-Parse-Yapp >= 1.04 is needed by package foomatic
Error: Missing Dependency: perl-XML-Parser >= 2.29 is needed by package foomatic
Error: Missing Dependency: perl-XML-Encoding >= 1.01 is needed by package foomatic
Error: Missing Dependency: perl-XML-Parser is needed by package intltool
" Thanks

David on :

*In some versions of RHEL/Centos 5.x there is a bug that will a missing dependency error for libgaim.

You can get around this error by adding --exclude nautilus-sendto

to the end of yum command mentioned previously.

pbs on :

*FYI This bug is fixed in Centos 5.3

mike on :

*i installed both fine but when i want to run a program like firefox it says "error no display specified." gnome-session doesnt start saying "can not execute binary file" i ran ps command and bash and ps are the only things running.

David on :

*The simple answer to that is that the $DISPLAY variable is not set, so it doesn't know how to find a valid xwindows display to connect to. Did you run startx?

mike on :

*Hello, i installed both fine but when i want to run a program like firefox it says "error no display specified."

subhas on :

*X windows fails to start

i've removed and reinstalled x windows and i still get the following error !

Could not init font path element unix/:7100, removing from list!
localuser:root being added to access control list
No profile for user 'root' found
SESSION_MANAGER=local/localhost.pwizz.com:/tmp/.ICE-unix/6506
Initializing nautilus-open-terminal extension

** (nm-applet:6619): WARNING **: applet_dbus_manager_start_service(): Could not acquire the NetworkManagerUserSettings service.
Message: 'Connection ":1.20" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file'


** (eggcups:6576): WARNING **: IPP request failed with status 1030

** (eggcups:6576): WARNING **: IPP request failed with status 1030
Unable to open desktop file /usr/share/applications/redhat-email.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-writer.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-impress.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-calc.desktop for panel launcher: No such file or directory
Introspect error: The name edu.duke.linux.yum was not provided by any .service files
Traceback (most recent call last):
File "/usr/bin/puplet", line 467, in ?
main()
File "/usr/bin/puplet", line 464, in main
p.run()
File "/usr/bin/puplet", line 451, in run
self._refreshInfo()
File "/usr/bin/puplet", line 191, in _refreshInfo
if self.updatesObject is not None and \
AttributeError: DBusException instance has no attribute '_dbus_error_name'
SetGrabKeysState - disabled




anybody know what the hell is ?

Qasim Ali Khawaja on :

*Then how to erase the desktop environment?

David on :

*I would try:

yum groupremove "X Window System" "GNOME Desktop Environment"

M.Emre on :

*Nice hint, thanks :)

Rend on :

*Thanks you :) ı am installed

james on :

*After finished installation, I enter startx, it prompts no server "X" found.

Any idea?
Thanks

mihail on :

*After finished installation, I enter startx, it prompts no server "X" found

Ghost on :

*how can i change desktop background :D , or to find the start menu ? there is only gray screen with white terminal and i can run firefox

but how to add start menu and desktop background ?


thanks !

neil on :

*try typing 'gnome-session' in that grey terminal

originalgeek on :

*Thanks.

Joe on :

*thanks for the instructions on getting gnome install. Is there a way to make gnome load by default so I don't have to login and type startx?

thx in advance

JTnet on :

*Try editing /etc/inittab and changing "id:3:initdefault:" to "id:5:initdefault:"

Cheers,

Brian

Mike on :

*Thanks for helping me get gnome installed on my vps. Great job.

Scott Chubb on :

*Five years later and this post is still helping people like me!

Linux n00b on :

*Not helping :(. i already installed gnome, but i can't open it? when i do gnome-session it says WARNING: ** Cannot open display. Any help??

Add Comment

Pavatar, Gravatar, Favatar, MyBlogLog, Pavatar author images supported.
BBCode format allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
Form options