Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save c0d33ngr/34f6a2e5b1afd49b4f3a61e9d59f7176 to your computer and use it in GitHub Desktop.

Select an option

Save c0d33ngr/34f6a2e5b1afd49b4f3a61e9d59f7176 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."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment