RPiVNCHowTo icon indicating copy to clipboard operation
RPiVNCHowTo copied to clipboard

i've been dealing with this for the past 10 hours.

Open costispavlou opened this issue 1 year ago • 4 comments

image image image

`*** System Info *** PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" Linux raspberrypi 6.6.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 (2024-11-25) aarch64 GNU/Linux

*** Display Manager is '/usr/sbin/lightdm'

*** xvnc Configuration Info ***

*** systemctl status xvnc1.socket ● xvnc1.socket - XVNC Server 1 Loaded: loaded (/etc/systemd/system/xvnc1.socket; enabled; preset: enabled) Active: active (listening) since Mon 2024-12-30 02:04:42 EET; 20min ago Listen: [::]:5901 (Stream) Accepted: 6; Connected: 0; Tasks: 0 (limit: 3913) CPU: 6ms CGroup: /system.slice/xvnc1.socket

Dec 30 02:04:42 raspberrypi systemd[1]: Listening on xvnc1.socket - XVNC Server 1.

*** systemctl cat [email protected]

/etc/systemd/system/[email protected]

[Unit] Description=XVNC Per-Connection Daemon 1

[Service] ExecStart=-/usr/bin/Xtightvnc -inetd -query 127.0.0.1 -geometry 1920x1080 -pn -once StandardInput=socket StandardOutput=socket StandardError=journal

*** netstat -ltpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 802/sshd: /usr/sbin tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 750/cupsd
tcp6 0 0 :::22 :::* LISTEN 802/sshd: /usr/sbin tcp6 0 0 :::5901 :::* LISTEN 1/init
tcp6 0 0 :::5900 :::* LISTEN 773/wayvnc
tcp6 0 0 ::1:631 :::* LISTEN 750/cupsd

*** journalctl -b | grep -E "xvnc|lightdm" Dec 30 01:49:46 raspberrypi systemd[1]: Listening on xvnc1.socket - XVNC Server 1. Dec 30 01:49:46 raspberrypi systemd[1]: Listening on xvnc2.socket - XVNC Server 2. Dec 30 01:49:46 raspberrypi systemd[1]: Listening on xvnc3.socket - XVNC Server 3. Dec 30 01:49:46 raspberrypi systemd[1]: Listening on xvnc4.socket - XVNC Server 4. Dec 30 01:49:46 raspberrypi systemd[1]: Listening on xvnc5.socket - XVNC Server 5. Dec 30 01:49:49 raspberrypi systemd[1]: Starting lightdm.service - Light Display Manager... Dec 30 01:49:51 raspberrypi systemd[1]: Started lightdm.service - Light Display Manager. Dec 30 01:49:51 raspberrypi lightdm[831]: pam_unix(lightdm-autologin:session): session opened for user pi(uid=1000) by (uid=0) Dec 30 02:01:22 raspberrypi systemd[1]: Created slice system-xvnc1.slice - Slice /system/xvnc1. Dec 30 02:01:22 raspberrypi systemd[1]: Started [email protected]:5901-192.168.0.92:12585.service - XVNC Per-Connection Daemon 1 (192.168.0.92:12585). Dec 30 02:01:24 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:01:24 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:01:24 raspberrypi lightdm[766]: display_server_get_can_share: assertion 'server != NULL' failed Dec 30 02:01:24 raspberrypi systemd[1]: [email protected]:5901-192.168.0.92:12585.service: Deactivated successfully. Dec 30 02:01:33 raspberrypi systemd[1]: Started [email protected]:5901-192.168.0.92:12604.service - XVNC Per-Connection Daemon 1 (192.168.0.92:12604). Dec 30 02:01:33 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:01:33 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:01:33 raspberrypi lightdm[766]: display_server_get_can_share: assertion 'server != NULL' failed Dec 30 02:01:33 raspberrypi systemd[1]: [email protected]:5901-192.168.0.92:12604.service: Deactivated successfully. Dec 30 02:02:26 raspberrypi sudo[2027]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/systemctl status xvnc* Dec 30 02:02:55 raspberrypi systemd[1]: Started [email protected]:5901-192.168.0.92:12694.service - XVNC Per-Connection Daemon 1 (192.168.0.92:12694). Dec 30 02:02:55 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:02:55 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:02:55 raspberrypi lightdm[766]: display_server_get_can_share: assertion 'server != NULL' failed Dec 30 02:02:55 raspberrypi systemd[1]: [email protected]:5901-192.168.0.92:12694.service: Deactivated successfully. Dec 30 02:04:27 raspberrypi sudo[2077]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=./make-systemd-xvnc Dec 30 02:04:38 raspberrypi systemd[1]: xvnc5.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:38 raspberrypi systemd[1]: xvnc2.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:38 raspberrypi systemd[1]: xvnc3.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:38 raspberrypi systemd[1]: xvnc4.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:40 raspberrypi systemd[1]: xvnc1.socket: Deactivated successfully. Dec 30 02:04:40 raspberrypi systemd[1]: Closed xvnc1.socket - XVNC Server 1. Dec 30 02:04:42 raspberrypi systemd[1]: xvnc5.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:42 raspberrypi systemd[1]: xvnc2.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:42 raspberrypi systemd[1]: xvnc3.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:42 raspberrypi systemd[1]: xvnc4.socket: Socket unit configuration has changed while unit has been running, no open socket file descriptor left. The socket unit is not functional until restarted. Dec 30 02:04:42 raspberrypi systemd[1]: Listening on xvnc1.socket - XVNC Server 1. Dec 30 02:05:07 raspberrypi systemd[1]: Started [email protected]:5901-192.168.0.92:12858.service - XVNC Per-Connection Daemon 1 (192.168.0.92:12858). Dec 30 02:05:07 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:05:07 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:05:07 raspberrypi lightdm[766]: display_server_get_can_share: assertion 'server != NULL' failed Dec 30 02:05:07 raspberrypi systemd[1]: [email protected]:5901-192.168.0.92:12858.service: Deactivated successfully. Dec 30 02:06:23 raspberrypi systemd[1]: Started [email protected]:5901-192.168.0.92:12963.service - XVNC Per-Connection Daemon 1 (192.168.0.92:12963). Dec 30 02:06:23 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:06:23 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:06:23 raspberrypi lightdm[766]: display_server_get_can_share: assertion 'server != NULL' failed Dec 30 02:06:23 raspberrypi systemd[1]: [email protected]:5901-192.168.0.92:12963.service: Deactivated successfully. Dec 30 02:06:58 raspberrypi sudo[2135]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/systemctl start xvnc1.socket Dec 30 02:07:17 raspberrypi systemd[1]: Started [email protected]:5901-192.168.0.92:13027.service - XVNC Per-Connection Daemon 1 (192.168.0.92:13027). Dec 30 02:07:17 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:07:17 raspberrypi lightdm[766]: session_set_display_server: assertion 'display_server != NULL' failed Dec 30 02:07:17 raspberrypi lightdm[766]: display_server_get_can_share: assertion 'server != NULL' failed Dec 30 02:07:17 raspberrypi systemd[1]: [email protected]:5901-192.168.0.92:13027.service: Deactivated successfully. Dec 30 02:12:15 raspberrypi sudo[2171]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/systemctl restart lightdm Dec 30 02:12:15 raspberrypi systemd[1]: Stopping lightdm.service - Light Display Manager... Dec 30 02:12:15 raspberrypi lightdm[831]: pam_unix(lightdm-autologin:session): session closed for user pi Dec 30 02:12:15 raspberrypi systemd[1]: lightdm.service: Deactivated successfully. Dec 30 02:12:15 raspberrypi systemd[1]: Stopped lightdm.service - Light Display Manager. Dec 30 02:12:15 raspberrypi systemd[1]: Starting lightdm.service - Light Display Manager... Dec 30 02:12:16 raspberrypi systemd[1]: Started lightdm.service - Light Display Manager. Dec 30 02:12:16 raspberrypi lightdm[2193]: pam_unix(lightdm-autologin:session): session opened for user pi(uid=1000) by (uid=0) Dec 30 02:14:06 raspberrypi sudo[3001]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/systemctl restart lightdm Dec 30 02:14:06 raspberrypi systemd[1]: Stopping lightdm.service - Light Display Manager... Dec 30 02:14:07 raspberrypi lightdm[2193]: pam_unix(lightdm-autologin:session): session closed for user pi Dec 30 02:14:07 raspberrypi lightdm[3026]: pam_unix(lightdm-autologin:session): session opened for user pi(uid=1000) by (uid=0) Dec 30 02:14:07 raspberrypi systemd[1]: lightdm.service: Deactivated successfully. Dec 30 02:14:07 raspberrypi systemd[1]: Stopped lightdm.service - Light Display Manager. Dec 30 02:14:07 raspberrypi systemd[1]: Starting lightdm.service - Light Display Manager... Dec 30 02:14:07 raspberrypi systemd[1]: Started lightdm.service - Light Display Manager. Dec 30 02:20:19 raspberrypi sudo[3951]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/nano /etc/lightdm/lightdm.conf Dec 30 02:22:32 raspberrypi sudo[3958]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/nano /etc/lightdm/lightdm.conf Dec 30 02:23:50 raspberrypi sudo[3962]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/nano xvnc-collect Dec 30 02:24:53 raspberrypi sudo[3966]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/chmod +x xvnc-collect Dec 30 02:25:03 raspberrypi sudo[3969]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=./xvnc-collect

*** Display Manager 'lightdm' Log and Configuration Info ***

*** /var/log/lightdm/lightdm.log [+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log [+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=3017 [+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf [+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d [+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf [+0.00s] DEBUG: Registered seat module local [+0.00s] DEBUG: Registered seat module xremote [+0.00s] DEBUG: Registered seat module unity [+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager [+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3) [+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ [+0.02s] DEBUG: Monitoring logind for seats [+0.02s] DEBUG: New seat added from logind: seat0 [+0.02s] DEBUG: Seat seat0: Loading properties from config section Seat:* [+0.02s] DEBUG: Seat seat0 has property CanMultiSession=no [+0.02s] DEBUG: Seat seat0: Starting [+0.02s] DEBUG: Seat seat0: Creating user session [+0.46s] DEBUG: Loading users from org.freedesktop.Accounts [+0.46s] DEBUG: User /org/freedesktop/Accounts/User1000 added [+0.47s] DEBUG: Seat seat0: Creating display server of type wayland [+0.47s] DEBUG: Using VT 7 [+0.47s] DEBUG: Launching process 3024: /usr/share/dispsetup.sh [+0.47s] DEBUG: Process 3024 exited with return value 0 [+0.47s] DEBUG: Seat seat0: Exit status of /usr/share/dispsetup.sh: 0 [+0.48s] DEBUG: Seat seat0: Display server ready, starting session authentication [+0.48s] DEBUG: Session pid=3026: Started with service 'lightdm-autologin', username 'pi' [+0.48s] DEBUG: Acquired bus name org.freedesktop.DisplayManager [+0.48s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0 [+0.48s] DEBUG: Starting XDMCP server on UDP/IP port 177 [+0.50s] DEBUG: Session pid=3026: Authentication complete with return value 0: Success [+0.50s] DEBUG: Seat seat0: Session authenticated, running command [+0.50s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0 [+0.51s] DEBUG: Session pid=3026: Running command /etc/X11/Xsession /usr/bin/labwc-pi [+0.51s] DEBUG: Creating shared data directory /var/lib/lightdm/data/pi [+0.51s] DEBUG: Session pid=3026: Logging to .xsession-errors [+0.55s] DEBUG: Activating VT 7 [+0.56s] DEBUG: Activating login1 session 6 [+0.56s] DEBUG: Seat seat0 changes active session to 6 [+0.56s] DEBUG: Session 6 is already active

*** xdmcp in lightdm.log [+0.48s] DEBUG: Starting XDMCP server on UDP/IP port 177

*** xdmcpserver configuration in lightdm.conf [XDMCPServer] enabled=true port=177 #listen-address=

*** Done *** `

costispavlou avatar Dec 30 '24 00:12 costispavlou

Sorry you're having a problem. It looks to me like your system might be configured to use Wayland for graphics

[+0.47s] DEBUG: Seat seat0: Creating display server of type wayland
[+0.51s] DEBUG: Session pid=3026: Running command /etc/X11/Xsession /usr/bin/labwc-pi

If this is the case, this would most definitely be your problem. The second paragraph of the README states:

" NOTE: VNC only works on X11-based systems. More recent Ubuntu releases, such as 22.04 and later, appear to use Wayland by default. I have not had the time to sort out how to make this project work on Wayland-based systems. "

If you want to use this VNC technique you need to switch your desktop to X11 using raspi-config.

Yes, the README could use a bit of spiffing up.

gitbls avatar Dec 30 '24 00:12 gitbls

thank you will do that now and report back accordingly

costispavlou avatar Dec 30 '24 01:12 costispavlou

update: it works but the colors are all wrong. no wallpaper either. do i need to change the bitrate maybe ?

costispavlou avatar Dec 30 '24 01:12 costispavlou

Sorry, no clue. 🤷‍♂️

gitbls avatar Dec 30 '24 03:12 gitbls