I have recently had a request to develop a shell script that will take one standard "ubuntu" VPS and turn it into a Desktop system with VNC.
I have attached the code i come up with and using Expect for the VNC Password config which seems fine however shortly after wrighting the script i noticed that it requires user interaction.
Can anybody offer me a script that will install the desktop components and VNC Server. This is really confuzing me now and i need help.
my first expect script (apt-update.exp) answers a question about updating .conf files from distributor, Im not sure if theres a better way of doing this?
500 Points for the first with a working script please :)
./apt-update.exp "$VEID" "N"
# Install Desktop & VNC Server
/usr/sbin/vzctl exec $VEID apt-get install -y gnome-desktop-environment xfonts-100dpi xfonts-100dpi-transcoded xfonts-75dpi xfonts-75dpi-transcoded xfonts-base vnc4server xinetd --fix-missing
./vncpass.exp "$VEID" "$VNCPASS"
/usr/sbin/vzctl exec $VEID vncserver