How to set Google Chrome’s proxy settings in command line on Linux?
Posted on In QAHow to set Google Chrome’s proxy settings in command line on Linux? I am using Google Chrome on Linux and start it by google-chrome
. How can I set the proxy using the command line? It tell me that my desktop is not supported but I can set the proxy in command line.
Use the --proxy-server
option when starting the google-chrome
.
For example, to set Chrome to use a Socks proxy localhost:8080, start Google Chrome with this command:
$ google-chrome --proxy-server="socks://localhost:8080"
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.
To check more options, on a host with Google Chrome installed:
$ man google-chrome
Does it support pass user/password in the same line? I know it is potentially unsafe, but I’m the only user of my box.
Same, We want username/password as well as we have java spin up the command!!!