redhat下安裝chrome

最近在學習linux,安裝的是redhat,自帶的firefox,由於不習慣firefox,想安裝一個chrome,在網上找的安裝方法,記錄一下方便以後查找

1.創建一個文件/etc/yum.repos.d/google.repo

2.如果是32位的

[google-chrome]
name=google-chrome - 32-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

如果是64位的

[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

3.安裝chrome

穩定版

yum install google-chrome-stable

測試版

yum install google-chrome-beta

非穩定版

yum install google-chrome-unstable

4.運行,默認的root用戶無法運行chrome除非設置了-user-data-dir,具體做法是

首先把chrome放到桌面和panel裏面,然後右鍵點屬性吧它默認的命令行

opt/google/chrome/google-chrome %U

修改爲

opt/google/chrome/google-chrome -user-data-dir %U

就可以在root用戶使用chrome了



轉自:http://www.cnblogs.com/effective/archive/2012/03/18/2405189.html


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章