Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. x11vnc -ncache 10 -auth guess -repeat -nap -loop -forever -rfbauth ~/.vnc/passwd -desktop "VNC ${USER}@${HOSTNAME}"|grep -Eo "[0-9]{4}">~/.vnc/port.txt
  4.  
  5. # comment this out if you dont want a pop up telling you which port you're using
  6.  
  7. zenity --info --text="Your VNC port is 'cat~/.vnc/port.txt'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement