Closed
Conversation
Required dependency for wayvnc VNC server (IPC/config parsing). Lightweight (~30KB .so), zero external dependencies. Build: cmake with shared library, docs/tests disabled.
VNC server for wlroots-based Wayland compositors. Attaches to the running sway session via screencopy and provides remote desktop access on port 5900 — any VNC client connects without authentication. Build architecture: - wayvnc (master/0.10-dev) as main package - neatvnc + aml built as meson subprojects (tightly version-coupled) - All dependencies already available in ROCKNIX except jansson (added) Compiled features: - H.264 encoding via V4L2 M2M (hardware encoder on ARM SoCs: rkvenc, venus) and FFmpeg libavcodec fallback - JPEG compression via libjpeg-turbo (Tight encoding) - TLS support via gnutls (compiled in, not active by default) - WebSocket support via nettle (for browser-based VNC clients) - Screencopy DMA-BUF (zero-copy frame capture) - Cursor rendering into VNC stream (--render-cursor) Service integration: - systemd unit: wayvnc.service with ConditionPathExists sentinel - Daemon script: 003-wayvnc (setting key: vnc.enabled) - Follows exact SSH/Samba pattern for ES toggle integration - Listens on 0.0.0.0:5900, no auth, no config file needed Added to network virtual package for all devices (~310KB total). Binary size: wayvnc ~200KB, wayvncctl ~80KB, libneatvnc ~120KB, libaml ~15KB.
Contributor
Author
The upstream packages/ folder is protected by CI and must not be modified in PRs. Move jansson to the ROCKNIX project packages directory where all distribution-specific packages belong.
Contributor
|
not happening |
Contributor
100% agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New Packages
janssonwayvncneatvncamlTotal image size impact: ~365KB
Compiled Features (verified on RK3566 build)
--render-cursor(renders cursor into VNC stream for gamepad UI)Service Integration
Follows the existing SSH/Samba daemon pattern:
wayvnc.servicewithConditionPathExistssentinel file003-wayvnc(setting key:vnc.enabled)PKG_DEPENDS_TARGETfor all devicesHow to Enable
Via SSH:
mkdir -p /storage/.cache/services touch /storage/.cache/services/wayvnc.conf systemctl enable wayvnc systemctl start wayvncOr via user autostart script (
/storage/.config/autostart/wayvnc.sh):#!/bin/bash mkdir -p /storage/.cache/services touch /storage/.cache/services/wayvnc.conf systemctl start wayvncTo disable:
systemctl stop wayvnc && systemctl disable wayvnc rm /storage/.cache/services/wayvnc.confVNC client connects to
<device-ip>:5900— no authentication, no configuration needed on the client side.Testing
make imagecompleted successfully. Verified compiled feature flags in neatvncconfig.hconfirm H.264 (V4L2 M2M + FFmpeg), JPEG, TLS, DMA-BUF screencopy all enabled. Verified installed binaries:wayvnc,wayvncctl,libneatvnc.so,libaml.so.target/ROCKNIX-RK3566.aarch64-20260329-Generic.img.gz(1.5GB). wayvnc binary links correctly against all sway/wlroots/wayland dependencies. systemd service file and daemon script follow established patterns (identical structure to openssh001-sshand samba002-samba).Additional Context
AI Usage
Did you use AI tools to help write this code? PARTIALLY