Set environment variable permanently on Ubuntu

Posted by Vasilis on April 10, 2020

Run the command

sudo -H gedit /etc/environment

Set the variable like that

VARIABLE="value"

To take effect the changes you have to logout as user and login again.