Linux
Instructions on how to set up proxy on Linux.
How to set up proxy on Linux
Linux offers a variety of distributions for people interested in alternative OS. Unfortunately, it would be impossible to cover the set up on all of them. This guide will provide a good understanding of a system-wide proxy setup.
- First, open Terminal.
![termina-window.png 586](https://files.readme.io/a50a0cc-termina-window.png)
Linux – Open Terminal
- Then, sign in as a root user.
![login-as-root.png 361](https://files.readme.io/c9baacc-login-as-root.png)
Linux – Sign in
- Next, open
/etc/environment
file withnano
.
![enter-proxy-config.png 505](https://files.readme.io/d8e0c86-enter-proxy-config.png)
Linux – Open a file
- 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. If needed, username:password
authentication is also available via http://username:[email protected]:7000
.
![enter-proxy-details.png 647](https://files.readme.io/35db55d-enter-proxy-details.png)
Linux – Configure your proxy
- To finish editing the selected file, hit CTRL + X, then enter Y to save changes, and confirm the file location by pressing ENTER.
![save-proxy-details.png 583](https://files.readme.io/6bafc2f-save-proxy-details.png)
Linux – Finish editing the file
- Finally, lock the file and reboot your machine. Please note that proxy changes may disappear if you skip this step.
To lock the file, enter chattr +i /etc/environment
. To unlock it later, you can use the -i
flag.
![lock-the-file-and-reboot.png 576](https://files.readme.io/6382275-lock-the-file-and-reboot.png)
Linux – Lock the file
Updated 9 months ago