Last active
July 21, 2019 05:54
-
-
Save estysdesu/be4e23ff2e38fdab8672856152a26f50 to your computer and use it in GitHub Desktop.
[Shell/Apt: proxies] #proxy #sh #apt #debian #ubuntu
This file contains hidden or 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
##### Ubuntu/Debian Apt ##### | |
# /etc/apt/apt.conf.d/proxy.conf | |
# https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-the-proxy-for-apt-for-ubuntu-18-04/ | |
Acquire { | |
HTTP::proxy "<ip-addr>"; | |
HTTPS::proxy "<ip-addr>"; | |
} |
This file contains hidden or 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
#!/usr/bin/env bash | |
##### SYSTEMWIDE PROXY (`wget`, `curl`, etc.) ##### | |
export http_proxy=http://<username>:<password>@<hostname/ip/domain>:<port> | |
export https_proxy=https://<username>:<password>@<hostname/ip/domain>:<port> | |
##### PIP PROXY ##### | |
export PIP_PROXY=http://<username>:<password>@<hostname/ip/domain>:<port> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment