Originally posted by Boow
Well since I don't know your distro I can't tell you exactly where to put it but can point you to where to look. Most distros have a rc script where you can't put stuff you want to run at startup. Look in /etc/rc.d or /etc/init.d for something like rc.local or *.local.
No, that will only set up the environment for the startup process and since it is run last, won't do anything for you.
To set the environment variables for all users logging in system wide, you could put it into /etc/profile. Otherwise, the user's .bashrc is fine.