Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Configure proxy
- ## Proxy for palemoon
- - **Tools** -> **Advanced** -> **Network**
- - Open **Settings** in **Connection** section
- - Click **Automatic proxy configuration URL**
- - Enter url of the corresponding PAC file
- ## gitconfig
- In a **.gitconfig** in **$HOME**:
- ```bash
- [http]
- proxy = http://NNI:mdp@addr_proxy:port
- ```
- ## Environment variables
- In **/etc/profile.d/proxy.sh** :
- ```bash
- # if the file does not exist, create it
- #!/bin/bash
- export http_proxy="http://<NNI>:<password>@<proxy.com>:<port>"
- export https_proxy="http://<NNI>:<password>@<proxy.com>:<port>"
- export HTTP_PROXY="$http_proxy"
- export HTTPS_PROXY="$https_proxy"
- ```
- In **/etc/profile** :
- ```bash
- # at the end of the file
- if [ -f /etc/profile.d/proxy.sh ]; then
- . /etc/profile.d/proxy.sh
- fi
- ```
- Reload. In Archlinux, `$mod+r`.
- ## Docker
- ```bash
- # if /etc/systemd/system/docker.service.d is not present
- mkdir -p /etc/systemd/system/docker.service.d
- cd /etc/systemd/system/docker.service.d
- # edit/create http-proxy.conf
- sudo vim http-proxy.conf
- # inside http-proxy
- # [Service]
- # Environment="HTTP_PROXY=http://<NNI>:<password>@<proxy.com>:<port>"
- # Environment="NO_PROXY=localhost,127.0.0.0/8,rte-france.com"
- # save the file, then restart docker
- sudo systemctl daemon-reload
- sudo systemctl restart docker
- ```
- ## pip
- ```bash
- # in ${HOME}/.config/pip (user) or in /etc/ (system wide)
- touch pip.conf
- # inside pip.conf
- # [global]
- # proxy = http://<NNI>:<password>@<proxy.com>:<port>
- # or for one time use
- pip --proxy http://<NNI>:<password>@<proxy.com>:<port> install <package>
- ```
- ## OSS Review Toolkit
- ```bash
- # In docker/build/Dockerfile
- # Add the environment variables before RUN
- #
- # FROM ...
- # ENV http_proxy="http://<NNI>:<password>@<proxy>:<port>
- # ENV https_proxy="https://...."
- ```
- ## SVN
- ```bash
- # in ~/.subversion/servers
- # search for http-proxy and modify it to satisfy your needs
- ```
- ## Mercurial
- ```bash
- cd ~
- vim .hgrc
- # [http_proxy]
- # host=<proxy>:<port>
- # user=<NNI>
- # passwd=<password>
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement