Configure vnc in Linux to implement remote desktop in linux

Source: Internet
Author: User
In Linux, vnc is configured, and VirtualNetworkComputing is short for virtual network computers. VNC is an excellent remote control tool software developed by the famous AT & amp; T European research laboratory. 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

Configure vnc in Linux to implement remote desktop in linux

VNC (Virtual Network Computing) is short for Virtual Network computers. VNC is an excellent remote control tool software developed by the famous AT&T European research laboratory. 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 four commands: vncserver, vncviewer, vncpasswd, and vncconnect. In most cases, I only need two commands: vncserver and vncviewer.

Installation method:



1: First, check whether your system has installed the vnc service (installed by default)

Rpm-q vnc-server

Command output:

Package vnc is not installed

Vnc-server-4.1.2-14.el5_3.1

The installation is complete, and you do not need to install it again.

2. modify the user's configuration file

# Vi/etc/sysconfig/vncservers

The modification content is as follows:

VNCSERVERS = "1: root" indicates the channel ID and user name used.

VNCSERVERARGS [2] = "-geometry 1024x768-nolisten tcp-nohttpd-localhost" adjust the resolution of the remote desktop

3: Set the remote logon password

# Vncpasswd

4. modify the remote desktop and display the configuration file parameters.

# Vi ~ /. Vnc/xstartup

# Twm &

Comment out twm and add the following two lines

Gnome-session &

Startkde &

Save. if this configuration file is not found during the first configuration and you need to start the vnc service, the xstarup file will be generated.

4. start the vnc service.

/Sbin/service vncserver start

5. firewall settings

If a firewall exists, follow the following configurations:

Vi/etc/sysconfig/iptables

Use the vi editor to open the configuration file and add the following command to the file:

-A rh-Firewall-l-INPUT-p tcp-m tcp -- dport 5900: 5903-j ACCEPT

Restart the firewall to make the configuration file take effect

Service iptables restart

6: Now you can log on remotely. open the VNC Viewer.


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.