Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is the command I want to be run at startup:

VBoxHeadless -s "pfsense"

as user "enedene".
Could someone give me step by step instructions?

share|improve this question
up vote 10 down vote accepted

Try this:

  1. Edit /etc/rc.local.
  2. Add this to the bottom of the file:

    su -c 'VBoxHeadless -s "pfsense"' enedene &
share|improve this answer
Thank you, this does the job. – enedene Dec 26 '11 at 14:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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