Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: act78723 on November 07, 2019, 07:09:52 AM

Title: How to set up TC to autorun an app on startup from boot
Post by: act78723 on November 07, 2019, 07:09:52 AM
A friend of mine is developing cloning software and needs a base OS that can run from a USB. I think TC would be perfect for this. It would need to run without any login and password as he's using "%sudo ALL=NOPASSWD: ALL"  in the sudoers file to run several root terminal commands in the background (think Clonezilla simplified).

Any ideas on how to accomplish this?

TIA,
Larry
Title: Re: How to set up TC to autorun an app on startup from boot
Post by: Rich on November 07, 2019, 07:23:35 AM
Hi act78723
If running a GUI, the  /home/$USER/.X.d  directory is the place for that. Create a file in .X.d (name does not matter) containing
the command for starting the application like this:
Code: [Select]
AppName Arguments &
If you are not running a GUI, place the command at the end of  /home/$USER/.profile.