I assume you are using the bash shell.
For a user you can set them in ~/.bashrc or ~/.bash_profile.
For system wide, set them in /etc/profile.
What environment variables are you trying to set, and then we can give you the lines to add to these files. Also, what distro are you using - add it to your profile, it helps us to help you.