Setup Proxy for terminals and more difficult places! (which are not directly accessible!)
Updates to this repo is welcome! Please create a PR to merge changes, or open an Issue to help us add more data to this repo!
Settings > Network & Internet > Proxy > Manual proxy setup > Edit
- Toggle Use a proxy server to On
- Proxy IP address -
172.31.102.29
- Port -
3128
- Click Save
Settings > Network & Internet > Proxy > Manual proxy setup
- Toggle Use a proxy server to On
- Address -
172.31.102.29
- Port -
3128
- Click Save
To run different applications on windows you have to install PROXIFIER
- Download & Install Proxifier - "https://www.proxifier.com/download/"
- Click on the Profile tab and click on Proxy Server option.
- Click on Add button and fill the following details, Password is "edcguest", and press OK:
- After that open Profile tab and click on Proxification Rules .
- Add the Application you want to use with Proxy server by clicking on Add button.
- You have to select the .exe file which you can find in Program files folder in C drive .
Settings > Network > Network Proxy
- Click on Gear icon
- Choose Manual
- HTTP Proxy -
172.31.102.29
&3128
- HTTPS Proxy -
172.31.102.29
&3128
- FTP Proxy -
172.31.102.29
&3128
- Sockets Host -
172.31.102.29
&3128
- Close the pop-up.
Open command prompt (in Windows) and run the following commands one by one
git config --global --unset-all https.proxy
git config --global --unset-all http.proxy
git config --global --add http.proxy http://edcguest:edcguest@172.31.102.29:3128
git config --global --add https.proxy http://edcguest:edcguest@172.31.102.29:3128
Open terminal (in Linux) and follow the steps below:
- Run
sudo -i
- Enter your root password (password is not visible while typing in linux terminal)
- Run
gedit /etc/apt/apt.conf
- Write
Acquire::http::Proxy "http://edcguest:edcguest@172.31.102.29:3128";
and Save and then Close the text editor - Run
gedit /etc/bash.bashrc
- Write the following at the bottom of the file.
export http_proxy=http://edcguest:edcguest@172.31.102.29:3128/
export ftp_proxy=http://edcguest:edcguest@172.31.102.29:3128/
export https_proxy=https://edcguest:edcguest@172.31.102.29:3128/
- Save and Close the text editor.
- Close the terminal.
Open MSYS2 MSYS prompt (in Windows) and run the following commands one by one
export HTTP_PROXY="edcguest:edcguest@172.31.102.29:3128"
export HTTPS_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY
vim .bashrc
Opens the bashrc file.- Press
i
and Add the following lines at the end of the file.
export HTTP_PROXY="edcguest:edcguest@172.31.100.25:3128"
export HTTPS_PROXY=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTP_PROXY
- Press
Esc
and write:wq
and pressEnter
.
Run these commands one by one in command prompt. Make sure Node is Installed and added to path.
npm config set proxy http://edcguest:edcguest@172.31.102.29:3128
npm config set https-proxy http://edcguest:edcguest@172.31.102.29:3128
More help here.
To remove proxy configuration from node, run the following commands
npm config rm proxy
npm config rm https-proxy
npm config --global rm proxy
npm config --global rm https-proxy
Installing python packages also need to have proxy setup. You can install packages behind proxy via the following hack.
pip install --proxy http://<usr_name>:<password>@<proxyserver_name>:<port#> <pkg_name>
Eg.
pip install --proxy http://edcguest:edcguest@172.31.102.29:3128 djangorestframework
Do we need to include this long text each time?
It is recommended, as you might need to sometimes install package normally.
To install requirements.txt
, write the following
pip install --proxy http://<usr_name>@<proxyserver_name>:<port#> requirements.txt
Eg.
pip install --proxy http://edcguest:edcguest@172.31.102.29:3128 requirements.txt