Skip to content

Instantly share code, notes, and snippets.

@SayanSeth
Last active January 31, 2024 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SayanSeth/f252f08f41ce4c654bc9d451a13e00a4 to your computer and use it in GitHub Desktop.
Save SayanSeth/f252f08f41ce4c654bc9d451a13e00a4 to your computer and use it in GitHub Desktop.
Steps to set proxy in Raspberry Pi running on Raspbian OS

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/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment