搜索
您的当前位置:首页正文

腾讯云Centos7搭建VNC图形界面详解

来源:二三娱乐

前几天突发奇想,想给服务器装个图形界面然后搭建WebIDE环境,就可以随时随地开发了,找了好久终于在论坛找到一位大大的帖子:

然后发现日期是2015年1月的,不以为意,按照步骤安装,总是提示

No packages in any requested group available to install or update

于是乎自己折腾,终于搭建vnc,废话不多说,上教程:

首先执行这一句防止系统文件被修改

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客户端,输入你的IP:5901连接

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

附图

搭建好的界面

Top