You are not logged in.

#1 2020-02-24 10:34:15

Jphillips
Member
Registered: 2019-08-23
Posts: 68

TigerVNC showing black screen when connected

I am trying to configure TigerVNC to host a vnc server in a gnome session. I'm able to connect fine, but the client just shows a black screen. This problem has been documented previously, but the fixes I've seen (e.g., https://bbs.archlinux.org/viewtopic.php?id=236248) don't seem to work.

Currently my ~/.vnc/xstartup looks like:

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`

xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
exec dbus-launch gnome-session

And the log file for starting the server and connecting is:

Mon Feb 24 11:31:30 2020
 Geometry:    Desktop geometry is set to 4320x2560+0+0
 XDesktop:    Mask for 'Scroll Lock' is 0x4
 XDesktop:    Mask for 'Num Lock' is 0x2
 XDesktop:    Mask for 'Caps Lock' is 0x1
 XDesktop:    Using evdev codemap
 XDesktop:    
 XDesktop:    XTest extension present - version 2.2
 XDesktop:    RANDR extension not present
 XDesktop:    Will not be able to handle session resize
 VNCServerST: creating single-threaded server x0vncserver
 Main:        Listening on port 5900
 XDesktop:    Got indicator update, mask is now 0x2

Mon Feb 24 11:31:38 2020
 Connections: accepted: 10.6.35.131::44646
 SConnection: reading protocol version
 SConnection: Client needs protocol version 3.8

Mon Feb 24 11:31:39 2020
 SConnection: processing security type message
 SConnection: Client requests security type VeNCrypt(19)
 SConnection: processing security message
 SConnection: processing security message
 SConnection: processing security message
 SConnection: processing security message
 SVeNCrypt:   Client requests security type TLSVnc (258)
 TLS:         Process security message (session (nil))
 TLS:         Anonymous session has been set
 TLS:         Deferring completion of TLS handshake: Resource temporarily
              unavailable, try again.
 SConnection: processing security message
 TLS:         Process security message (session 0x55dc3116cd90)
 TLS:         Deferring completion of TLS handshake: Resource temporarily
              unavailable, try again.
 SConnection: processing security message
 TLS:         Process security message (session 0x55dc3116cd90)
 TLS:         TLS handshake completed with
              (TLS1.2)-(ANON-ECDH)-(AES-256-CBC)-(SHA1)

Mon Feb 24 11:31:43 2020
 SConnection: processing security message
 SVncAuth:    reading password file
 VNCServerST: starting desktop
 XDesktop:    Enabling 8 buttons of X pointer device
 XDesktop:    Allocated shared memory image
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 SConnection: reading client initialisation
 VNCServerST: non-shared connection - closing clients
 VNCSConnST:  Key pressed: 0xff7f / 0x45
 XDesktop:    77 down
 VNCSConnST:  Key released: 0xff7f / 0x45
 XDesktop:    77 up
 XDesktop:    Got indicator update, mask is now 0x0

Any thoughts on where to being trouble shooting this? I've also set this up as a systemd service and running as sudo, as some people has suggested, but I haven't had success with this either.

Last edited by Jphillips (2020-02-24 15:15:06)

Offline

#2 2020-05-09 06:26:29

fwman17
Member
Registered: 2020-05-09
Posts: 1

Re: TigerVNC showing black screen when connected

I use:
Kernel: 5.6.8-1-MANJARO x86_64
Distro: Manjaro Linux (20)
xfce

my .vnc/xstartup is only (all the other stuff didn't work):

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

exec startxfce4 &
-----------
You can determine the exec command by looking in /usr/share/xsessions/
e.g. xfce.desktop (may be gome.desktop?)
and search for Exec=
my was: Exec=startxfce4
Take this value and it should work.

.. FW

Offline

Board footer

Powered by FluxBB