How to install VNC server on CentOS 6

参考: https://rbgeek.wordpress.com/2012/06/26/how-to-install-vnc-server-on-centos-6/

VNC is a protocol that is used to share the desktop with other users/computers over the network/Internet.In order to share a desktop, VNC server must be install and configure on the computer and VNC client must be run on the computer that will access the shared desktop.

When we install the minimal copy of CentOS Server, it only gives us the “Command Line” interface.
But some people prefer GUI instead and for this they install Full version of Gnome on CentOS. Actually there is a better way and that is to install VNC. VNC provides a lightweight virtual desktop than full blown version of Gnome.

To run the VNC Server on CentOS, we have to install these required packages:
sudo yum groupinstall Desktop
sudo yum install tigervnc-server
sudo yum install xorg-x11-fonts-Type1

This is optional:
sudo yum install vnc

To start VNC Server on boot
sudo chkconfig vncserver on
To setup users’ VNC password:

vncpasswd
Edit the /etc/sysconfig/vncservers file:
sudo nano /etc/sysconfig/vncservers

Add the following to the end of the file:
VNCSERVERS=“1:root”
VNCSERVERARGS[1]="-geometry 1024x600"

The iptables rules need to be amended to open the VNC ports:
sudo iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5903,6001:6003 -j ACCEPT 去掉5后运行正常
sudo service iptables save
sudo service iptables restart

Restart the VNC Server:
sudo service vncserver restart

Now kill the VNC Server:
vncserver -kill :1

Edit the xstartup file in .vnc directory:
nano .vnc/xstartup

Comment the last line and run the Gnome:
#twm &
exec gnome-session & 有的文件中不存在这一行

Restart the service:
sudo service vncserver restart

sudo service vncserver stop 关闭服务后节省资源

编辑 /etc/inittab 给设定启动cli还是gui

时间: 2024-10-08 05:28:17

How to install VNC server on CentOS 6的相关文章

How to install redis server on CentOS 7 / RHEL 7

How to install redis server on CentOS 7 / RHEL 7 October 4, 2014 by sharad chhetri Leave a Comment In this tutorial we will learn, how to install redis server on CentOS 7 / RHEL 7 . The abbreviation of redis is REmote DIctionary Server. It is one the

Configure VNC Server on CentOS 7 / RHEL 7

The following simple guide help you to setup the VNC server on RHEL 7/CentOS 7 machines, VNC help to share the desktop with the other machines which has a client installed. VNC server and client are not installed by default, you need to setup the vnc

Install TightVNC Server in RHEL/CentOS and Fedora to Access Remote Desktops

Virtual Networking Computing (VNC) is a Kind of remote sharing system that makes it possible to take control of any other computer connected to internet. Keyboard and mouse clicks can easily transmit from one computer to another. It helps administrat

CentOS中配置VNC Server

环境:CentOS 6.4 1.安装tigervnc-server及相关软件 首先检查系统中是否安装tigervnc-server安装包 rpm -qa tigervnc-server 如果没有就直接安装 yum install tigervnc-server* 2.修改vncserver的配置文件,配置用户及分辨率 vncserver的配置文件/etc/sysconfig/vncservers 参照最后两行注释,对应自己的设置,添加新的两行 VNCSERVERS="2:test" V

CentOS 下 VNC Server 的配置与使用

VNC 是一款优秀的远程控制工具软件.由著名的 AT&T 的欧洲研究实验室开发的.VNC 是在基于 UNIX 和 Linux 操作系统的免费的开源软件,远程控制能力强大,高效有用,其性能能够和 Windows 和 MAC 中的不论什么远程控制软件媲美. 在 Linux 中.VNC 包含下面四个命令:vncserver.vncviewer,vncpasswd,和 vncconnect. 大多数情况下用户仅仅须要当中的两个命令:vncserver 和 vncviewer. 1.命令描写叙述 vncs

CentOS Linux下VNC Server远程桌面配置详解

http://www.ha97.com/4634.html PS:偶以前基本不用Linux的远程图形桌面,前几天有开发的同事配置CentOS的vnc有问题,找我解决,就顺便记录总结一下,这个总结是比较完整的.下面的配置在CentOS5.x和6.x.SUSE企业版亲测验证,其他发行版按理也通用: 一.安装相应桌面环境与vnc服务端和客户端: # yum groupinstall "GNOME Desktop Environment"(CentOS 5.x安装GNOME桌面环境) # yu

CentOS 7 部署VNC Server

介绍 VNC是Virtual Network Console(虚拟网络控制台)的缩写.由著名的AT&T的欧洲研究实验室开发的一款开源软件.它是一款优秀的远程控制工具软件,其主作用就是访问服务器的图形界面,并且支持多个用户访问. 它的远程控制能力强大,高效实用,其性能可以和Windows和MAC中的其它远程控制软件相媲美. VNC由两部分组成服务器端和客户端.VNC Server是在可以运行在Linux.UNIX.Windows等多种操作系统上,客户端组件VNC Viewer也有多种平台上的版本.

(总结)CentOS Linux下VNC Server远程桌面配置详解

PS:偶以前基本不用Linux的远程图形桌面,前几天有开发的同事配置CentOS的vnc有问题,找我解决,就顺便记录总结一下,这个总结是比较完整的.下面的配置在CentOS5.x和6.x.SUSE企业版亲测验证,其他发行版按理也通用: 一.安装相应桌面环境与vnc服务端和客户端:# yum groupinstall "GNOME Desktop Environment"(CentOS 5.x安装GNOME桌面环境)# yum groupinstall "X Window Sy

在Centos 7上安装VNC server

VNC是个比较不错的远程工具,无论基于Windows平台或Linux平台,由于最近在学习Centos的相关知识,所以准备在Centos 7上搭建一个VNC server便于我从客户端机器通过VNC viewer来远程连接操作. 如果你没有安装桌面环境(X Windows),可以使用以下命令来安装,大概花费几分钟时间来安装此packages. [[email protected] ~]# yum check-update [[email protected] ~]# yum groupinstal