WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 9, 2025

VNC installation via hb-config appears successful but clients cannot connect, showing "Cannot currently show the Desktop" error. The issue affects image version 1.4.1 on Raspberry Pi 4B.

Root Cause

vncserver-x11-serviced.service alone doesn't provide a desktop session on Raspbian Lite. The vncserver-pi.service systemd unit that creates the virtual desktop on port 5912 was commented out.

Changes

  • Uncommented vncserver-pi.service systemd unit creation
  • Added systemctl daemon-reload before enabling services
  • Uncommented enable/start/stop/disable commands for vncserver-pi.service
# install and setup VNC
if is_installed realvnc-vnc-server || (apt update --allow-releaseinfo-change && apt install -y realvnc-vnc-server); then
-#        cat > /etc/systemd/system/vncserver-pi.service <<EOL
+        cat > /etc/systemd/system/vncserver-pi.service <<EOL
[Unit]
Description=VNC Virtual Desktop Service
...
EOL
+        systemctl daemon-reload &&
         systemctl enable vncserver-x11-serviced.service &&
         systemctl start vncserver-x11-serviced.service &&
-#        systemctl enable vncserver-pi.service &&
-#        systemctl start vncserver-pi.service &&
+        systemctl enable vncserver-pi.service &&
+        systemctl start vncserver-pi.service &&
         STATUS=enabled

Both services are now enabled: vncserver-x11-serviced.service provides VNC infrastructure, vncserver-pi.service creates the virtual desktop on port 5912.

Original prompt

This section details on the original issue you should resolve

<issue_title>VNC Install not working / image 1.4.1</issue_title>
<issue_description>### Raspberry Pi Model

Raspberry Pi 4 B

Describe The Bug

Whether via sudo raspi-config or via sudo hb-config: The Installation of VNC-Server seems o.k. but both installations lead to: Cannot currently show the Desktop (on RVNC iPad OS 26.2 or RVNC on MBAir 26.1).

Logs


```</issue_description>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits December 9, 2025 01:05
Uncomment vncserver-pi.service creation and enable/disable commands to fix
"Cannot currently show the Desktop" error in VNC clients. The service creates
a virtual desktop on port 5912 that VNC clients can connect to.

Co-authored-by: NorthernMan54 <[email protected]>
Ensure systemd reloads its configuration after creating the new service file,
following the pattern used elsewhere in the script for service creation.

Co-authored-by: NorthernMan54 <[email protected]>
Add && operator to daemon-reload command to ensure proper error handling
and prevent continuing if the reload fails.

Co-authored-by: NorthernMan54 <[email protected]>
Copilot AI changed the title [WIP] Fix VNC install issue on Raspberry Pi 4 B Fix VNC installation by enabling virtual desktop service Dec 9, 2025
Copilot AI requested a review from NorthernMan54 December 9, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VNC Install not working / image 1.4.1

2 participants