This script will actually ease your ZoneMinder install on Debian 9
Step 1 Install a bare install of Debian 9 Stretch (web/ssh/base system)
Save the script anywhere like /home/user/InstallZM.sh
chmod 777 /home/user/InstallZM.sh
/home/user/Install.sh