CentOS 6.3下安裝google chrome瀏覽器

來源:互聯網
上載者:User

最近想學習一下Linux系統就安裝一個centos6.3的試著玩一下。

我也是剛學也沒有什麼很好的分享,我進入系統就是想安裝一個Google瀏覽器,找了好久才找到方法。在此做個記錄順便分享一下。

下面介紹一下快速安裝chrome的方法

進入電腦vim /etc/yum.repos.d/建立CentOS-Base.repo
根據你的系統增加一個節點

32-bit

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

64-bit

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

安裝穩定版本:sudo yum install google-chrome-stable

安裝測試版本:sudo yum install google-chrome-beta

安裝不穩定版本:sudo yum install google-chrome-beta

OK!

測試chrome瀏覽器,點擊系統左上方的“應用程式”選項,點擊“internet”選項,選擇chrome瀏覽器。

如果出現提示說不能在根賬戶開啟瀏覽器,請設定user-data-dir修正。

Chrome預設不能以root身份運行 Google Chrome 瀏覽器,請以普通使用者身份啟動“Google Chrome 瀏覽器“,要以根使用者身份運行,您必須為設定檔資訊的儲存指定其他的“–user-data-dir”。

解決方案:找到Chromium 的捷徑 右擊查看屬性 找到命令 即得到Chromium 的地址。

如:/usr/bin/chromium-browser

開啟終端. 輸入命令:/usr/bin/chromium-browser %U -user-data-dir

OK 即可以搞定

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.