Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-06-2009, 09:41 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 13

Rep: Reputation: 0


I'm trying to setup VNC on my virtual dedicated server. I installed vnc and vnc-server via yum on my Centos machine. I can connect remotely with my vnc client and enter my password, but once I enter my password, I just get a gray screen. I tried modifying /home/myuser/.vnc/xstartup, but to be honest I have no clue what I'm doing.

I figured uncommenting the two lines would do the job, but no luck. Here's what I've got:


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

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Thanks for your help,
Old 04-06-2009, 10:11 PM   #2
Registered: Jun 2008
Posts: 122

Rep: Reputation: 16
getting vnc to work for me was a bit tricky. this will probably be different for you based on what window manager you run, but i use xfce4. here is my xstartup file for you to look at


xrdb /home/administrator/.Xresources
xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startxfce4 &
i do not believe you need to use unset session_manager for kde and gnome. for your purposes, replace startxfce4 with whatever manager you are using... i.e. startkde

it might be possible to also use startx, im not entirely sure.
Old 04-09-2009, 11:56 PM   #3
LQ Newbie
Registered: Dec 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for the tips. Ill check it out when I'm home.
Old 04-10-2009, 04:41 AM   #4
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian 11
Posts: 6,135

Rep: Reputation: 421Reputation: 421Reputation: 421Reputation: 421Reputation: 421
Here's my ~/.vnc/xstartup for KDE:
xrdb $HOME/.Xresources
startkde &


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 06:05 AM
vnc gui not showing up linuxmandrake Linux - Software 9 11-28-2005 04:51 PM
Difference between vnc and ssh with GUI xpucto Linux - Newbie 3 11-24-2005 05:09 AM
Present a GUI Login on vnc connections PlatinumRik Linux - Software 1 04-18-2005 01:02 PM
VNC : can log in but i dont have a Gnome GUI jasoncngo Linux - Software 5 03-20-2003 05:29 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration