GNU/Linux >> Tutoriels Linux >  >> Cent OS

Comment exécuter Google Chrome en tant que root sur CentOS / Ubuntu / Debian / Fedora

Dans mon dernier post, je vous ai montré comment installer Google Chrome sur CentOS 7 / Ubuntu 16.04 / Linux Mint / Debina 9 . J'ai installé Google Chrome en tant qu'utilisateur root et lorsque j'ai essayé de démarrer Google Chrome, l'erreur suivante s'est produite.

Je cherchais la solution ; en cherchant sur Google, j'ai trouvé un moyen simple d'autoriser l'utilisateur root à exécuter Google Chrome.

Suivez les étapes pour exécuter Google Chrome en tant qu'utilisateur root dans CentOS / Ubuntu / Debian / Fedora / LinuxMint.

Ouvrez un terminal.

Modifiez le /usr/bin/google-chrome et ajoutez le "–no-sandbox" à la fin de la dernière ligne (Ligne No :42).

vi /usr/bin/google-chrome

DE :

Numéro de ligne :35

export LD_LIBRARY_PATH

export CHROME_VERSION_EXTRA="stable"

# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME

exec -a "$0" "$HERE/chrome" "$@"

À :

export LD_LIBRARY_PATH

export CHROME_VERSION_EXTRA="stable"

# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME

exec -a "$0" "$HERE/chrome" "$@" --no-sandbox

C'est tout. Vous pouvez maintenant démarrer Google Chrome à partir du menu en tant que root.


Cent OS
  1. Comment installer Google Chrome sur Ubuntu

  2. Comment installer Google Chrome 17 sur Fedora 16, CentOS 6 / RHEL 6

  3. Comment configurer Autofs sur CentOS 7 / Ubuntu 16.04 / Debian 9 / Fedora 27/26

  4. Comment exécuter Google Chrome en tant que root – Ubuntu 11.10 / Linux Mint 12

  5. Comment exécuter Google Chrome en tant que root sur openSUSE 12.1

Comment installer Google Chrome sur Ubuntu 18.04 et Ubuntu 16.04

Comment installer Google Chrome sur Ubuntu 22.04

Comment installer Google Chrome sur CentOS

Comment installer Google Chrome sur Fedora

Comment installer Google Chrome sur CentOS 7

Comment installer Google Chrome sur CentOS 8