Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: Proxy automation script! #61

Open
Assignees
Labels
enhancementNew feature or request
@akshaykhoje

Description

Yes, my shell script is an automation script for system-wide proxy setup on linux installed machines.

I have been wandering why we at our college are not able to access the internet from within the terminal when behind a proxy server. Henceforth we had to switch between personal wifi and the college proxy every now and then.

I'd like this issue be solved by writing a few simple command from the terminal to toggle the proxy on and off.

The current way of tackling this problem is to manually comment out all the config files for whom one sets the proxy. I would like this to be automated with as minimum efforts as possible.

I HAVE THE SOLUTION DONE MYSELF!
A month ago I wrote this shell script which does the above job by just a couple commands.
To turn the proxy on enter the commands:
myproxy on
source /etc/profile.d/proxy.sh

To turn off:
myproxy off
source /etc/profile.d/unset_proxy.sh

You can check the script here

PLEASE ASSIGN ME THIS FEATURE!
I SUPPOSE THIS WILL ADD VALUE TO THE BOOK AND MIGHT SERVE A REAL LIFE PURPOSE FOR LEARNERS!

THANK YOU😇

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /