使用chrome设置代理,果然还是linux 方便呢。想安装一个chrome的插件,通过命令设置代理。

前言


本文的原文连接是:
https://blog.csdn.net/freewebsys/article/details/113841810

未经博主允许不得转载。
博主地址是:http://blog.csdn.net/freewebsys

1,关于chrome代理


特别的简单。本地折腾一个代理。
然后使用命令进行代理就行:

google-chrome --proxy-server=socks5://127.0.0.1:1080

至于咋创建本地代理,不讨论。chrome 还有好多的命令参数呢。

$ google-chrome -h
google-chrome(1)                                                        USER COMMANDS                                                       google-chrome(1)

NAME
       google-chrome - the web browser from Google

SYNOPSIS
       google-chrome [OPTION] [PATH|URL]

DESCRIPTION
       See the Google Chrome help center for help on using the browser.

              <https://support.google.com/chrome/>

       This manpage only describes invocation, environment, and arguments.

OPTIONS
       Google Chrome has hundreds of undocumented command-line flags that are added and removed at the whim of the developers.  Here, we document relatively
       stable flags.

       --user-data-dir=DIR
              Specifies the directory that user data (your "profile") is kept in.  Defaults to $HOME/.config/google-chrome .  Separate instances  of  Google
              Chrome  must  use  separate  user data directories; repeated invocations of google-chrome will reuse an existing process for a given user data
              directory.

       --app=URL
              Runs URL in "app mode": with no browser toolbars.

       --incognito
              Open in incognito mode.

       --new-window
              If PATH or URL is given, open it in a new window.

       --proxy-server=host:port
              Specify the HTTP/SOCKS4/SOCKS5 proxy server to use for requests.  This overrides any environment variables or settings picked via the  options
              dialog.  An individual proxy server is specified using the format:

                [<proxy-scheme>://]<proxy-host>[:<proxy-port>]

              Where <proxy-scheme> is the protocol of the proxy server, and is one of:

                "http", "socks", "socks4", "socks5".

              If the <proxy-scheme> is omitted, it defaults to "http". Also note that "socks" is equivalent to "socks5".

              Examples:

                --proxy-server="foopy:99"
                    Use the HTTP proxy "foopy:99" to load all URLs.

                --proxy-server="socks://foobar:1080"
                    Use the SOCKS v5 proxy "foobar:1080" to load all URLs.

                --proxy-server="socks4://foobar:1080"
                    Use the SOCKS v4 proxy "foobar:1080" to load all URLs.

                --proxy-server="socks5://foobar:66"
                    Use the SOCKS v5 proxy "foobar:66" to load all URLs.

              It is also possible to specify a separate proxy server for different URL types, by prefixing the proxy server specifier with a URL specifier:

              Example:

                --proxy-server="https=proxy1:80;http=socks4://baz:1080"
                    Load https://* URLs using the HTTP proxy "proxy1:80". And load http://*
                    URLs using the SOCKS v4 proxy "baz:1080".

       --no-proxy-server
              Disables the proxy server.  Overrides any environment variables or settings picked via the options dialog.

       --proxy-auto-detect
              Autodetect proxy configuration.  Overrides any environment variables or settings picked via the options dialog.

       --proxy-pac-url=URL
              Specify proxy autoconfiguration URL.  Overrides any environment variables or settings picked via the options dialog.

       --password-store=<basic|gnome|kwallet>
              Set  the  password  store to use.  The default is to automatically detect based on the desktop environment.  basic selects the built in, unen‐
              crypted password store.  gnome selects Gnome keyring.  kwallet selects (KDE) KWallet.  (Note that KWallet may not work reliably outside KDE.)

       --version
              Show version information.

       As a GTK+ app, Google Chrome also obeys GTK+ command-line flags, such as --display.  See the GTK documentation for more:

              <http://library.gnome.org/devel/gtk/stable/gtk-running.html> <http://library.gnome.org/devel/gtk/stable/gtk-x11.html>

ENVIRONMENT
       Google Chrome obeys the following environment variables:

       all_proxy
              Shorthand for specifying all of http_proxy, https_proxy, ftp_proxy

       http_proxy, https_proxy, ftp_proxy
              The proxy servers used for HTTP, HTTPS, and FTP.  Note: because Gnome/KDE proxy settings may propagate into these variables in some terminals,
              this  variable is ignored (in preference for actual system proxy settings) when running under Gnome or KDE.  Use the command-line flags to set
              these when you want to force their values.

       auto_proxy
              Specify proxy autoconfiguration.  Defined and empty autodetects; otherwise, it should  be  an  autoconfig  URL.   But  see  above  note  about
              Gnome/KDE.

       SOCKS_SERVER
              SOCKS proxy server (defaults to SOCKS v4, also set SOCKS_VERSION=5 to use SOCKS v5).

       no_proxy
              Comma separated list of hosts or patterns to bypass proxying.

FILES
       $HOME/.config/google-chrome
              Default directory for configuration data.

       $HOME/.cache/google-chrome
              Default directory for cache data.  (Why?  See <http://standards.freedesktop.org/basedir-spec/latest/> .)

BUGS
       Bug tracker:

              http://code.google.com/p/chromium/issues/list

       Be sure to do your search within "All Issues" before reporting bugs, and be sure to pick the "Defect on Linux" template when filing a new one.

AUTHOR
       The Chromium team - <http://www.chromium.org>


2,总结


firefox 就可以直接安装,但是chrome就不行,还不是很方便的呢。

这个chrome果然是技术人员开发的。很方便呢。
然后直接访问:就可以直接安装了。

https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif

github地址:

https://github.com/FelisCatus/SwitchyOmega/releases

本文的原文连接是:
https://blog.csdn.net/freewebsys/article/details/113841810

博主地址是:https://blog.csdn.net/freewebsys

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值