linux 進入 GNOME X 介面

來源:互聯網
上載者:User

標籤:des   c   class   blog   tar   http   

CentOS 安裝GnomeCentOSVmwareLinuxBlogHTML 

剛開始裝系統的時候,沒有選Gnome或者KDE,現在想裝個玩玩。

簡單的安裝可以參考這個:http://huruxing159.iteye.com/blog/744750

centos安裝是是使用linux text 模式安裝沒有安裝xwindows介面。現在要使用,使用yum安裝。 
登入系統,使用yum 安裝 
#yum groupinstall ‘X Window System‘  -y 
安裝GNOME案頭環境 
#yum groupinstall  ‘GNOME Desktop Environment‘ -y 
如果安裝KDE案頭環境 
#yum groupinstall ‘KDE (K Desktop Environment)‘ -y 

卸載GNOME案頭環境 
#yum groupremove "GNOME Desktop Environment" 
卸載KDE案頭環境 
#yum groupremove "KDE (K Desktop Environment)"

 

但這個做法會從網路上重新下載這些包再安裝,而一般的我們都有iso檔案,包含這些東西,所以可以參照這篇: http://hi.baidu.com/chif/blog/item/4d915a55d0b0f5cdb645ae37.html

 

##########################################

<轉載開始>

前些日子在VMWare上安裝CentOS時,沒有選裝GNOME案頭組件,最近忽然想加上,不想通過網路方式安裝,折騰了半天從本地給裝上了,備忘一下
1、如果串連上網路,可以直接使用yum groupinstall "GNOME Desktop Environment" 
2、本地安裝方式:
    a)將光碟片載入到本地 mount /dev/cdrom /mnt/cdrom
    b)在/etc/yum.repos.d/目錄下,有兩個檔案
        CentOS-Base.repo 和CentOS-Media.repo 
        其中CentOS-Base.repo記錄著網路上的yum源的地址和路徑資訊等
        CentOS-Media.repo記錄著可以從本地作為yum源的介質和路徑。
        修改CentOS-Media.repo
        
            [c5-media]
            name=CentOS-$releasever - Media
            baseurl=file:///media/CentOS/
                    file:///media/cdrom/
                    file:///media/cdrecorder/
                    file:///mnt/cdrom    #增加這句
            gpgcheck=1
            enabled=0
            gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta 

        編輯完成後儲存,執行以下命令
        yum --disablerepo=* --enablerepo=c5-media update 

    c)執行yum --disablerepo=* --enablerepo=c5-media grouplist 查看哪些組件可以選裝(X Window System和GNOME Desktop Environment);
      執行yum --disablerepo=* --enablerepo=c5-media groupinstall "GNOME Desktop Environment" ,
      如果提示 Error: Missing Dependency: libgaim.so.0 is needed by package nautilus-sendto ,
      則在光碟片CentOS目錄下執行rpm -Uvh nautilus-sendto-0.7-5.fc6.i386.rpm ,
      如果提示有依賴關係,加上--nodeps選項,再執行yum --disablerepo=* --enablerepo=c5-media groupinstall "GNOME Desktop Environment"即可,
      安裝GNOME的時候,yum會自動按照依賴關係把X Window安裝上去的。

    d)啟動gnome desktop命令:startx

<轉載結束>

##########################################

 

不過貌似這個使用本地iso的方法不太好用還是我啟動gnome有問題,我現在啟動gdm之後還是一個非常簡單的xwindows介面。

正在採用yum從網路上下載gnome,稍後再看看行不行。

 

卸載gnome:

#yum groupremove "GNOME Desktop Environment"

   

linux 進入 GNOME X 介面

安裝gnome:

  昨天弄好了MPlayer,結果gnome被搞崩了,開機init 5 進入X介面,但是不是gnome,只有xterm,clock,firefox三個視窗,雖說這樣倒不影響使用,但是工作起來麻煩,所以就想重回gnome,但是搞了半天也不行,inittab,X11R6,X11等該試的都試了,驅動重裝了,最後竟然是gnome的原因,檔案被破壞了。。

  回到gnome的方法很簡單,用switchdesk命令就可以了。

  1.如果沒有switchdesk命令,如下:

    yum install switchdesk

  2.如果gnome被破壞或未安裝,如下:

    yum groupinstall "GNOME Desktop Environment"

  3.如果前兩步OK,如下即可切換到gnome!

  switchdesk gnome

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.