Last active
April 11, 2017 12:38
-
-
Save xx7y7xx/dac1baba525c38315ba31a2085e02ac1 to your computer and use it in GitHub Desktop.
install chrome on redhat/centos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 如果被墙了,可以翻墙下载后上传到服务器上,然后在服务器上手动执行: | |
| # wget -O ~/Downloads/linux_signing_key.pub https://dl-ssl.google.com/linux/linux_signing_key.pub | |
| # scp ~/Downloads/linux_signing_key.pub root@10.3.14.238:/tmp | |
| # sudo rpm --import /tmp/linux_signing_key.pub | |
| sudo su -c 'rpm --import https://dl-ssl.google.com/linux/linux_signing_key.pub' | |
| sudo sh -c 'echo -e "[google-chrome]\nname=google-chrome\nbaseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch\nenabled=1\ngpgcheck=1\ngpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub" > /etc/yum.repos.d/google-chrome2.repo' | |
| yum install google-chrome-stable -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yum install xorg-x11-server-Xvfb -y | |
| # 然后按照[https://gist.github.com/nkm/91006178753df6f503c1]配置systemd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment