Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thealphadollar/set_proxy
Entire Proxy Settings: One Script To Set Them All
https://github.com/thealphadollar/set_proxy
automation gnome-settings kgp linux shell-script
Last synced: 2 months ago
JSON representation
Entire Proxy Settings: One Script To Set Them All
- Host: GitHub
- URL: https://github.com/thealphadollar/set_proxy
- Owner: thealphadollar
- License: gpl-3.0
- Created: 2018-05-10T14:16:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-28T18:21:36.000Z (8 months ago)
- Last Synced: 2024-10-11T20:16:31.046Z (3 months ago)
- Topics: automation, gnome-settings, kgp, linux, shell-script
- Language: Shell
- Homepage: http://proxymaster.herokuapp.com
- Size: 740 KB
- Stars: 42
- Watchers: 3
- Forks: 26
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## WEBAPP
ProxyMaster is now available at https://proxymaster.herokuapp.com
# LINUX Proxy
The script in the repository sets/unsets proxy for most frequently used commands in the
Ubuntu/Debian system.- Gnome system wide
- Apt Package Installer
- Environment
- Terminal
- Git
- Docker## How to run
You need to have internet (working without proxy) to download the script: use mobile data and hotspot.
### Using Browser
- Open `http://proxymaster.herokuapp.com` and download the script.
- Follow the instructions on the page to set proxy.### Using Terminal Only
- Open terminal by pressing `Ctrl+Alt+T`
- Install wget.
`sudo apt-get install wget`
- Download the repository.
`wget https://github.com/thealphadollar/set_proxy/archive/master.zip`
- Unzip the file.
`unzip master.zip`
- Change directory to the inflated archive folder.
`cd set_proxy-master/static`
- To set the proxy
`sudo bash set_proxy.sh -h [PROXY HOST] -p [PROXY PORT]`
- Enter `proxy host` (172.16.2.30 for KGP) and `proxy port` (8080 for KGP).
- Voila, proxy set! Preferably restart the system, or at least restart the terminal session.## Going Home?
You can use the same script to remove proxy from your system when going to
home. Just run following command in your terminal and restart system.`sudo bash set_proxy.sh -u`
## Test
Connect to the campus network; wifi or LAN.
- Open `www.google.com` in browser
- Install curl by running `sudo apt-get install curl` in the terminal then run `curl www.google.com` in the terminalIf all the above steps pass, congratulations!
# support
For any queries, please raise an issue or contact github@thealphadollar.
## Contributing
Please read CONTRIBUTING.md guide to know more.
**NOTE**: Before sending your script, please do a syntax check via [ShellCheck](https://www.shellcheck.net/)