I need to make a .sh script file for VNC install in centos server 4.1.1. Which will automate my work for installing VNC server.i made this primary file & it works but i stuck at coding the allow installation Y/N, display configs and edit/commenting values inputs.
Code:
wget https://dl.dropboxusercontent.com/s/co308vee1im1pkb/vnc.sh
chmod -R 777 vnc.sh
./vnc.sh
But i need to impliment those too :
- after each install: a YES(Y) input.
- after command "sudo nano /etc/sysconfig/vncservers" a input
- [VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 1324x700"] and save & exit.
- after command:"nano .vnc/xstartup" a '#' comment in 28th line and save & exit.
how to do those ? any advice appreciated