Skip to content

Instantly share code, notes, and snippets.

@abakum
Last active January 10, 2018 12:49
Show Gist options
  • Select an option

  • Save abakum/5910e53627f8b16402103452dc655753 to your computer and use it in GitHub Desktop.

Select an option

Save abakum/5910e53627f8b16402103452dc655753 to your computer and use it in GitHub Desktop.
x11vnc for debian
#~/.x11vncrc
dontdisconnect
notruecolor
noxfixes
shared
forever
bg
ncache 10
no6
noipv6
usepw
display :0
apt update
apt install x11vnc
x11vnc -storepasswd
chmod u+x ~/.local/bin/vncd
chmod u+x ~/.local/bin/vncs
chmod u+x ~/.local/bin/vncc
#~/.local/bin/vncc
pidof x11vnc || X11VNC_REVERSE_CONNECTION_NO_AUTH=1 x11vnc -once
x11vnc -r connect:`echo $SSH_CLIENT|cut -d " " -f1`
#~/.local/bin/vncd
pidof x11vnc && (x11vnc -r stop;sleep 1)
X11VNC_REVERSE_CONNECTION_NO_AUTH=1 x11vnc
#~/.local/bin/vncs
pidof x11vnc && x11vnc -r stop
@abakum
Copy link
Author

abakum commented Jan 9, 2018

vncd for run x11vnc as Daemon
vncc for Connect to vncViewer -listen
vncs for Stop x11vnc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment