Skip to content

Instantly share code, notes, and snippets.

@xingh
Last active December 7, 2023 18:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xingh/11ed882019435edf1a36179f6b53e6d1 to your computer and use it in GitHub Desktop.
Save xingh/11ed882019435edf1a36179f6b53e6d1 to your computer and use it in GitHub Desktop.
  • Copy the raw contents of the shell.
  • Run a shell terminal with this command
vi install.sh && chmod 755 install.sh && sudo ./install.sh

  • Paste the raw contents.
  • Then type :wq and hit enter.
  • When prompted enter the root password to install.
# Script to install RealVNC server
# Install the latest updates for the system
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
# Install RealVNC server
# sudo apt-get install -y realvnc-vnc-server
curl -L -o VNC https://www.realvnc.com/connect/download/binary/latest/debian/64-bit/
# Install VNC Server on a Debian-compatible system (assuming download file named as above):
sudo dpkg -i VNC
# Enable VNC server at boot and start it now
sudo systemctl enable vncserver-x11-serviced.service
sudo systemctl start vncserver-x11-serviced.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment