To set up proxies on Linux, you need to launch the command line and enter one of the parameters below:
In these lines, proxy-server is the IP address provided to you. And port is the assigned port. As a result, the completed line may look like this:
export https_proxy="https:"http://138.128.58.157:8000"
If authentication is required for the proxy, use the following syntax:
If the password contains special characters, they need to be replaced with ASCII codes. Here is a table where you can find them.
For example, the @ symbol should be replaced with "%40".
Another option is to configure the connection through configuration files. To do this, you need to edit the /etc/environment file with root privileges and add the syntax:
If the proxy does not require authentication, the lines should look like this:
After applying the settings, restart your PC and then start the init process - the main process in the system from which all child processes will receive the proxy.
To do this, enter one of the parameters in the command line: