Linux offers a variety of distributions for people interested in alternative OS. Unfortunately, it would be impossible to cover setup on all of them, however, the guide below should provide a good understanding of system-wide proxy setup.

  1. Open Terminal.
  1. Sign in as a root user.
  1. Open /etc/environment file with nano.
  1. You should now be presented with a text editor window. Configure your proxy:
http_proxy="http://gate.smartproxy.com:7000"
https_proxy="http://gate.smartproxy.com:7000"
no_proxy="localhost"

You can select any other endpoint from the available list and if needed username:password authentication is also available via http://username:[email protected]:7000.

  1. To finish editing selected file hit CTRL + X, then enter Y to save changes and confirm the file location by clicking ENTER.
  1. Finish up by locking the file and rebooting your machine. Proxy changes may disappear if you will skip this step.

To lock the file enter chattr +i /etc/environment to unlock it later on you can use the -i flag instead.