Last active
August 29, 2015 14:01
-
-
Save dfasolin/b1565805d1c67c6f4140 to your computer and use it in GitHub Desktop.
Configure Proxy Settings for the Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configure the proxy settings in the .bashrc | |
If you want set the proxy for all the users you can do it in the system wide .bashrc file. | |
sudo vi /etc/bash.bashrc | |
#proxy settings | |
export http_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/ | |
export ftp_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/ | |
Additionally if you want APT to use a proxy server you can configure it in the /etc/apt/apt.conf configuration file. | |
sudo vi /etc/apt/apt.conf | |
# | |
# Proxy configuration | |
# | |
Acquire::http::Proxy "http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT"; | |
Configuring GIT | |
vi ~/.gitconfig | |
[http] | |
proxy = http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT | |
[https] | |
proxy = http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment