Feb 172010
Set system-wide environment variables in Ubuntu
Answer:
The recommended way now is to edit the file /etc/environment .
# vi /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
Add you key=value pairs into this file and save it.