• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1277
  • 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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