loading

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@10.0.0.1:8080"; 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 "vamsi.patchava@gmail.com" or facebook id: krishna1c

Thank you.....

<p>Not very useful my friend. </p>
<p>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.</p><p>Add the following lines to the file /etc/environment<br><br>export http_proxy=&quot;http://username:password@host:port/&quot;</p>
<p>Hi, this proxy setting only for apt, right?</p><p>How about global proxy? etc: wget</p><p>Is http_proxy ENV work?</p>
<p>I followed all the following steps but i am still not getting internet connection</p><p>please is there any other way???</p>
<p>Thanks for the share.</p>
<p>how could i find the proxy address</p>
<p>Sorry, I can't get you..</p><p>Can you repeat the question??</p>
<p>Interesting. Thanks for sharing.</p>

About This Instructable

52,101views

12favorites

License:

Bio: 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 ... More »
More by vpatchava:Adding local internet proxy settings to Raspberry pi 
Add instructable to: