Startx not working?!

General support questions including new installations
quypham007
Posts: 8
Joined: 2007/04/13 03:48:19

Startx not working?!

Post by quypham007 » 2007/04/13 04:03:41

In Centos 4.x, I always installed with CD #1 and deselected all packages therefore it installs the BARE minimum (this setup HOW TO was on Johnny Hughes web site - bare installs - cleanest possible setup - you choose what you want). I then proceed with yum groupinstall gnome desktop. In CentOS 5 - it is NOW yum groupinstall gnome-desktop! After this completes, I enter STARTX command to run Gnome, but this time in CentOS 5, I get ...

xauth: creating new authority file /root/ .serverauth.2090
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 the right type of server
for your display. Possible server name include:

Xorg X.Org displays

xinit: Server error.


And yes, I am logged in as root at this point...

Just fyi... I am doing this in VMWare Workstation 5.5 (latest), I had to choose Red Hat 4 as the OS -

Not a Linux guru here, but seems like something maybe broken with X config, but need help how to fix, thanks.

arrfab
Site Admin
Posts: 878
Joined: 2005/01/03 21:30:54
Location: /country/belgium
Contact:

Re: Startx not working?!

Post by arrfab » 2007/04/13 06:48:12

Have you at least installed X ? yum groupinstall "X Window System"
This is the same technique that was used for the ServerCD and it's written in the FAQ as well ... : http://www.centos.org/modules/smartfaq/faq.php?faqid=50

blue2000
Posts: 1
Joined: 2007/04/13 08:27:55

Re: Startx not working?!

Post by blue2000 » 2007/04/13 08:49:00

I have similar problem
I have select GNOME Desktop while installation.
After the installation completed, the login is in text mode,
I have to press Alt-F7 to switch to XWindows (Gnome?) login page
And all works fine.
After I restart the computer, I have to press Alt-F7 again

I am testing CentOS 5 on VMWare too.

Thx for your attention

arrfab
Site Admin
Posts: 878
Joined: 2005/01/03 21:30:54
Location: /country/belgium
Contact:

Re: Startx not working?!

Post by arrfab » 2007/04/13 10:28:54

I had the same behaviour one time on the Beta but it disappeared after machine was updated to final (during QA tests) ... so no bug was filled for this ... are you running the final one ?

quypham007
Posts: 8
Joined: 2007/04/13 03:48:19

Re: Startx not working?!

Post by quypham007 » 2007/04/13 12:22:36

of course X is installed, when you install GNOME DESKTOP, it is part of dependency check in YUM isn't it?! it is automatic per YUM method.

quypham007
Posts: 8
Joined: 2007/04/13 03:48:19

Re: Startx not working?!

Post by quypham007 » 2007/04/13 12:24:34

I am on the final release as it says so on the boot up screen - during text mode. Also, I am not doing anything different in terms of installs as I did with CentOS 4.x...

etfong
Posts: 43
Joined: 2007/03/08 18:49:53
Location: US

Re: Startx not working?!

Post by etfong » 2007/04/13 20:41:22

[quote]
blue2000 wrote:
I have similar problem
I have select GNOME Desktop while installation.
After the installation completed, the login is in text mode,
I have to press Alt-F7 to switch to XWindows (Gnome?) login page
And all works fine.
After I restart the computer, I have to press Alt-F7 again

I am testing CentOS 5 on VMWare too.

Thx for your attention[/quote]

Ditto here with VM Wkst 6 Beta. No X after install.

merlot
Posts: 20
Joined: 2006/11/27 13:53:36

Re: Startx not working?!

Post by merlot » 2007/04/13 21:16:57

I tried installing CentOS5 bare metal on a machine that was successfully running CentOS 5 Beta with Gnome, KDE and Xen. Everything on the Beta worked fine. KDE worked fine, and with Xen.

Tried installing from the new 5 CD CenotOS 5 set and the DVD. Results are the same. No desktop.

During boot selected Gnome, KDE with and without Xen. Get through the entire install and on reboot there's no desktop and it displays an error:

Fatal Server Error:

Server is already active for display 0.

Did a system-config-display and could select the monitor type and desired resolution. That didn't correct either.

hughesjr
Site Admin
Posts: 254
Joined: 2004/12/05 01:51:26
Location: Corpus Christi, Texas, USA
Contact:

Re: Startx not working?!

Post by hughesjr » 2007/04/14 00:15:14

First thing is this .... group installing gnome by itself does not work ... you need to group install both X and gnome ...

The command to do that is this:

[code]yum groupinstall "GNOME Desktop Environment" "X Window System"[/code]

hughesjr
Site Admin
Posts: 254
Joined: 2004/12/05 01:51:26
Location: Corpus Christi, Texas, USA
Contact:

Re: Startx not working?!

Post by hughesjr » 2007/04/14 00:18:30

When doing a text install ... the machine boots in [b]runlevel 3[/b] on initial startup. This also happens in RHEL. To switch to [b]runlevel 5[/b] edit the file [b]/etc/inittab[/b] and look for this line:

[code]id:3:initdefault:[/code]

change it to this:

[code]id:5:initdefault:[/code]

Post Reply