0

I am using a script to automatically set up a computer. I need to assign a password to the vnc server for the user, which is normally done using the vncserver command. However, it prompts for the user to enter and re-enter their password, neither of which the script is capable of doing.

So, how can I set up the VNC password without an interactive prompt?

seenukarthi
  • 8,241
  • 10
  • 47
  • 68
Nicholas
  • 29
  • 8

1 Answers1

0

Please try following bash script sample:

#!/bin/sh

vncpasswd << EOF
123456
123456
EOF
Murad Tagirov
  • 776
  • 6
  • 10