A while ago I was asked to concoct a fire-and forget script to install Virtualmin without prompting.
It’s really easy:
#!/bin/bash
if [ -z $1 ]; then
echo "Usage"; echo " $0 [hostname]"; echo ""; exit
fi
wget http://software.virtualmin.com/gpl/scripts/install.sh -O install.sh
export VIRTUALMIN_NONINTERACTIVE="1"
chmod +x install.sh
./install.sh -f -host $1
rm install.sh
And then you call it like so:
./virtualmin.sh virtualmin.vm.avi.co