how to setup environment variables in ubuntu code example Example: how to set environment variable in ubuntu sudo -H gedit /etc/environment