Last active
February 10, 2023 05:34
-
-
Save cmdruid/c75d81e3eb35dddef3f2164251d3aa82 to your computer and use it in GitHub Desktop.
Setup VNC on remote server
This file contains 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
#!/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