Menu
  • HOME
  • TAGS

Set up TightVNC programmatically with BASH

bash,debian,expect,vnc-server,tightvnc

# Configure VNC password umask 0077 # use safe default permissions mkdir -p "$HOME/.vnc" # create config directory chmod go-rwx "$HOME/.vnc" # enforce safe permissions vncpasswd -f <<<"$password" >"$HOME/.vnc/passwd" # generate and write a password Modify to taste, if your packaging for tightvnc uses a location other than ~/.vnc/ for...