You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
have been trying to replicate the configuration for the wayvnc service on a raspberry pi 5, when running wayvnc directly - Linux pi5 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
the idea was to have the wayvnc service run as normal on startup. then after isolating the LAN to a network namespace (per https://www.wireguard.com/netns/) stopping the service and starting a new wayvnc process in the LAN namespace.
using the following script, modeled on /usr/sbin/wayvnc-run.sh was causing issues like ERROR: Failed to execute command: attach: Failed to connect to WAYLAND_DISPLAY="wayland-1" (even without namespaces):
running wayvnc --render-cursor 0.0.0.0 worked fine as the default user, however trying to run as root or in a script returned the same issue mentioned above. eventually isolated the issue to XDG_RUNTIME_DIR and now have this working:
does this seem like an acceptable solution? also curious how the service finds WAYLAND_DISPLAY with XDG_RUNTIME_DIR=/tmp/wayvnc set? possibly related to https://github.com/any1/rpi-wayvnc-control?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
have been trying to replicate the configuration for the wayvnc service on a raspberry pi 5, when running wayvnc directly -
Linux pi5 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
the idea was to have the wayvnc service run as normal on startup. then after isolating the LAN to a network namespace (per https://www.wireguard.com/netns/) stopping the service and starting a new wayvnc process in the LAN namespace.
using the following script, modeled on
/usr/sbin/wayvnc-run.sh
was causing issues likeERROR: Failed to execute command: attach: Failed to connect to WAYLAND_DISPLAY="wayland-1"
(even without namespaces):running
wayvnc --render-cursor 0.0.0.0
worked fine as the default user, however trying to run as root or in a script returned the same issue mentioned above. eventually isolated the issue to XDG_RUNTIME_DIR and now have this working:does this seem like an acceptable solution? also curious how the service finds
WAYLAND_DISPLAY
withXDG_RUNTIME_DIR=/tmp/wayvnc
set? possibly related to https://github.com/any1/rpi-wayvnc-control?thanks for your work
Beta Was this translation helpful? Give feedback.
All reactions