I would like to customize ubuntu image that would have pre-configured autostartup. In general, user goes to "Startup Applications" GUI and adds a specific command to be run on the start up. The answer in this question points out the the /home/user/.config/autostart directory. I assume I can simply add files there with the content like below that would execute on startup.
[Desktop Entry]
Type=Application
Exec=gnome-terminal -e "sudo /home/user/bin/myScript.sh"
Hidden=false
NoDisplay=false
X-GNOME-autostart-enabled=true
Name[en_US]=MY APP
Name=MY APP
Comment[en EN]=
Comment=
Using this approach, I would like to add the startup files to the ISO image "opened" by UCK into the remaster-root/home/user/.config/autostart directory, but it does not exist for obvious reasons - the user has not been created yet (this only happens on the installation boot?).
Is there an alternative way to pre-configure the ISO image, so after installation the script runs on system startup?
remaster-root/etc/skel/.config/autostart/
folder as/etc/skel/
is the default user that is loaded when the ISO boots. – Terrance Jul 26 '17 at 20:16