Starting VNC server using vncserver :1
, client can connect to the server but it shows only a black screen with a X curser.
Contents of .vnc/xstartup
is:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
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 &
Is it a problem with this?
That has happened to me 2x, and I have been able to repair it 2x. It's very likely only step 2. then 3. are required, but once I've found a way that works I'm loath to change...
chown user /home/user/.vnc/xstartup
chmod 755 /home/user/.vnc/xstartup
service vncserver stop; service vncserver start