I have a Ubuntu install USB stick. I never use it to actually install Ubuntu, I always select the live option (no install). Now there are multiple commands that I always have to run once it has completely booted up. I'm looking for a sort of .bashrc file on the USB stick that always gets executed once the system is up and ready. I read a lot about preseed files, but from what I understand, all that stuff only applies if you're actually installing Ubuntu. https://help.ubuntu.com/community/InstallCDCustomization
Any ideas?
You can use
mkusb
to create a persistent live bootable ubuntu usb. After that, just add your script underStartup Applications
.It will remember these changes at your next boot.
Here is a good page about LiveCD Customization, which is what you probably want.
When building the new LiveCD, you can treat the startup issue like you would a normal install, and edit your
/etc/rc.local
to include the commands you want to run on every boot. Make sure that you don't includesudo
commands, and it has to exit successfully.