Skip to content

Instantly share code, notes, and snippets.

@estysdesu
Last active July 21, 2019 05:54
Show Gist options
  • Save estysdesu/be4e23ff2e38fdab8672856152a26f50 to your computer and use it in GitHub Desktop.
Save estysdesu/be4e23ff2e38fdab8672856152a26f50 to your computer and use it in GitHub Desktop.
[Shell/Apt: proxies] #proxy #sh #apt #debian #ubuntu
##### 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>";
}
#!/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