Can we install driver in Ubuntu server without pop out and click "ok/yes/no"?

I run below command in Ubuntu server to install the driver:
sudo chmod a+x
sudo sh ./

Next it will pop out few Graphic window, and force me to select yes/no/ok…
Can we install the driver without pop out “yes/no/ok” window?