Linux command for google chrome

google-chrome

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

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.

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.

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

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:

Where is the protocol of the proxy server, and is one of:

If the is omitted, it defaults to «http». Also note that «socks» is equivalent to «socks5».

—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:

—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».

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

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

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

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

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

Читайте также:  Copying linux file to windows

ENVIRONMENT

Google Chrome obeys the following environment variables:

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.

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

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

Comma separated list of hosts or patterns to bypass proxying.

FILES

Default directory for configuration data.

Источник

What command should I type to run Chrome from the terminal?

I have remote box accessed by VNC and jwm desktop.
No menus, not desktop icons, only a terminal window. I have downloaded Chrome’s .deb package and installed it. How can I run it from the terminal window?

You might be interested in this generalised question: How can I know which commands were installed with a package?

What do you mean what command should you run? If you’re vnc’d in, just call the command by the name. If you don’t know the name you can always run x-www-browser and it’ll run the default browser.

5 Answers 5

Well simply typing google-chrome works fine for me. It might not work if you installed Chromium. chromium-browser is for Chromium.

However if it’s a remote box. At least via ssh you must use -X when option connecting to be able to run windowed apps. Like this:

If you get the path where the application is installed then you can run the application from there

For example to know the path where google-chrome is located run this command:

You will get the path like:

google-chrome: /usr/bin/google-chrome /usr/bin/X11/google-chrome /usr/share/man/man1/google-chrome.1 

Now you can run chrome by either executing two commands:

/usr/bin/google-chrome /usr/bin/X11/google-chrome 

Note: it will be applied for all installed applications. Also, It would be possible that you would not get the path /usr/bin/X11 or would get something different.

Hope you like this way to find the path and run chrome 🙂

Источник

How to Install Google Chrome Using Terminal on Linux

This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.

Читайте также:  Tp link tl wn722n kali linux установка драйверов

The wikiHow Tech Team also followed the article’s instructions and verified that they work.

This article has been viewed 606,792 times.

Need to install Google Chrome on Linux from the command line? Whether you’re logged in remotely or using a terminal window, it’s easy to install Chrome using wget to download the installer and dpkg to run it. This wikiHow article will walk you through installing Chrome from the terminal on Ubuntu or Debian Linux.

Image titled Install Google Chrome Using Terminal on Linux Step 1

  • Type sudo apt update and press the Enter key. [1] X Research source
  • Type sudo apt upgrade and press the Enter key.
  • Type wget —version and press the Enter key. If you see a version number, just skip to the next step now.
  • If you get an error because wget is not installed, type sudo apt install wget and press the Enter key to install it.
  • Type wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb and press the Enter key.
  • After the package is finished downloading, you’ll return to the command prompt.

Image titled Install Google Chrome Using Terminal on Linux Step 6

Fix errors that occurred in the Chrome installation. If you see any errors during the installation, type sudo apt-get install -f and press the Enter key to repair them.

Image titled Install Google Chrome Using Terminal on Linux Step 7

Community Q&A

I downloaded Google Chrome for Linux in the terminal and launched it by typing «google-chrome,» but it said «Command not found.» What do I do?

You have to install it. Downloading is only half the job. Only installed packages can be run from terminal. In Unix systems it usually means it’s extracted into a specific path, which is usually done by the package manager itself.

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

Читайте также:  Linux запуск от рута

Make sure you have recent version of Linux and active internet connection. Old version of Linux have old repository links which may not be available.

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

1. Is it necessary to always open Google Chrome from terminal, and 2. Must the terminal screen be kept open for Google Chrome to keep working?

No. Chrome should show up in the applications of menu of most desktop environments. You can also launch it from a simple run prompt in most environments by pressing Alt-F2, and then entering google-Chrome in the box. Normally, closing the terminal would close Chrome (or most applications launched from it). If you launch google-chrome as a background process (using the command «google-chrome &») and then disown the process (running «disown #», where # is the PID of the process), you can close the terminal and leave Chrome running. Alternatively, launch Chrome with nohup («nohup google-chrome») and then close the terminal.

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

Источник

Оцените статью
Adblock
detector