Skip to content

Instantly share code, notes, and snippets.

@raghunayak
Created July 29, 2020 11:43
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 raghunayak/8302ac26d6ae796db28332878e87a673 to your computer and use it in GitHub Desktop.
Save raghunayak/8302ac26d6ae796db28332878e87a673 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Immediately exit upon any failures, or undefined variable usage
set -ue
# Enable Ubuntu included VNC server
echo "Enabling VNC server"
export DISPLAY=:0
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
# Below line would disable the VNC encryption, thereby reducing the security.
# However, disabling encryption should make our VNC server more compatible with any VNC clients
gsettings set org.gnome.Vino require-encryption false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment