Skip to content

Instantly share code, notes, and snippets.

@hdamron17
Last active March 31, 2020 01:35
Show Gist options
  • Save hdamron17/e9c7c810cf44334edfc825998acb01a0 to your computer and use it in GitHub Desktop.
Save hdamron17/e9c7c810cf44334edfc825998acb01a0 to your computer and use it in GitHub Desktop.
VNC Remote Desktop
#! /bin/sh -e
# Located anywhere on client
# Replace "user@server" appropriately
ssh -L 5900:127.0.0.1:5900 -C -t user@server ./startvnc-server.sh
#! /bin/sh
# Located in $HOME on server
# Use `vncpasswd` to set password (note that this VNC server is available only to localhost)
# x0vncserver is part of TigerVNC
# Assumes lightdm is used
XAUTHORITY=/var/run/lightdm/root/:0 x0vncserver -display :0 -PasswordFile $HOME/.vnc/passwd -localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment