I have made a python script to set the proxy settings in Ubuntu
Assume the following setting, you need to replace at relevant places
- proxy_address 172.16.26.214
- proxy_port 3128
- proxy_username king
- proxy_password queen
I have made a video which takes you through all the steps:
Youtube - Setting Simple and Authenticated Proxy Settings in Ubuntu 12 13 14 and above 100% Working.
Steps are Detailed here:
- First click on Dash
- In Search Box Enter "Proxy" (Without Quotes)
- Click on "Network" under Applications
- Select "Network Proxy"
- Select Manual
- Enter the proxy address and proxy port
- Apply. Enter your system password to confirm
Download the script setproxy.py
https://dl.dropboxusercontent.com/u/397422/setproxy.py
OR
https://copy.com/ezPIBHwKhg3Ki8f6
Let’s say you have saved the setproxy.py
in the Downloads
folder
- Open terminal
Type
- cd ~/Downloads
General Command:
sudo python setproxy.py proxy_address proxy_port proxy_username proxy_password
For our example
- sudo python setproxy.py
172.16.26.214
3128
king
queen
In case of simple proxy Without authentication the command is:
- sudo python setproxy.py
172.16.26.214
3128
In case you have python 3
and above run using python2.7
so the commands will look like
- sudo python2.7 setproxy.py
172.16.26.214
3128
- sudo python2.7 setproxy.py
172.16.26.214
3128
king
queen