Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I keep getting a grey background in my VNC viewer on my VPS, like so:

enter image description here

My .vnc/xstartup is as follows:


exec /etc/X11/xinit/xinitrc

gnome-session --session=gnome-classic &
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey
xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

x-terminal-emulator -geometry 1280x1024+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &

My server has the tightvncserver and everything else properly installed and configured to port 1. What is going wrong? I'm on Debian 6.0.4

share|improve this question
What are you expecting to see, a console? – Braiam Jul 31 '13 at 0:00
No, a desktop. I get a background. – Someone Jul 31 '13 at 0:01
A new session or the current session of X? You might want to read this question on Super User, superuser.com/q/326638/235569 – Braiam Jul 31 '13 at 0:03
According to that, all users logged in get their own desktop. I just want to see a desktop interface. – Someone Jul 31 '13 at 0:05
OK, then lets set things straight. You went from work to home and wants to continue the same work (without the need of starting all the applications again) in your house, that? – Braiam Jul 31 '13 at 0:07
up vote 1 down vote accepted

As discussed on chat, for what you want to do, opening a session over VNC, you (normally) don't need further configuration of the VNC server. Just delete the configuration file .vnc/xstartup and you will be fine.

share|improve this answer
So you're telling me that if I remove the line with -solid, it will work? – Someone Jul 30 '13 at 23:49
Still not working. – Someone Jul 30 '13 at 23:54
Yes. I deleted both. – Someone Jul 30 '13 at 23:57

First of all, you should log the vnc startup process. If you autostart vncserver use something like:

vncserver 1>/var/log/vnc 2>/var/log/vnc

if you meet an error like xauth: (argv):1: bad display name ... make sure /etc/hostname and /etc/hosts are consistent with the hostname.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.