Maio72
Posts: 1
Joined: Tue Aug 04, 2015 3:39 pm

how set automatic detection of proxy via command line

Tue Aug 04, 2015 3:46 pm

hi all,
I've a problem: I'm using my raspi pi 2 with Raspbian in an environment where some days ago the IT has defined a proxy file in order to connect to internet, but I'm able to navigate via browser if I check "Auto-detect proxy settings for this network".
How I can reproduce this via command line?
I'm not able to run apt-get -update or similar...

thanks a lot
Maio

User avatar
framp
Posts: 34
Joined: Sun Jan 27, 2013 7:03 pm
Location: Stuttgart, Germany
Contact: Website

Re: how set automatic detection of proxy via command line

Mon Aug 10, 2015 9:03 pm

Create a new file in /etc/apt/apt.conf.d/ and name it "10proxy" and insert

Code: Select all

Acquire::http::Proxy "http://proxyaddress:proxyport";
That's no autodetection - but that way you can use a proxy with apt.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." Linus Torvalds, 28.9.2003

Return to “Raspberry Pi OS”