Set Proxy to Raspberry Pi or Emulator Qemu

In this post I'm going to explain how to connect internet thorough proxy connection because most universities and colleges have the proxy internet connection so these are the steps we need to do to connect internet through Proxy





1. In Raspberry pi there is two Terminals one is user terminal and another one is root terminal in order make connection setting we need to open root terminal
Start Menu --> Accessories --> Root Terminal

2. in the Terminal navigate into the directory apt.conf.d thorough type the command cd /etc/apt/apt.conf.d


















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

to check ip type command ifconfig on terminal

No comments:

Post a Comment