Skip to content

Instantly share code, notes, and snippets.

@ChickenChunk579
Last active January 2, 2025 22:32
Show Gist options
  • Save ChickenChunk579/053c15d03cea2f17bd91281d9dd0ac3c to your computer and use it in GitHub Desktop.
Save ChickenChunk579/053c15d03cea2f17bd91281d9dd0ac3c to your computer and use it in GitHub Desktop.
Installs the Fluxbox Window Manager, NoVNC and TightVNC Server Standalone to add a desktop environment to your Codespace
#!/bin/bash
echo "Updating..."
sudo apt update
echo "Installing packages..."
sudo apt install xterm fluxbox novnc tigervnc-standalone-server
echo "Starting NoVNC"
websockify --web /usr/share/novnc/ --wrap-mode=ignore 6080 localhost:5900 &
echo "Starting VNC server..."
vncserver :1 -geometry 2560x1440 -depth 24 -localhost -nolisten tcp -rfbport 5900
echo "Done! Port 6080 and 5900 should now be forwarded. Simply open https://localhost:6080 to access the NoVNC client."
@Efebey2903
Copy link

best thing ever lived

@GitXpresso
Copy link

Anybody who is visiting this page check out my repository that actually runs LXQT in a browser using novnc, repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment