I just borrowed a Raspberry Pi 2 from my friend.
As my institute has a proxy server with user authentication, I can't access the internet via my Pi. I installed Raspbian Jessie.
I need help to solve this
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityI just borrowed a Raspberry Pi 2 from my friend.
As my institute has a proxy server with user authentication, I can't access the internet via my Pi. I installed Raspbian Jessie.
I need help to solve this
If you have to authenticate, add the following lines to the following files:
For general browsing, in /etc/environment
add
export http_proxy="http://username:password@host:port/"
For apt-get
, in /etc/apt/apt.conf.d/10proxy
add
Acquire::http::Proxy "http://username:password@host:port";
If you do not have to authenticate, add the following lines to the following files:
For general browsing, in /etc/environment
add
export http_proxy="http://host:port/"
For apt-get
, in /etc/apt/apt.conf.d/10proxy
add
Acquire::http::Proxy "http://host:port/";
Source: Connect Raspi to a Proxy
apt
, telnet, what exactly? If you tried this already, then why did you not say so in your question, in order to save people having to fish around trying to understand exactly what your issue is? If you are not more specific then your question will be closed, as it is very unclear what you are asking.
Jun 20, 2017 at 6:52
To connect proxy on raspi you need to add proxy at 3 places namely
/etc/apt/apt.conf.d/10proxy
and then type
Acquire::http::Proxy
“http://username:password@proxy_server_address:port/”;
/etc/environment
and then type
export http_proxy=”http://username:password@proxy_server_address:port/”
~/.bashrc
and then type
export http_proxy=http://username:password@proxy_server_address:port
Source: TheAILearner, Connecting Raspberry pi to proxy server