Skip to content

Instantly share code, notes, and snippets.

@cmdruid
Last active February 10, 2023 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmdruid/c75d81e3eb35dddef3f2164251d3aa82 to your computer and use it in GitHub Desktop.
Save cmdruid/c75d81e3eb35dddef3f2164251d3aa82 to your computer and use it in GitHub Desktop.
Setup VNC on remote server
#!/usr/local/env bash
mkdir -p ~/.config/autostart
cat >> ~/.config/autostart/x11vnc.desktop << 'EOF'
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=X11VNC
Comment=
Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
StartupNotify=false
Terminal=false
Hidden=false
EOF
sudo apt update
sudo apt install x11vnc
x11vnc -storepasswd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment