Open the terminal and enter:
sudo gedit/etc/environment.
- 2
Enter the user password. The password entered is not visible at this time.
- 3
, at the end of Path= "....", add:
:/opt/embedsky/4.3.3/bin
Where/opt/embedsky/4.3.3/bin is the path to the environment variable you need to set.
- 4
To make it effective immediately, execute at the terminal:
Source/etc/environment
or restart your computer.
END
Setting the current User environment variable
Open the terminal and enter:
sudo gedit ~/.bashrc.
Enter the user password. The password entered is not visible at this time.
The preceding steps open the. bashrc file and add it at the end:
Export Path=/opt/embedsky/4.3.3/bin: $PATH
Where/opt/embedsky/4.3.3/bin is the path to the environment variable you need to set.
- 4
To make it effective immediately, execute at the terminal:
SOURCE ~/.BASHRC
Ubuntu Setting Environment Variables 16.04