Adding Local Internet Proxy Settings to Raspberry Pi





Introduction: Adding Local Internet Proxy Settings to Raspberry Pi

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.....



    • Science of Cooking

      Science of Cooking
    • Trash to Treasure

      Trash to Treasure
    • Paper Contest 2018

      Paper Contest 2018

    We have a be nice policy.
    Please be positive and constructive.




    Not very useful my friend.

    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/"

    Hi, this proxy setting only for apt, right?

    How about global proxy? etc: wget

    Is http_proxy ENV work?

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

    please is there any other way???

    Thanks for the share.

    Sorry, I can't get you..

    Can you repeat the question??

    Interesting. Thanks for sharing.