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

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.

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

Similar Posts

  • Compiz-fusion on Fedora

    1. Install relevant packages #yum install ccsm emerald-themes compizconfig-backend-gconf fusion-icon-gtk emerald compiz-fusion compiz-fusion-gnome libcompizconfig compiz-gnome compiz-bcop compiz compizconfig-python compiz-fusion-extras compiz-fusion-extras-gnome 2. Start compiz-fusion by using command “fusion-icon”. It can be found in “Applications -> system tools -> fusion-icon”. It will be more convenient if “fusion-icon” is added to autostart list by adding a entry in…

  • Chrome does not work with ibus

    Seems the input method on Linux (ibus) does not work well with Chrome. But other programs, e.g. thunderbird, has not problem with ibus at all. What’s wrong with Chrome or ibus? Check whether the “Qt IBus library and Qt input method plugin” is installed. If not, installing it and restarting ibus may help: # yum…

  • Maximum size of S3 objects?

    What is the maximum size of objects that I can store on Amazon S3? Now (Apr. of 2014), the limitation is 4TB. Before, Dec. 2010, it was 5GB. Reference: http://aws.typepad.com/aws/2010/12/amazon-s3-object-size-limit.html But be aware that the 10,000 part limit still applies. Read more: What’s the standard or common data structure for a list of objects in…

  • How to force a website to use https by htaccess settings?

    I would like my site to be accessed by https only. How to force a website to use https by htaccess settings by redirecting http requests to the corresponding https ones? You can check the method of redirecting http to https at: https://www.systutorials.com/qa/1033/how-to-redirect-http-to-https-in-apache-with-mod_rewrite If you would like to have a 301 redirect, you can use…

  • How to split a string by string in PHP?

    How to split a string by string in PHP? For example, “a string separated by space” => [“a”, “string”, “separated”, “by”, “space”] and “a,string,separated,by,comma” => [“a”, “string”, “separated”, “by”, “comma”] The commonly used `explode()` is not enough here because multiple delimiters should be consider as one (such as ” “, 3 spaces together, is consider…

2 Comments

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

Leave a Reply

Your email address will not be published. Required fields are marked *