Deploy VNC Server in CentOS6

Source: Internet
Author: User
Tags i18n windows remote desktop ultravnc viewer

Deploy VNC Server in CentOS6

VNC (Virtual Network Computer) is short for Virtual Network Computer. VNC is a free open-source software based on UNIX and Linux operating systems. It has powerful remote control capabilities and is highly efficient and practical. Its performance can be comparable to any remote control software in Windows and MAC.

In Linux, VNC includes the following commands: vncserver, vncviewer, vncpasswd, and vncconnect.

The following uses CentOS6.2 as an example. The procedure for installing VNC is as follows:

1. Install gnome Desktop Environment

If the gnome desktop environment has been installed on the system, skip this step.

# Install fontforge to avoid box garbled characters in the font.

Yum install fontforge-y

# Install gnome Desktop Environment

Yum groupinstall Desktop-y

# Install the Chinese Language Support Package

Yum groupinstall 'Chinese Support '-y

# Set the default system language to Chinese

Sed-I '/LANG/c \ LANG = "zh_CN.UTF-8"'/etc/sysconfig/i18n

Source/etc/sysconfig/i18n

2. Deploy the vnc server

# Install the vnc software package

Yum install tigervnc-server-y

# Set vncserver startup

Chkconfig vncserver on

# Set the vnc logon password. Save the password in ~ /. Vnc/passwd

# If you want to change the vnc password of a common user, su must switch to this user first.

Vncpasswd

# Viewing the vncserver configuration file

Rpm-qc tigervnc-server

# Configuring vncserver

Vim/etc/sysconfig/vncservers

# Start the first and second desktops as root users

VNCSERVERS = "1: root 2: root"

# Adjust resolution

VNCSERVERARGS [1] = "-geometry 1024x768"

VNCSERVERARGS [2] = "-geometry 1024x768"

# Start vncserver. The following two desktops are started:

Vncserver: 1

Vncserver: 2

# Modify the xstartup file and change the last twm & to gnome-session &

# This file appears only after vncserver is started. After modification, restart vncserver.

Vim ~ /. Vnc/xstartup

# Stop vncserver

Vncserver-kill: 1

Vncserver-kill: 2

# Configuring a firewall

Iptables-I INPUT-m state -- state NEW-m tcp-p tcp -- dport 5901-j ACCEPT

Iptables-I INPUT-m state -- state NEW-m tcp-p tcp -- dport 5902-j ACCEPT

Service iptables save

Now that the server is deployed, you can access the Remote Desktop through UltraVNC Viewer, TigerVNC Viewer, or RealVNC Viewer.

The following describes common operations:

# Batch start

Service vncserver start

# Batch restart

Service vncserver restart

# Batch stop

Service vncserver stop

# View the running Desktop

Vncserver-list

VNC installation Configuration

Install and configure VNC in CentOS 6.3

In Linux, the dependency installation VNC is not detected.

CentOS6 VNC service installation and configuration

VNC remote control installation and Setup

Windows accesses Ubuntu through VNC

Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop

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.