LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2009, 05:21 PM   #1
targettl
Member
 
Registered: Sep 2009
Location: Launceston
Distribution: Kubuntu
Posts: 84

Rep: Reputation: 16
Set proxy on Ubuntu


I would like to know how to set a system proxy. I did it ages ago but did not document how I did it and google hasn't helped me. I know you can stick an export line in /etc/profile but I know there is a better way of doing it because I have done it in the past. Can anybody help me?
 
Old 11-14-2009, 06:13 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 291Reputation: 291Reputation: 291
On Ubuntu 9.10 try going to: system > preferences > network_proxy. Then choose manual proxy configuration, and enter your details.
I have not tried this since I do not use a proxy. This would seem to be the place to do it though.
 
Old 11-14-2009, 04:26 PM   #3
targettl
Member
 
Registered: Sep 2009
Location: Launceston
Distribution: Kubuntu
Posts: 84

Original Poster
Rep: Reputation: 16
I am talking about a server. In other words there is no graphical user interface to do this. If somebody knew what file your technique edits that may be of some interest.
 
Old 11-14-2009, 04:42 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

Are you referring to this?
Code:
If you're trying to use apt-get from command line, you
can add this to your "/etc/apt/apt.conf"

Acquire::http::Proxy
"http://username:passwd@proxy.domain.com:8080";
Got that one from the Ubuntu lists archive. That's the one you could set for using apt, I'm sure you could do it the same for other apps, but don't know where to put it.

Kind regards,

Eric
 
Old 11-15-2009, 06:26 PM   #5
targettl
Member
 
Registered: Sep 2009
Location: Launceston
Distribution: Kubuntu
Posts: 84

Original Poster
Rep: Reputation: 16
I got my hands on some documentation and discovered that I put it in the apt file. It would be nice if there was a file that all network applications looked at to see if there was a proxy. This would save you having to specify the proxy settings for each applications and it is a better idea then putting it in the /etc/profile in my opinion. Maybe that is a good idea for future Linux products.

As I was saying you can also put it in /etc/profile. You may even be able to put it in rc.local so that the proxy is set for applications like lynx which I don't think have a configuration options for proxies.

Last edited by targettl; 11-15-2009 at 06:39 PM.
 
Old 11-15-2009, 06:58 PM   #6
targettl
Member
 
Registered: Sep 2009
Location: Launceston
Distribution: Kubuntu
Posts: 84

Original Poster
Rep: Reputation: 16
frf
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to set up Proxy on Ubuntu? Spinlock Ubuntu 2 11-18-2006 07:10 PM
Is there a way to set a proxy for all programs? stormrider_may Linux - Networking 2 05-17-2006 11:50 AM
how to set up a proxy server? h3xis Linux - Networking 5 06-15-2005 04:37 PM
Set up Proxy Server sanmadjack Linux - Software 6 02-15-2005 04:13 PM
Proxy set up gonus Linux - Networking 5 03-28-2003 01:50 PM


All times are GMT -5. The time now is 08:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration