Understanding proxy settings in Ubuntu












0















I'm behind a university proxy and I'm very confused about Ubuntu's proxy settings and I'd love if someone can clarify it for me.



If I look inside /etc/apt/apt.conf it has my custom set proxy as



Acquire::http{Proxy "http://user:pass@proxy:port";};
Acquire::http::proxy "http://user:pass@proxy:port/";
Acquire::https::proxy "https://user:pass@proxy:port/";
Acquire::ftp::proxy "ftp://user:pass@proxy:port/";
Acquire::socks::proxy "socks://user:pass@proxy:port/";


Inside /etc/environment I have



http_proxy="http://proxy:port/"
https_proxy="https://proxy:port/"
ftp_proxy="ftp://proxy:port/"
socks_proxy="socks://proxy:port/"


But if I do this echo $http_proxy then I get



http://differentproxy:differentport


I don't get it from where it's 'echo'ing. Any clarification? I know I can export the $http_proxy variable to the correct proxy but I just want to understand what all files/settings Ubuntu uses for proxies.










share|improve this question














bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Do you run echo $http_proxy from inside your desktop environment or in a virtual terminal (Ctrl+Alt+F1)? This environment variable may be overridden by the DE - e.g. by values in the Proxy Settings in the System Settings.

    – gertvdijk
    Feb 9 '13 at 16:37













  • I ran it from the terminal.

    – user1265125
    Feb 9 '13 at 16:47
















0















I'm behind a university proxy and I'm very confused about Ubuntu's proxy settings and I'd love if someone can clarify it for me.



If I look inside /etc/apt/apt.conf it has my custom set proxy as



Acquire::http{Proxy "http://user:pass@proxy:port";};
Acquire::http::proxy "http://user:pass@proxy:port/";
Acquire::https::proxy "https://user:pass@proxy:port/";
Acquire::ftp::proxy "ftp://user:pass@proxy:port/";
Acquire::socks::proxy "socks://user:pass@proxy:port/";


Inside /etc/environment I have



http_proxy="http://proxy:port/"
https_proxy="https://proxy:port/"
ftp_proxy="ftp://proxy:port/"
socks_proxy="socks://proxy:port/"


But if I do this echo $http_proxy then I get



http://differentproxy:differentport


I don't get it from where it's 'echo'ing. Any clarification? I know I can export the $http_proxy variable to the correct proxy but I just want to understand what all files/settings Ubuntu uses for proxies.










share|improve this question














bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Do you run echo $http_proxy from inside your desktop environment or in a virtual terminal (Ctrl+Alt+F1)? This environment variable may be overridden by the DE - e.g. by values in the Proxy Settings in the System Settings.

    – gertvdijk
    Feb 9 '13 at 16:37













  • I ran it from the terminal.

    – user1265125
    Feb 9 '13 at 16:47














0












0








0








I'm behind a university proxy and I'm very confused about Ubuntu's proxy settings and I'd love if someone can clarify it for me.



If I look inside /etc/apt/apt.conf it has my custom set proxy as



Acquire::http{Proxy "http://user:pass@proxy:port";};
Acquire::http::proxy "http://user:pass@proxy:port/";
Acquire::https::proxy "https://user:pass@proxy:port/";
Acquire::ftp::proxy "ftp://user:pass@proxy:port/";
Acquire::socks::proxy "socks://user:pass@proxy:port/";


Inside /etc/environment I have



http_proxy="http://proxy:port/"
https_proxy="https://proxy:port/"
ftp_proxy="ftp://proxy:port/"
socks_proxy="socks://proxy:port/"


But if I do this echo $http_proxy then I get



http://differentproxy:differentport


I don't get it from where it's 'echo'ing. Any clarification? I know I can export the $http_proxy variable to the correct proxy but I just want to understand what all files/settings Ubuntu uses for proxies.










share|improve this question














I'm behind a university proxy and I'm very confused about Ubuntu's proxy settings and I'd love if someone can clarify it for me.



If I look inside /etc/apt/apt.conf it has my custom set proxy as



Acquire::http{Proxy "http://user:pass@proxy:port";};
Acquire::http::proxy "http://user:pass@proxy:port/";
Acquire::https::proxy "https://user:pass@proxy:port/";
Acquire::ftp::proxy "ftp://user:pass@proxy:port/";
Acquire::socks::proxy "socks://user:pass@proxy:port/";


Inside /etc/environment I have



http_proxy="http://proxy:port/"
https_proxy="https://proxy:port/"
ftp_proxy="ftp://proxy:port/"
socks_proxy="socks://proxy:port/"


But if I do this echo $http_proxy then I get



http://differentproxy:differentport


I don't get it from where it's 'echo'ing. Any clarification? I know I can export the $http_proxy variable to the correct proxy but I just want to understand what all files/settings Ubuntu uses for proxies.







12.04 networking






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 9 '13 at 16:33









user1265125user1265125

15915




15915





bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 5 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Do you run echo $http_proxy from inside your desktop environment or in a virtual terminal (Ctrl+Alt+F1)? This environment variable may be overridden by the DE - e.g. by values in the Proxy Settings in the System Settings.

    – gertvdijk
    Feb 9 '13 at 16:37













  • I ran it from the terminal.

    – user1265125
    Feb 9 '13 at 16:47



















  • Do you run echo $http_proxy from inside your desktop environment or in a virtual terminal (Ctrl+Alt+F1)? This environment variable may be overridden by the DE - e.g. by values in the Proxy Settings in the System Settings.

    – gertvdijk
    Feb 9 '13 at 16:37













  • I ran it from the terminal.

    – user1265125
    Feb 9 '13 at 16:47

















Do you run echo $http_proxy from inside your desktop environment or in a virtual terminal (Ctrl+Alt+F1)? This environment variable may be overridden by the DE - e.g. by values in the Proxy Settings in the System Settings.

– gertvdijk
Feb 9 '13 at 16:37







Do you run echo $http_proxy from inside your desktop environment or in a virtual terminal (Ctrl+Alt+F1)? This environment variable may be overridden by the DE - e.g. by values in the Proxy Settings in the System Settings.

– gertvdijk
Feb 9 '13 at 16:37















I ran it from the terminal.

– user1265125
Feb 9 '13 at 16:47





I ran it from the terminal.

– user1265125
Feb 9 '13 at 16:47










1 Answer
1






active

oldest

votes


















0














Linux Proxy settings are not the most friendly things in the world. The attempts at standardising or creating global settings are not particularly successful.



Global configuration files (Such as /etc/environment) are not read by every application or every time they start, and are specific to Linux distributions.



Applications can use DE (Eg Gnome or KDE) environment settings.



User preferences, eg settings from the shell environment may (and should) override host or system global settings.



The order of priority between different configuration sources are frustratingly difficult to manage, eg System global configuration files, Desktop environment settings, and login script settings.



Application specific settings may override environment settings.



Changing "global" settings often require a restart of the application, sometimes even of the host, so it is more convenient to use the application specific settings in each application.



The end result is that the settings are not particularly dynamic.



In this case the setting for APT and /etc/environment most likely came from a setting you specified during installation.



The values seen in the terminal is quite likely being overridden in your login script or shell profile file, possibly in the users' Gnome global preferences.






share|improve this answer
























  • For what it's worth, I developed ProxyManager (github.com/Tahaan/proxymanager) in an attempt at adressing these issues

    – Johan
    Apr 8 '14 at 8:27











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f253168%2funderstanding-proxy-settings-in-ubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Linux Proxy settings are not the most friendly things in the world. The attempts at standardising or creating global settings are not particularly successful.



Global configuration files (Such as /etc/environment) are not read by every application or every time they start, and are specific to Linux distributions.



Applications can use DE (Eg Gnome or KDE) environment settings.



User preferences, eg settings from the shell environment may (and should) override host or system global settings.



The order of priority between different configuration sources are frustratingly difficult to manage, eg System global configuration files, Desktop environment settings, and login script settings.



Application specific settings may override environment settings.



Changing "global" settings often require a restart of the application, sometimes even of the host, so it is more convenient to use the application specific settings in each application.



The end result is that the settings are not particularly dynamic.



In this case the setting for APT and /etc/environment most likely came from a setting you specified during installation.



The values seen in the terminal is quite likely being overridden in your login script or shell profile file, possibly in the users' Gnome global preferences.






share|improve this answer
























  • For what it's worth, I developed ProxyManager (github.com/Tahaan/proxymanager) in an attempt at adressing these issues

    – Johan
    Apr 8 '14 at 8:27
















0














Linux Proxy settings are not the most friendly things in the world. The attempts at standardising or creating global settings are not particularly successful.



Global configuration files (Such as /etc/environment) are not read by every application or every time they start, and are specific to Linux distributions.



Applications can use DE (Eg Gnome or KDE) environment settings.



User preferences, eg settings from the shell environment may (and should) override host or system global settings.



The order of priority between different configuration sources are frustratingly difficult to manage, eg System global configuration files, Desktop environment settings, and login script settings.



Application specific settings may override environment settings.



Changing "global" settings often require a restart of the application, sometimes even of the host, so it is more convenient to use the application specific settings in each application.



The end result is that the settings are not particularly dynamic.



In this case the setting for APT and /etc/environment most likely came from a setting you specified during installation.



The values seen in the terminal is quite likely being overridden in your login script or shell profile file, possibly in the users' Gnome global preferences.






share|improve this answer
























  • For what it's worth, I developed ProxyManager (github.com/Tahaan/proxymanager) in an attempt at adressing these issues

    – Johan
    Apr 8 '14 at 8:27














0












0








0







Linux Proxy settings are not the most friendly things in the world. The attempts at standardising or creating global settings are not particularly successful.



Global configuration files (Such as /etc/environment) are not read by every application or every time they start, and are specific to Linux distributions.



Applications can use DE (Eg Gnome or KDE) environment settings.



User preferences, eg settings from the shell environment may (and should) override host or system global settings.



The order of priority between different configuration sources are frustratingly difficult to manage, eg System global configuration files, Desktop environment settings, and login script settings.



Application specific settings may override environment settings.



Changing "global" settings often require a restart of the application, sometimes even of the host, so it is more convenient to use the application specific settings in each application.



The end result is that the settings are not particularly dynamic.



In this case the setting for APT and /etc/environment most likely came from a setting you specified during installation.



The values seen in the terminal is quite likely being overridden in your login script or shell profile file, possibly in the users' Gnome global preferences.






share|improve this answer













Linux Proxy settings are not the most friendly things in the world. The attempts at standardising or creating global settings are not particularly successful.



Global configuration files (Such as /etc/environment) are not read by every application or every time they start, and are specific to Linux distributions.



Applications can use DE (Eg Gnome or KDE) environment settings.



User preferences, eg settings from the shell environment may (and should) override host or system global settings.



The order of priority between different configuration sources are frustratingly difficult to manage, eg System global configuration files, Desktop environment settings, and login script settings.



Application specific settings may override environment settings.



Changing "global" settings often require a restart of the application, sometimes even of the host, so it is more convenient to use the application specific settings in each application.



The end result is that the settings are not particularly dynamic.



In this case the setting for APT and /etc/environment most likely came from a setting you specified during installation.



The values seen in the terminal is quite likely being overridden in your login script or shell profile file, possibly in the users' Gnome global preferences.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 8 '14 at 8:26









JohanJohan

1746




1746













  • For what it's worth, I developed ProxyManager (github.com/Tahaan/proxymanager) in an attempt at adressing these issues

    – Johan
    Apr 8 '14 at 8:27



















  • For what it's worth, I developed ProxyManager (github.com/Tahaan/proxymanager) in an attempt at adressing these issues

    – Johan
    Apr 8 '14 at 8:27

















For what it's worth, I developed ProxyManager (github.com/Tahaan/proxymanager) in an attempt at adressing these issues

– Johan
Apr 8 '14 at 8:27





For what it's worth, I developed ProxyManager (github.com/Tahaan/proxymanager) in an attempt at adressing these issues

– Johan
Apr 8 '14 at 8:27


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f253168%2funderstanding-proxy-settings-in-ubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局