Last active
March 31, 2020 01:35
-
-
Save hdamron17/e9c7c810cf44334edfc825998acb01a0 to your computer and use it in GitHub Desktop.
VNC Remote Desktop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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