Skip to content

Instantly share code, notes, and snippets.

@xx7y7xx
Last active Apr 11, 2017
Embed
What would you like to do?
install chrome on redhat/centos
# 如果被墙了,可以翻墙下载后上传到服务器上,然后在服务器上手动执行:
# 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
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