sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
BigTimer
Post subject: How do I configure apt to use a proxy?  PostPosted: May 15, 2008 - 09:34 AM



Joined: May 15, 2008
Posts: 16

Status: Offline
Hello everybody,

I connect to the internet from my office LAN via a proxy server; so far I've been unable to use apt to download/inst all programs because apparently it thinks I have a direct connection to the internet.

There must be a configuration file I can adjust; what's the name of the file and how do I modify it?

(Using the 'export' command on the command line - as suggested in another thread - doesn't work for me).

Thank you
 
 View user's profile Send private message  
Reply with quote Back to top
rh
Post subject: How do I configure apt to use a proxy?  PostPosted: May 15, 2008 - 09:44 AM



Joined: Dec 11, 2006
Posts: 114

Status: Offline
simply append this line to your /etc/apt/apt.conf:

Acquire::http::Proxy "http://YourProxyAddress:YourProxyPort/";

or

Acquire::ftp::Proxy "http://YourProxyAddress:YourProxyPort/";

and then apt-get update works fine.

_________________
You've yet to have your finest hour ...
Beste Grüße, rh
 
 View user's profile Send private message  
Reply with quote Back to top
BigTimer
Post subject:   PostPosted: May 15, 2008 - 10:23 AM



Joined: May 15, 2008
Posts: 16

Status: Offline
Thanks rh.

It's all good now.
 
 View user's profile Send private message  
Reply with quote Back to top
cleary
Post subject:   PostPosted: May 21, 2008 - 02:29 AM



Joined: Nov 27, 2006
Posts: 524
Location: Griffith NSW Australia
Status: Offline
a more generic method is to use the http_proxy env variable:

export http_proxy=http://<username>:<password>@<server>:<port>

other cli apps will reference this also (wget for example)
 
 View user's profile Send private message  
Reply with quote Back to top
OnJen
Post subject:   PostPosted: Sep 05, 2008 - 03:31 PM



Joined: Aug 07, 2008
Posts: 4

Status: Offline
or to save it write: export http_proxy=http://<username>:<password>@<server>:<port> into /etc/bash.bashrc
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio