VNC setup

This commit is contained in:
2026-09-15 00:11:53 -04:00
parent db8fa66c2a
commit 6f83981242
5 changed files with 122 additions and 5 deletions
+30
View File
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Remote Desktop</title>
<style>
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #000; }
#screen { width: 100%; height: 100%; }
</style>
</head>
<body>
<div id="screen"></div>
<script type="module">
import RFB from '/vnc/novnc/core/rfb.js';
const screen = document.querySelector('#screen');
const protocol = location.protocol === 'https:' ? 'wss' : 'ws';
const rfb = new RFB(screen, `${protocol}://${location.host}/ws/vnc`);
rfb.scaleViewport = true;
rfb.resizeSession = false;
rfb.showDotCursor = true;
rfb.addEventListener('connect', () => console.log('RFB connected'));
rfb.addEventListener('disconnect', event => console.log('RFB disconnected', event.detail));
</script>
</body>
</html>
+1 -1
View File
@@ -502,7 +502,7 @@
{ name: 'AI Assistant', url: ':1000', icon: 'fa-robot' },
{ name: 'ATAK', url: ':1100', icon: 'fa-shield-halved', badge: 'fa-download' },
{ name: 'Code Book', url: '/code-book.html', icon: 'fa-lock', badge: 'fa-download', badgeAction: 'saveCodeBook' },
{ name: 'Desktop', url: ':1200', icon: 'fa-desktop', badge: 'fa-download' },
{ name: 'Desktop', url: '/desktop.html', icon: 'fa-desktop', badge: 'fa-download' },
{ name: 'File Browser', url: ':1300', icon: 'fa-folder' },
{ name: 'Library', url: ':1400', icon: 'fa-book', badge: 'fa-cog', badgeAction: 'openKiwix' },
{ name: 'Maps', url: ':1500', icon: 'fa-map' },