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?
You can use netstat to see if there is an established connection on the port your VNC server is listening on. try netstat -an | find "ESTABLISHED" | find ":5900" on Windows at the command prompt. There'll be a line entry for it if someone is connected.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With