Raspberry Pi Proxy Setup
Steps to set proxy in Raspberry Pi running on Raspbian OS
Navigate to the following folder as follows:
cd /etc/apt/apt.conf.d
Create a file called 10proxy:
sudo nano 10proxy
Without authentication add this line:
Acquire::http::Proxy "http://proxyaddress:proxyport/";
Or with authentication add this line:
Acquire::http::Proxy "http://username:password@proxyaddress:proxyport/";
Make sure to include the / at the end.
For everything else:
Edit this file:
sudo nano /etc/environment
Add this line (with authentication):
export http_proxy="http://username:password@host:port/"
Or without authentication:
export http_proxy="http://host:port/"