How to permanently set an environment variable [duplicate]
Solution 1:
- Open a terminal window with Ctrl+Alt+T.
-
Open the file for editing with
gedit ~/.profile
Add the command to the bottom of the file.
Save and close gedit.
Log out and log in again.