Deploy the VNC Server and centos6vnc server in CentOS6

Source: Internet
Author: User
Tags ultravnc viewer

Deploy the VNC Server and centos6vnc 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.

123456789 # Install fontforge to avoid box garbled characters in the font.yum install fontforge -y# Install gnome Desktop Environmentyum groupinstall Desktop -y# Install the Chinese Language Support Packageyum groupinstall 'Chinese Support' -y# Set the default system language to Chinesesed -i '/LANG/c\LANG="zh_CN.UTF-8"' /etc/sysconfig/i18nsource /etc/sysconfig/i18n

2. Deploy the vnc server

1234567891011 # Install the vnc software packageyum install tigervnc tigervnc-server -y# Set vncserver startupchkconfig 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 filerpm -qc tigervnc-server# Configuring vncservervim /etc/sysconfig/vncservers
12345 # Start the first and second desktops as root usersVNCSERVERS="1:root 2:root"# Adjust resolutionVNCSERVERARGS[1]="-geometry 1024x768"VNCSERVERARGS[2]="-geometry 1024x768"
12345678910111213 # Start vncserver. The following two desktops are started:vncserver :1vncserver :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 vncservervncserver -kill :1vncserver -kill :2# Configuring a firewalliptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPTiptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPTservice 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:

12345678 # Batch startservice vncserver start# Batch restartservice vncserver restart# Batch stopservice vncserver stop# View the running Desktopvncserver -list

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.