GithubHelp home page GithubHelp logo

sysproxy's Introduction

Introduction / 介绍

This is a script to enable/disable system-wide proxy in ubuntu.
一个开启/关闭系统代理的脚本。试验环境基于Ubuntu。

Install / 安装

Put this script somewhere handy so that you can execute it easily.
把这个脚本放在你随时都能够得着的地方~
Don't forget to give it +x permission.
记得给它+x的运行权限。

sudo ug+x sysproxy

Configuration / 设定

Change the following variable to the proxy port you want.
把下面的变量值改为你所需要设定的端口。

PROXY_PORT=1081 # Proxy http,https,ftp,socks to the same port.

Usage / 用法

  • To enable proxy / 启用代理:
sysproxy enable
  • To disable proxy / 禁用代理:
sysproxy disable
  • To check proxy status / 检查代理状态:
sysproxy status/state
  • -e option / 使用系统环境选项:
    Optional. Change system environment directly. Notice that in this way a reboot or logout is required.
    可选。直接改变系统环境变量。注意这种方式将在重启后生效。
sysproxy enable/disable/status/state -e/envir/environment

Author / 作者

Donny

sysproxy's People

Contributors

donny-hikari avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.