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