LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2012, 12:17 AM   #1
esornep
Member
 
Registered: Jun 2012
Posts: 48

Rep: Reputation: Disabled
Proxy settings in Ubuntu (system wide)


Hello,
In our college the scenario is that we have a proxy for our connection.We connect to the internet using this proxy for this we change the settings in the browser and use the internet.So we dont get the updates neither can we download anything from the net through the terminal. So how can we change the system wide proxy settings to download the apps or any other thing from the terminal. Thanks
 
Old 07-16-2012, 01:59 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 13,004

Rep: Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651Reputation: 1651
There is not easy way to ensure that all applications use the proxy. Some programs need to have the proxy set in some configuration for that application. Most newer internet aware applications can use the system wide proxy settings. A proxy set by proxy.pac or wdat wouldn't usually work on the older apps. The java pac file needs to be set to a common proxy and port.

Example https://help.ubuntu.com/community/AptGet/Howto

If we knew more about this proxy then we might have a better answer. Some proxy authentication may even require an AD logon.
 
Old 07-16-2012, 02:18 PM   #3
dmdeb
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian
Posts: 45

Rep: Reputation: 6
Quote:
Originally Posted by esornep View Post
Hello,
In our college the scenario is that we have a proxy for our connection.We connect to the internet using this proxy for this we change the settings in the browser and use the internet.So we dont get the updates neither can we download anything from the net through the terminal. So how can we change the system wide proxy settings to download the apps or any other thing from the terminal. Thanks
Hi esornep,

many standard applications, especially terminal-centered ones like the lynx/links/links2 browsers, respect the environment variables http_proxy and ftp_proxy, etc.
To try it out, simply enter

export http_proxy="http://your.proxy.server:8080/"

(with your real proxy URL, of course) in the terminal and launch the application in question.

Regards
dmdeb
 
  


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
[SOLVED] How do I ... achieve system-wide proxy settings hgriggs Slackware 11 09-13-2012 07:05 PM
Proxy settings in Ubuntu (system wide) esornep Linux - Newbie 4 07-16-2012 04:10 PM
How to find default system proxy settings in UBUNTU TAN Programming 1 09-16-2011 03:59 AM
How do I setup a proxy system wide? dragos240 Linux - Networking 2 08-16-2011 01:58 PM
[SOLVED] Thunar system-wide settings Linux.tar.gz Linux - Software 2 03-29-2010 04:05 AM


All times are GMT -5. The time now is 03:33 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