CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  How to install X on a server with no GUI

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  lynxus
      lynxus
How to install X on a server with no GUI
#1
Newbie
Joined: 2009/10/17
From
Posts: 1
Hi Guys,

I have a centos box, How do I go about installing a GUI(Say Gnome ) on it so I can rdp to it?

Im getting tired trying to manage virtual box through my ssh connection and other things.


Thanks
Graham
Posted on: 2009/10/17 10:25
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: How to install X on a server with no GUI
#2
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Welcome to the CentOS fora.

# yum grouplist | grep -Ei "gnome|kde"
GNOME Desktop Environment
GNOME Software Development
KDE (K Desktop Environment)
KDE Software Development
XFCE-4.4

So:

# yum groupinstall "GNOME Desktop Environment"

or

# yum groupinstall "KDE (K Desktop Environment)"

or

# yum groupinstall "XFCE-4.4"

Need the [extras] repo installed for XFCE. Please read about Installing Software, and Repositories, and note the warnings and advice about installing and configuring the yum priorities plugin. Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores.

You may also want to read about VNC or NX.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/10/17 12:40
Create PDF from Post Print
Top
  •  frinks
      frinks
Re: How to install X on a server with no GUI
#3
Newbie
Joined: 2009/10/19
From
Posts: 5
Done this, and no erros what so ever.

So i run startx and received the fallowing error messages:

xauth: creating new authority file /root/.serverauth.2178
xinit: No such file or directory (errno 2): no server "X" in PATH

Use the --option, or make sure that /usr/bin is in your path and that "X" is a program or a link to the right type of server
for your display. Possible server names include:

Xorg X.org displays

xinit: Server error

Im new at this so i'm sorry if something simple i have to do and didnt do yet..
Posted on: 2009/10/19 18:26
Create PDF from Post Print
Top
  •  michaelnel
      michaelnel
Re: How to install X on a server with no GUI
#4
Professional Board Member
Joined: 2006/5/29
From San Francisco, CA
Posts: 1226
Do:
# yum groupinstall "X Window System"
Posted on: 2009/10/19 18:34
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: How to install X on a server with no GUI
#5
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/10/19 18:39
Create PDF from Post Print
Top
  •  markkuk
      markkuk
Re: How to install X on a server with no GUI
#6
Professional Board Member
Joined: 2007/9/7
From Finland
Posts: 314
Quote:

frinks wrote:
So i run startx and received the fallowing error messages:

xauth: creating new authority file /root/.serverauth.2178
xinit: No such file or directory (errno 2): no server "X" in PATH

If you are using a virtual machine through a ssh connection as you wrote in your initial message, then there's no way startx could work. Set up a NX or VNC remote desktop connection instead.
Posted on: 2009/10/19 22:12
Create PDF from Post Print
Top
  •  frinks
      frinks
Re: How to install X on a server with no GUI
#7
Newbie
Joined: 2009/10/19
From
Posts: 5
Tanks for the replys.

Quote:

If you are using a virtual machine through a ssh connection as you wrote in your initial message, then there's no way startx could work. Set up a NX or VNC remote desktop connection instead.


I installed the CentOS 5.2 on a physical machine, not in a VM.
I'm trying several tests, like install X from a server without it, update kernel, etc.

Till now i'm having some newbie problems that i didn't had with other distros.

I installed via yum (system-config-display).

When i try to use it, my screen turned off. I thought, I could choose some things with that tool, like type of monitor, or depth.
Sure i'm doing something wrong. Maybe I have to insert some arguments when I try to run the tool in text mode, but i didn't have much time to do it.


Posted on: 2009/10/20 0:03
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: How to install X on a server with no GUI
#8
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Quote:

frinks wrote:
...
I installed the CentOS 5.2 on a physical machine, not in a VM.
I'm trying several tests, like install X from a server without it, update kernel, etc.


CentOS 5.2 has been obsolete for quite some time now. Always install the latest version available to avoid problems. Try doing an full GUI install with 5.4.
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=22004&forum=37&post_id=88578#forumpost88578
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/10/20 12:42
Create PDF from Post Print
Top
  •  frinks
      frinks
Re: How to install X on a server with no GUI
#9
Newbie
Joined: 2009/10/19
From
Posts: 5
Well, i may try to install the new version of CentOS (5.4).

But i think the version 5.2 still have to do what i'm trying to do.
Or am I wrong?
Posted on: 2009/10/20 13:19
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: How to install X on a server with no GUI
#10
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Not totally sure I understand your question, but it is possible that 5.2 does not support your hardware and 5.4 will. If you still have problems with the latest version, then we can get into how to debug them.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/10/20 14:39
Create PDF from Post Print
Top
  •  julioipn
      julioipn
Re: How to install X on a server with no GUI
#11
Newbie
Joined: 2009/11/8
From
Posts: 1
I'm totally new to centos, however I´ve used ubuntu and fedora, I had the same problem, I installed elastix 1.5 wich comes with centos 5.2, i didn't have gui, i did what is indicated in earlier posts :

# yum groupinstall "GNOME Desktop Environment"

and then:

# yum groupinstall "X Window System"

after this I run "startx" and that´s all, I have a gnome desktop environment
Posted on: 2009/11/8 2:11
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com