Vnc viewer is showing black screen. Following are the configuration : Please figure out the issue ?
cat /root/.vnc/xstartup
#!/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 &
====================================================================
vi /etc/sysconfig/vncservers
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1024x768"
=================================================================
Run level :
chkconfig --list vncserver
vncserver 0:off 1:off 2:on 3:on 4:on 5:on 6:off
I figured I should answer my own question...in case anyone else runs into a similar problem. I just added localhost to xhost, and voila! took me a lot of hunting around to find this solution, so maybe this'll help a couple of you.
Same issue. It seems that there is a dbus-launch in anaconda2/bin. If a user has that in their path vncserver fails to find the correct dbus-launch - /usr/bin/dbus-launch. The Xvnc starts but none of the window manager applications that depend on dbus. My fix was to create a /usr/local/bin/vncserver:
I saw the same symptom. For me, the issue was how I used bsub to invoke vncserver.
Using 'bsub -Is' caused a black screen. Using 'bsub -I' fixed the issue.
I was launching x0vncserver from a remote ssh terminal. The server would run, but then connecting to vncviewer would show the black screen as mentioned above.
The solution: Launching x0vncserver from a terminal window on the host gnome environment.
I use this configuration with win2vnc, so I get dual monitor Windows + 3rd monitor linux side-by-side with one keyboard and mouse. Works great!
In my case dbus-daemon (/usr/bin/dbus-daemon) was getting masked by another dbus daemon in my PATH. I found this by checking the vncserver logs for my session. In typical setup can be accessed in .vnc directory in user home area. The start of specific log message may look like this:
Seems one user can only start one kde desktop, the extras are black screen. Just now xdm and vnc show me the desktop, I think, is because I don't login to the desktop.
Replace sddm to xdm fix the black screen problem, refert to this: https://forums.opensuse.org/showthread.php/532320-vncserver-blank-screen