最近想學習一下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 即可以搞定