在系统下使用命令安装gnome图形界面程序(GUI图形界面)

       在安装Gnome包之前,需要检查一下安装源(yum)是否正常,因为需要在yum命令来安装gnome包。

       第一步:先检查yum 是否安装了,以及网络是否有网络。如果这两者都没有,先解决网络,在解决yum的安装。

  # yum repolist     //查看yum源是否正常。

没有的话可以下载: 

# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

# sed -i  's/$releasever/7/g' /etc/yum.repos.d/CentOS-Base.repo

# yum clean all

# yum repolist

 

       第二步:在命令行下 输入下面的命令来安装Gnome包。

       # yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

       第三步:更新系统的运行级别。

       # ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

       第四步:重启机器。启动默认进入图形界面。

       # reboot

相关文章:

  • 2022-02-07
  • 2021-08-05
  • 2021-11-19
  • 2021-07-13
  • 2021-04-07
  • 2021-07-14
  • 2022-01-01
  • 2021-05-14
猜你喜欢
  • 2021-11-19
  • 2021-09-12
  • 2021-05-14
  • 2021-11-12
  • 2021-10-08
  • 2022-02-07
相关资源
相似解决方案