zoukankan      html  css  js  c++  java
  • cenos6.4 yum配置以及GNOME安装

    修改/etc/yum.repos.d/CentOS-Base.repo,将baseurl打开,加上以上的地址

    http://mirrors.163.com/centos/ 163-网易
    http://mirrors.ta139.com/centos/ 中国移动通信(山东移动)
    http://centos.ustc.edu.cn/centos/ 中国科学技术大学
    http://mirror.neu.edu.cn/centos/ 东北大学

    配置为如下

    #released updates 
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
    http://mirrors.ta139.com/centos/$releasever/updates/$basearch/
    http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/
    http://mirror.neu.edu.cn/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
    http://mirrors.ta139.com/centos/$releasever/extras/$basearch/
    http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/
    http://mirror.neu.edu.cn/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
    http://mirrors.ta139.com/centos/$releasever/centosplus/$basearch/
    http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
    http://mirror.neu.edu.cn/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
    http://mirrors.ta139.com/centos/$releasever/contrib/$basearch/
    http://centos.ustc.edu.cn/centos/$releasever/contrib/$basearch/
    http://mirror.neu.edu.cn/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6

    2.桌面安装

    根据google的答案按下列操作

    #yum groupinstall “X Window System”

    安装GNOME桌面环境
    yum groupinstall “GNOME Desktop Environment”

    安装KDE桌面环境
    yum groupinstall “KDE (K Desktop Environment)”

    可是GNOME和没有装上,yum grouplist了下,发现cenos6.4没有这两个group,继续google了下得到解决

    I have been using the minimal iso (CentOS-6.0-x86_64-minimal.iso) to install CentOS 6. I wanted to add a GUI to my vm, but I could not find easy documentation showing how to add a GUI, or Gnome in this case, to a CentOS 6 minimal install. I was not looking for the smallest X windows install, I was just trying to get the Desktop to function like it would as if I installed from the full DVD.

    There are a lot of results of how to do this, but things have been renamed in CentOS 6, so that made it more difficult to figure out. Also, there are “Short Names” and I am assuming they are called “Long Names” associated with a yum groupinstall, which added to my confusion.

    To add Gnome/GUI to a minimal CentOS 6 install run (short name version):

    yum groupinstall basic-desktop desktop-platform x11 fonts

    And the “long name” version:

    yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"

    Hope that helps someone or at least help me to remember

  • 相关阅读:
    Windows8 自制DatePicker
    Windows8 商店支付功能
    通过(Node Js||.Net)基于HTML5的WebSocket实现实时视频文字传输(上)
    Windows8 检测网络
    Windows8 推送通知
    Windows8&Windows Phone 做一个图片效果
    js 两种时间数字字符串格式
    使用Homebrew安装Git(Mac)
    JavaScript核心参考教程客户端JavaScript
    MVC模式浅谈
  • 原文地址:https://www.cnblogs.com/wenlove/p/3018497.html
Copyright © 2011-2022 走看看