Setting a path globally in your ubuntu installation is very easy. There are various way to do this. Here I am explaining how I did it.
- Open your terminal and type in “sudo vim /etc/bash.bashrc”
- Go to the end of the file
- Add “PATH=/path/which/you/want/to/set:$PATH” without quotes.
Thats it. Now close the current terminal and open it up again, it should be working fine. If it doesn’t, try logging out and logging in.
If it still doesn’t work, you can ask me by commenting below.