Adding Local Internet Proxy Settings to Raspberry Pi




About: I am vamsi krishna. I am studying B.Tech final year ECE in RGUKT NUZVID. I am very enthusiastic about learning new things. I am very eager to learn from your suggestions.

In this tutorial I am going to tell you how to connect internet through proxy. Why I am interested in this is because most colleges has internet connection through local ethernet and ethernet has it's own proxy setting and user had to enter their passwords for internet access. In raspberry pi for downloading packages through local internet having proxy through terminal we have to setup the local proxy settings and username,password on our own.

For this you need Raspberry pi , internet connection and Monitor.

And in my next post I will tell you how to control raspberry pi without monitor using Putty and Xming.

Step 1: Setuping Local Proxy..

Steps ::

1. Open Terminal and Go to the root account or otherwise open Root Terminal directly.

2. Then Navigate to /etc/apt/apt.conf.d/ folder we can go to that folder through cd /etc/apt/apt.conf.d command in root terminal.

3. Then create and open 10proxy file (actually this file is not exist so we have to create the file) through command nano 10proxy (this is the command for this creating and opening the 10proxy file in Terminal).

4. Then add the Acquire::http::Proxy "http://username:password@proxy_server_address:port"; line ( you have to add the sentence in bold) and Save it .

( Example :The format is Acquire::http::Proxy "http://username:password@"; the format is accroding to you local proxy)

5. Then Close the Terminal . For checking Type sudo apt-get update in terminal . Then you get the internet access in raspberry to download the packages.

Questions ::

If you have any questions regarding Raspberry pi you can contact through my mail id "" or facebook id: krishna1c

Thank you.....



    • Arduino Contest 2019

      Arduino Contest 2019
    • Tape Contest

      Tape Contest
    • Trash to Treasure

      Trash to Treasure

    9 Discussions


    2 years ago

    Not very useful my friend.


    3 years ago

    Thanks that works for apt but to get other apps to work I needed to set the env variable http_proxy unfortunately not all apps use this but quite a few do.

    Add the following lines to the file /etc/environment

    export http_proxy="http://username:password@host:port/"


    3 years ago on Introduction

    Hi, this proxy setting only for apt, right?

    How about global proxy? etc: wget

    Is http_proxy ENV work?


    3 years ago on Introduction

    I followed all the following steps but i am still not getting internet connection

    please is there any other way???