Centos6.5 install vncserver

Source: Internet
Author: User

Centos6.5 install vncserver
Introduction

VNC (Virtual Network Computer) is short for Virtual Network Computer. VNC is an excellent remote control tool software.

Install the VNC service

First, confirm that the virtual machine has installed the desktop environment, such as gnome.

# vi /etc/inittab   

Set the startup level to 5.

id:5:initdefault:

Install the VNC service

# yum install pixman pixman-devel libXfont -y# yum install tigervnc tigervnc-server -y

Configure VNC vi/etc/sysconfig/vncservers find VNCSERVERS and VNCSERVERARGS [2], open the comment and modify the code:

 VNCSERVERS="2:root" VNCSERVERARGS[2]="-geometry 800x600 -depth 32"

Firewall: vi/etc/sysconfig/iptables is added as follows:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 5900:5903 -j ACCEPT

Start vncserver and set a password for vncserver

# vncserver

Restart the vncserver service:

# vncserver -kill :2# vncserver :2 
Use VNC windows Client

As follows:

Interface after successful connection:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.