customizing Ubuntu deployed images
I’m using FOG to exclusively capture and deploy Ubuntu images (no Windows is involved), everything is working fine but I have 2 customization issues:
The computer name (and user name), and passwords are always the same as the captured original image, is there a way (or workaround) to customize this, so that every machine gets at least its own name after deployment?
Is there a way to automatically join the deployed machine to an AD? I know this is easily done with FOG in the case of a Windows installation, but is there a workaround to make this happen on Ubuntu?
For both issues, I thought about writing a BASH script and running it as a Snapin with the deployment, but how could I write such scripts? or does anyone have working scripts that do this?
While the fog-client is designed to run on Linux and also rename computers I am not sure this is working at the moment. Very few people seem to use the fog-client software on Linux and there are not enough people to work on the code either. Here you see rumors on it not working but I am not sure this is true for all distros: https://forums.fogproject.org/topic/15903/linux-fog-client-hostname-changer-not-working
The other way is using so called a post download script:
Is there a way to automatically join the deployed machine to an AD?
This is discussed here using fog-client snapins: https://forums.fogproject.org/topic/9638/join-active-directory-using-fog-on-ubuntu-linux (pretty old topic, no idea if this is of much help)