I can install MYSQL on Ubuntu without prompts with the code below:
dbpass=\"mydbpassword\" export DEBIAN_FRONTEND=noninteractive echo mysql-server-5.1 mysql-
you can always do normal installation and then script: