LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-30-2006, 05:40 PM   #1
matthewhardwick
Member
 
Registered: Oct 2003
Location: CA
Posts: 165

Rep: Reputation: 30
Setting up proxy on CLI


New to Ubuntu, but here is the story,

I have installed Ubuntu Server, with LAMP... Want to install some more packages from the repository, but am behind a proxy and the only way to get to the internet is to go through that proxy server... SOOOO > can anyone tell me how to setup apt-get to use the proxy server on my network.

Thanks in advance.

Matt,
 
Old 07-30-2006, 06:15 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Does apt-get have a .conf file in /etc that you can set this in? For example, I use slackpkg sometimes (Slackware) and in /etc/slackpkg/slackpkg.conf is a WGETFLAGS variable for passing options to wget:
Code:
WGETFLAGS="--passive-ftp --proxy-user=username --proxy-password=somepass"
You can also set environment variables that apps can check. For example:
Code:
export http_proxy=http://proxy.somedomain.com:3128
export ftp_proxy=http://proxy.somedomain.com:3128
If apt-get uses wget but doesn't provide access to wget flags or use environment variables you can modify /etc/wgetrc to add proxy variables. You can add entries there for http_proxy and ftp_proxy.

It's not Ubuntu specific, but I hope that helps...
 
Old 08-03-2006, 08:05 AM   #3
matthewhardwick
Member
 
Registered: Oct 2003
Location: CA
Posts: 165

Original Poster
Rep: Reputation: 30
OK thanks, I will give it a go
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Static IP via CLI? carlosinfl Linux - Networking 9 06-13-2005 07:45 PM
Proxy Setting pakuson Linux - Networking 2 08-13-2004 06:54 AM
setting proxy precioso77 Linux - Networking 1 09-14-2003 07:22 AM
setting up proxy Nokturnity Linux - Networking 3 07-23-2003 02:26 AM
Setting default gateway from CLI? Pcghost Linux - Networking 1 03-20-2003 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration