Skip to content

Instantly share code, notes, and snippets.

@dfasolin
Last active August 29, 2015 14:01
Show Gist options
  • Save dfasolin/b1565805d1c67c6f4140 to your computer and use it in GitHub Desktop.
Save dfasolin/b1565805d1c67c6f4140 to your computer and use it in GitHub Desktop.
Configure Proxy Settings for the Linux
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