Could any one please suggest me on which boot level or /etc/rc.x folder should I include my shell script so that it runs automatically immediately after login or just before the system prompts for login in LTS 12.04
Thanks
Could any one please suggest me on which boot level or /etc/rc.x folder should I include my shell script so that it runs automatically immediately after login or just before the system prompts for login in LTS 12.04
Thanks
You may have it to run at runlevel 3, according to this http://en.wikipedia.org/wiki/Runlevel#Ubuntu.
I guess you can be sure to do the right thing not creating these links by yourself, but by using ad-hoc, standard programs. The usual command-line one is update-rc.d. Its manual page in section 8 of the manual is rich of details.
After login with your user add your script in ~/.bashrc
file to run your script whenever the user login.
Give execute permission on file.
sudo chmod +x script.sh
If you want to add these script for all user copy your script in /etc/profile.d/
directory.