Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I'm trying to run a script at login, and this is the way I've found to do it.

I'ved edited /etc/rc.local with a line such as bash /home/me/script.sh.

I've made that script executable.

It doesn't seem that my command is being executed upon login. What steps could I take to debug this?

My distro is Linux Mint 12 running Gnome.

share|improve this question
up vote 3 down vote accepted

/etc/rc.local is executed at boot, not during login. If you want to run something at login, you'd normally put it in ~/.profile or ~/.bash_profile. For GUI applications, Gnome has a Startup Applications tool.

Or did you mean "boot" when you said "login"?

share|improve this answer

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.