How to set Google Chrome's proxy settings in command line on Linux?

+5 votes

How 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.

asked Mar 23, 2013 by Fred G. (210 points)

1 Answer

+3 votes

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
answered Mar 23, 2013 by anonymous
edited Mar 24, 2013

Related questions

+2 votes
1 answer
+2 votes
1 answer
0 votes
1 answer
+2 votes
1 answer
+4 votes
1 answer
+2 votes
2 answers
0 votes
1 answer
Copyright © Fclose.com. User contributions licensed under cc-wiki with attribution required.
...