Create (Mostly) Unattended Install of UBUNTU

Customize cd-files/ks.cfg according to your needs.

Create CD image with:

 ./make.sh path_to_ubuntu_cd_.iso

Which creates /tmp/custom.iso

The image can then be burned to disc

If you have unetbootin, you can then run

 ./unetbootin-to-stick.sh

to copy the iso file to /dev/sdb

Reference

Based on :