To run a command right after you boot, before anybody logs in, add the command to the file /etc/rc.local:

  1. Open a Terminal.
  2. Become root: su -
  3. Open the file in your favorite text editor: vi /etc/rc.local
  4. Add the command that you want to run to the end of the file, on its own line.
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post PHP code. You should include <?php ?> tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.
Navigation
Syndicate
Syndicate content
Share/Save