Tag Archives: proxy

Connecting Raspberry pi to proxy server

In this tutorial, I am going to tell you how to connect raspberry pi to the proxy server.

As most of the colleges have internet connection through local ethernet having its own proxy settings so for downloading packages on raspi you have to set up local proxy settings.

Here are the simple steps for connecting raspi to the proxy server.

  1. Open Root Terminal (Ctrl+Alt+T) and then type:

    This command creates a file named 10proxy and then add proxy settings to this file by typing:

    and save it. You need to add in the exact format as written above (do not leave any semicolon or space).
  2. Again in Root Terminal  type:

    then add proxy settings to this file by typing:

    and save it. If you want to know more about environment variables follow this link https://help.ubuntu.com/community/EnvironmentVariables
  3. Again in Root Terminal type:

    This opens bash file scroll to the end of the file and type:

    and save it. If you want to know more about .bashrc follow this link https://askubuntu.com/questions/540683/what-is-a-bashrc-file-and-what-does-it-do
  4. At last in Root Terminal type
  5. In order to download the file using sudo, update sudoers. First, open sudoers using

    Then add the following line so that sudo is able to use the above environment variables

    Reboot pi for the changes to work.
  6. Then run the following command in the Root Terminal for checking if the internet is working

Hope this helps. Enjoy!!!