欢迎您的光临,本博所发布之文章皆为作者亲测通过,如有错误,欢迎通过各种方式指正。

文摘  CentOS服务器安装图形界面GNOME Desktop的方法

Linux工具 本站 3987 0评论

在腾讯云的centos云服务器上如果你要使用图形界面,比如图形界面安装oracle,应该怎么做?今天就和大家分享下图形界面的安装和vnc的搭建,来解决刚才提到的问题。


安装可能导致DNS被清空,所以需要先执行下面命令后再按照步骤安装

chattr +i /etc/resolv.conf


然后安装tigervnc

yum install -y tigervnc tigervnc-server


接下来很多人卡在这一步(No packages in any requested group available to install or update)

原因是找不到可安装的包

所以大家根据自己的服务器执行下面命令

yum grouplist


然后查看自己的服务器支持安装哪些包,比如我的

Available Environment Groups:

   Minimal Install

   Compute Node

   Infrastructure Server

   File and Print Server

   MATE Desktop

   Basic Web Server

   Virtualization Host

   Server with GUI

   GNOME Desktop

   KDE Plasma Workspaces

   Development and Creative Workstation

Available Groups:

   Additional Development

   Backup Client

   Backup Server

   Base

   CIFS file server

   Compatibility libraries

   Console internet tools

   Debugging Tools

   Desktop

   Desktop Debugging and Performance Tools

   Desktop Platform

   Desktop Platform Development

   Development tools

   Dial-up Networking Support

   Directory Client

   Directory Server

   E-mail server

   Eclipse

   Educational Software

   Electronic Lab

   Emacs

   FCoE Storage Client

   FTP server

   Fedora Packager

   Fonts

   General Purpose Desktop

   Graphical Administration Tools

   Graphics Creation Tools

   Hardware monitoring utilities

   Haskell

   Infiniband Support

   Input Methods

   Internet Applications

   Internet Browser

   Java Platform

   KDE Desktop

............


注意!

查看自己的服务器里中Available Environment Groups下面有哪些可以安装的Desktop,比如我的

Available Environment Groups:

   Minimal Install

   Compute Node

   Infrastructure Server

   File and Print Server

   MATE Desktop

   Basic Web Server

   Virtualization Host

   Server with GUI

   GNOME Desktop

   KDE Plasma Workspaces

   Development and Creative Workstation


里面有 GNOME Desktop

于是安装Gnome

yum groupinstall GNOME Desktop


这一步安装需要点时间,中间有提示直接输入y 然后回车,直到出现complete

然后启动vnc服务

vncserver


第一次执行会提示输入密码,然后再验证输入一次回车,vnc服务端就算搭建好了!


接下来在手机或者电脑上下载vnc客户端(链接:https://pan.baidu.com/s/1zTYnmhA32GA2FGdaXmJ2yg 

密码:2pwr)

输入你的IP:1连接

20181119114757.jpg

然后输入密码就可以看到你的服务器界面了!

0.jpg

提示:本次操作都是在root用户下,如果需要新建账户登录vnc,请先创建一个系统帐号,在此帐号下设置vnc登录密码,启动vnc服务

卸载图形界面

yum groupremove GNOME Desktop


卸载完成后 可以查看桌面安装包没有安装

rpm -q GNOME Desktop

显示如下:

package GNOME is not installed

package Desktop is not installed


转载请注明: ITTXX.CN--分享互联网 » CentOS服务器安装图形界面GNOME Desktop的方法

最后更新:2018-11-19 11:48:44

赞 (5) or 分享 ()
游客 发表我的评论   换个身份
取消评论

表情
(0)个小伙伴在吐槽