Ask Your Question

run a shell script at boot

asked 2013-12-06 10:39:01 -0600

schafer99 gravatar image

updated 2014-09-28 19:18:31 -0600

mether gravatar image

I wish to run some commands at boot, mount some file systems, execute some commands (shell scripts), open a few terminal windows, and bring up a few apps, all as the super user. I could use a pointer to where I can find out how to do this in the Fedora 17 platform. Yes I am a novice. Please help

edit retag flag offensive close merge delete

1 Answer

Sort by ┬╗ oldest newest most voted

answered 2013-12-06 15:17:02 -0600

sideburns gravatar image

First, Fedora 17 is long past its End of Life; you'd be much better using either F18 or, even better, 19, because it will still be supported after F20 comes out.

Second, all partitions listed in /etc/fstab that don't include noauto get mounted as part of boot, so that you don't have to do it yourself. Third, you can't open terminal windows until X is running, which doesn't happen until you've logged in, and the same goes for any apps that need a GUI. If you want any apps running that don't require X, and aren't automatically started by systemctl, you can always create a shell script, make it executable and include it in /etc/rc.local. Then, you need to make sure that rc-local.service is active so that your script gets run at boot.

edit flag offensive delete link more

Question Tools


Asked: 2013-12-06 10:39:01 -0600

Seen: 1,780 times

Last updated: Dec 06 '13