You can set a proxy either from the GUI or from the command line. We will see how we can set a proxy from the command line. Open the /etc/environment file with your favorite text editor and add the following lines:
http_proxy="http://ip:port"
https_proxy="http://ip:port"
ftp_proxy="ip:port"
no_proxy="localhost"