You need to have launchers for VNCViewer connections to specific hosts? Here is a way to Launch a VNCViewer Script with a Graphical Password Prompt.
VNCViewer Script with a Graphical Password Prompt
I have a Menu item for hosts that I connect to frequently. SSH and RDesktop were simple enough, but when I’d try to use VNCViewer, the password prompt would die into the background process. To get around this I whipped up a simple shell script using VNCViewer to resolve this.
This script requires Zenity and XTightVNCViewer.
#!/bin/sh
PASSWD=”$(zenity –password –title=Authentication)\n”
echo $PASSWD | vncviewer -autopass 192.168.91.19:1
PASSWD=”$(zenity –password –title=Authentication)\n”
echo $PASSWD | vncviewer -autopass 192.168.91.19:1
The only downfall of this VNC Script with a Graphical Password Prompt is that I need to have a script for each VNC host in my menu.
As an Amazon Associate I earn from qualifying purchases. Read our Privacy Policy for more info.