0

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?

  • 1
    Another option would be to leave space on your Live disk for installed apps, then install crontab and have it run scripts upon startup. – Robby1212 Jun 9 '17 at 13:58
0

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 include sudo commands, and it has to exit successfully.

  • There doesn't seem to be an /etc directory on the USB stick. – Forivin Jun 9 '17 at 14:26
  • If you follow the steps in that link, the etc dir will be under the edit/etc dir of the downloaded iso. – Grayson Kent Jun 9 '17 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.