Skip to content

Instantly share code, notes, and snippets.

@lattice0
Last active April 15, 2022 02:03
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 lattice0/1ecd3f4554924ac104b205513551150b to your computer and use it in GitHub Desktop.
Save lattice0/1ecd3f4554924ac104b205513551150b to your computer and use it in GitHub Desktop.
x11vnc vnc
# First run setup
HOST=lz@192.168.1.11 && ssh $HOST "sed -i 's/[#WaylandEnable=false]/[WaylandEnable=false]/' [/etc/gdm3/custom.conf] && sudo -S apt-get update && sudo -S apt-get install -y x11vnc && sudo reboot"
# Connect and forward ports
HOST=lz@192.168.1.11 && ssh $HOST -L 5900:localhost:5900 -L5901:localhost:5901 -L5902:localhost:5902 -L5903:localhost:5903 "x11vnc -listen localhost"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment