Forked from anonymous/ubuntuAndProxyConfiguration
Last active
December 17, 2015 18:59
-
-
Save alphabraga/5656907 to your computer and use it in GitHub Desktop.
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
#This is an simple proxy configuration for Ubuntu (tested only in Ubuntu) | |
#With this configuration you will shurf on web, use apt or aptitude, use curl | |
#and use the composer (getcomposer.org) | |
#If you run some command with sudo you can get some trouble | |
#If you are in trouble use sudo -E | |
#In ~/.bashrc put these configs | |
#Just for proxy work correct | |
export http_proxy="http://username:password@proxy.domain.com:8080" | |
export https_proxy="https://username:password@proxy.domain.com:8080" | |
export HTTP_PROXY="http://username:password@proxy.domain.com:8080" | |
export HTTPS_PROXY="https://username:password@proxy.domain.com:8080" | |
export FTP_PROXY="ftp://username:password@proxy.domain.com:8080" | |
#For composer work | |
#But remenber these two configs below depends of proxy configurations, in some cases change to true | |
#See https://github.com/composer/composer/issues/1839 | |
export HTTP_PROXY_REQUEST_FULLURI=false | |
export HTTPS_PROXY_REQUEST_FULLURI=false | |
#For npm work | |
export npm_config_proxy="http://username:password@proxy.tjma.jus.br:3128" | |
export npm_config_https_proxy="http://username:password@proxy.tjma.jus.br:3128" | |
#Alias for curl. Only Because of proxy | |
alias curl="curl --proxy http://username:password@proxy.domain.com:8080" | |
#if you want by pass the proxy | |
export bypassproxy="ssh user@www.yourserver.com -D8080 -C &" | |
#In /etc/apt/apt.conf put these configs | |
Acquire::http::proxy "http://username:password@proxy.domain.com:8080/"; | |
Acquire::http::Proxy "http://username:password@proxy.domain.com:8080/"; | |
Acquire::https::proxy "https://username:password@proxy.domain.com:8080/"; | |
Acquire::ftp::proxy "ftp://username:password@proxy.domain.com:8080/"; | |
Acquire::socks::proxy "socks://username:password@proxy.domain.com:8080/"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment