Link to home
Start Free TrialLog in
Avatar of g0all
g0allFlag for Saint Pierre and Miquelon

asked on

Unable to start X

Platform: CentOS 6.2

[root@host~]# startx&
[1] 12589

Open in new window

[root@host~]# xauth:  creating new authority file /root/.serverauth.12589


X.Org X Server 1.10.4
Release Date: 2011-08-19
X Protocol Version 11, Revision 0
Build Operating System: c6b18n2 2.6.32-71.el6.x86_64
Current Operating System: Linux oops.nethostcomputer.com 2.6.32-71.29.1.el6.i686 #1 SMP Mon Jun 27 18:07:00 BST 2011 i686
Kernel command line:  console=hvc0 xencons=tty0 root=/dev/xvda1 ro
Build Date: 17 December 2011  04:48:52PM
Build ID: xorg-x11-server 1.10.4-6.el6_2.1
Current version of pixman: 0.18.4
        Before reporting problems, check https://www.redhat.com/apps/support/
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Feb  8 15:16:00 2012
(==) Using default built-in configuration (21 lines)
(EE) open /dev/fb0: No such device
(EE) No devices detected.

Fatal server error:
no screens found

Please consult the Red Hat, Inc. support
         at https://www.redhat.com/apps/support/
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Open in new window


Thanks
Avatar of Chris Sandrini
Chris Sandrini
Flag of Switzerland image

Is it on a virtual machine? (KVM? ) Looks like there is no screen specified.
Avatar of g0all

ASKER

It's not KVM, it's a VPS but I'm not sure what virtualisation type is...
Avatar of Kerem ERSOY
Kerem ERSOY

Hi,

It is clear that your VPS solution does not allow you to have a video buffer. You can either install an X manager (such as Xming an Open/Source project) on your workstation and run X through LAN if you have a fast connection or you can install/activate VNC service and connect to your server over it.

Cheers,
K.
Avatar of g0all

ASKER

Hi KeremE,

But should X be started before using Xming or VNC?

Thanks!
goall:

- Start Xming before you start any x11 application
- With VNC you don't need to start the xserver as vnc brings its own.
> But should X be started before using Xming or VNC?

XMing is an X server and it will run over your remote workstation and yes it should be started and your display must be set.

- Start XMing over your Personal Workstation
- Allow connection from your CentOS server through XMing Setup.
- SSH to your CentOS BOX.
- Set Display environment variable with these commands:

# export DISPLAY=your.ws.addr:0.0
# gnome-session &

Open in new window



VNC must be started earlier in your CentOS 6.2 in fact if you enable it  will start automatically during startup or you can use service command to start it.

service vncserver start

Open in new window



Cheers,
K.
BTW if you have never started VNC bebore I suggest you to configure it:
- Edit your /etc/sysconfig/vncservers and uncomment last 2 lines
- replace myusername with your username who will connect to your system.
- If you're using the default display allow TCP port 5902 through your firewall
- start vncserver from the command line so that it ill create ~/.vnc directory structure
- enter a password to use in vnc connection
- use killall vncserver and remove /tmp/.X11-unix/X0
- edit ~/.vnc/xstartup. uncomment "exec /etc/X11/xinit/xinitrc" save and exit
- start vncserver service

Cheers,
K.
Avatar of g0all

ASKER

Hi,

Managed to login and see the display. But the problem is I see a black display (with that blue CentOS wallpaper) but no buttons no desktop no nothing.

When I try to start the gnome-session, I receive a error:

Warning: Cannot open display
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also make sure that /etc/sysconfig/xservers line has aline like that:

VNCSERVERS="2:myusername"

Open in new window


Don't forget to replace myusername with the username you want to logon to X.
Avatar of g0all

ASKER

Hi,

/etc/sysconfig/vncservers

VNCSERVERS="1:pwg3n2"
VNCSERVERARGS[2]="-geometry 800x600"

Open in new window


Firewall is down (flushed)

My /etc/hosts example is:

127.0.0.1               localhost.localdomain localhost
90.1.1.1                     site.example.com

Open in new window


Unfortunately I see only the wallpaper...
Check your logs to see if there are any errors.
Try command gdm or kdm