diff --git a/README.md b/README.md index 676eae6..d8f16e9 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,13 @@ after armbian init setup, a VNC server will be running on port 5900 powerd by li Note: the bad build in WiFi Antenna can make a VNC connection Instable very fast. +## noVNC + +the VNC server can be accessed via a webbrowser: +``` +http://:6080/vnc_auto.html +``` + # WiFi / Network config on the comand line use `nmtui` or use the Network Manager UI after login. diff --git a/userpatches/customize-image.sh b/userpatches/customize-image.sh index d7b22ca..a20e4cd 100644 --- a/userpatches/customize-image.sh +++ b/userpatches/customize-image.sh @@ -71,6 +71,7 @@ Main() { systemctl enable x6100_chroot.service systemctl enable x6100_app.service systemctl enable lightdm_x6100.service + systemctl enable novnc.service # disable not needed services systemctl disable smbd.service diff --git a/userpatches/overlay/etc/systemd/system/novnc.service b/userpatches/overlay/etc/systemd/system/novnc.service new file mode 100644 index 0000000..1d8b232 --- /dev/null +++ b/userpatches/overlay/etc/systemd/system/novnc.service @@ -0,0 +1,11 @@ +[Unit] +Description=noVNC for lightdm +Requires=lightdm.service + +[Service] +Type=simple +ExecStart=/usr/bin/websockify --web=/usr/share/novnc/ 6080 localhost:5900 +Restart=on-failure + +[Install] +WantedBy=multi-user.target \ No newline at end of file