Zdravim,
Mam problem s VNC na RPI. Ak mam VNC spustene nasledovne potom sa na neho neviem pripojit
pi@rpi-home:~ $ sudo systemctl status vncserver-x11-serviced.service
● vncserver-x11-serviced.service - VNC Server in Service Mode daemon
Loaded: loaded (/usr/lib/systemd/system/vncserver-x11-serviced.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2020-09-01 01:39:11 CEST; 2s ago
Process: 24968 ExecStart=/usr/bin/vncserver-x11-serviced -fg (code=exited, status=0/SUCCESS)
Main PID: 24968 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 1475)
Memory: 15.0M
CGroup: /system.slice/vncserver-x11-serviced.service
Sep 01 01:38:46 rpi-home systemd[1]: Started VNC Server in Service Mode daemon.
Sep 01 01:38:46 rpi-home vncserver-x11[24971]: ServerManager: Server started
Sep 01 01:38:46 rpi-home vncserver-x11[24971]: ConsoleDisplay: Found running X server (pid=478, binary=/usr/lib/xorg/Xorg)
Sep 01 01:39:11 rpi-home systemd[1]: Stopping VNC Server in Service Mode daemon...
Sep 01 01:39:11 rpi-home vncserver-x11[24971]: ServerManager: Server stopped
Sep 01 01:39:11 rpi-home systemd[1]: vncserver-x11-serviced.service: Succeeded.
Sep 01 01:39:11 rpi-home systemd[1]: Stopped VNC Server in Service Mode daemon.
pi@rpi-home:~ $ sudo netstat -pevanut | grep vnc
pi@rpi-home:~ $ sudo systemctl start vncserver-x11-serviced.service
pi@rpi-home:~ $ sudo netstat -pevanut | grep vnc
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 0 6047607 25054/vncserver-x11
tcp 0 0 127.0.0.1:42437 127.0.0.1:56548 ESTABLISHED 1000 6050226 25067/vncserverui
tcp 0 0 127.0.0.1:56548 127.0.0.1:42437 ESTABLISHED 0 6047655 25054/vncserver-x11
tcp6 0 0 :::5900 :::* LISTEN 0 6047606 25054/vncserver-x11
Pri neuspesnom pripajani dostavam hlasky typu:
wakatana@ubuntu:~$ vncviewer 192.168.3.108:0
Connected to RFB server, using protocol version 3.3
No configured security type is supported by 3.3 VNC Viewer
wakatana@ubuntu:~$ vncviewer 192.168.3.108:1
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
Ak mam VNC spustene nasledovne potom sa pripojim avsak kazde okno ktore otvorim po chvilke zmizne
pi@rpi-home:~ $ vncserver-virtual -Encryption PreferOn -Authentication VncAuth
VNC(R) Server 6.7.1 (r42348) ARMv6 (Jan 30 2020 15:13:47)
Copyright (C) 2002-2020 RealVNC Ltd.
RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark
registrations and/or pending trademark applications in the European Union,
United States of America and other jurisdictions.
Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.
See https://www.realvnc.com for information on VNC.
For third party acknowledgements see:
https://www.realvnc.com/docs/6/foss.html
OS: Raspbian GNU/Linux 10, Linux 4.19.97, armv7l
On some distributions (in particular Red Hat), you may get a better experience
by running vncserver-virtual in conjunction with the system Xorg server, rather
than the old version built-in to Xvnc. More desktop environments and
applications will likely be compatible. For more information on this alternative
implementation, please see: https://www.realvnc.com/doclink/kb-546
Running applications in /etc/vnc/xstartup
VNC Server catchphrase: "Flame monster buffalo. Demo Ralph bazaar."
signature: f1-37-1f-cc-c4-19-1b-82
Log file is /home/pi/.vnc/rpi-home:1.log
New desktop is rpi-home:1 (192.168.3.108:1)
pi@rpi-home:~ $ sudo netstat -pevanut | grep vnc
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 1000 6051865 25139/Xvnc-core
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 1000 6050967 25139/Xvnc-core
tcp 0 0 127.0.0.1:58600 127.0.0.1:37497 ESTABLISHED 1000 6050458 25139/Xvnc-core
tcp 0 0 127.0.0.1:37497 127.0.0.1:58600 ESTABLISHED 1000 6051935 25183/vncserverui
tcp6 0 0 :::5901 :::* LISTEN 1000 6051864 25139/Xvnc-core
tcp6 0 0 :::6001 :::* LISTEN 1000 6050966 25139/Xvnc-core
pi@rpi-home:~ $
Pripajam sa nasleovne:
vncviewer 192.168.3.108:1
resp
vncviewer 192.168.3.108:0