• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1291
  • Last Modified:

VNC on CentOS, no desktop, just X cursor

I'm trying to run VNC on a CentOS box and can't get the display to work properly.  I've uncommented the two lines /.vnc/xstartup:

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

But looking in the in the log it fails because I don't have a /etc/X11/xinit/xinitrc file.  When I run VNC I get the challenge for the password and then a black screen with the "X" cursor.  

Any idea how to get the real desktop to display?
0
StarDusterII
Asked:
StarDusterII
  • 7
  • 6
1 Solution
 
simoespCommented:
u didn't start a desktop manager on xinitrc u need to start a desktop
0
 
simoespCommented:
File: ~/.xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
# exec ion
# exec jwm
# exec wmaker
# exec startkde
# exec icewm
# exec pekwm
# exec blackbox
# exec /usr/bin/ratpoison
# exec gnome-session
# exec startfluxbox
# exec startxfce4
# exec xfce4-session
exec openbox-session
# exec startlxde
0
 
StarDusterIIAuthor Commented:
I should also say, I'm way new to Linux.  I created the xinitrc file in /etc/X11/xinit/xinitrc and not ~/.xinitrc since I don't know where ~/. is   In any case, the log said exec openbox-session not found.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
simoespCommented:
~/
is user home

/etc/X11/xinit/xinitrc its the default for all users if the other not found

what window manager you're using ?


0
 
StarDusterIIAuthor Commented:
Don't really know... this is on a brand new hosted account and all I have access to is through SSH.  I was hoping to use VNC so I could get at everything through a GUI.  I don't know if it's KDE or Gnome.
0
 
simoespCommented:
try gnome-session instead of openbox-session
0
 
StarDusterIIAuthor Commented:
Nope, says gnone-session not found
0
 
StarDusterIIAuthor Commented:
<gnome>
0
 
simoespCommented:
which ion
which jwm
which wmaker
which startkde
which icewm
which pekwm
which blackbox
which /usr/bin/ratpoison
which gnome-session
which startfluxbox
which startxfce4
which xfce4-session
which openbox-session

send me the output of these comands
0
 
StarDusterIIAuthor Commented:
It's a short list... none return anything.  Done as root from /.  Sounds like gnome or KDE are not installed... could be a problem, huh?
0
 
simoespCommented:
yep

no window manager installed


to install gnome

try

yum groupinstall Desktop

0
 
StarDusterIIAuthor Commented:
Had to do yum groupinstall "GNOME Desktop Environment" but that worked, thanks!
0
 
simoespCommented:
np ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now