VNC easy connection to Linux Remote Desktop

Source: Internet
Author: User

To connect to the Linux desktop, VNC connects to the Linux Remote Desktop and, following the steps below, it is very simple, fast, and Linux configures VNC (for example, Redhat, CentOS, Fedora Series).

Linux Platform Installation Vncserver

Windows platform uses Vnc-viewer

Method/Step

1, install Vncserver Server software package on Linux platform.

#yum-y Install VNC *vnc-server*

2. Modify the Vncserver master configuration file

#vim/etc/sysconfig/vncservers

Copy the last two lines and remove the line header comment, and then change to

Vncservers= "1:root"

vncserverargs[1]= "-geometry 1024x768"

3. Set Vncserver remote connection password

#vncpasswd

Enter the same password two times (to connect to the Remote Desktop)

4. Start Vncserver Service

#/etc/init.d/vncserver start

Chkconfig vncserver on//boot up

5, the previous step is completed in the root host directory generated. The hidden directory at the beginning of VNC, which is the root user's VNC desktop configuration file. Open Xstartup Configure desktop

#vim/root/.vnc/xstartup

Change the last line to

Gnome &//(using GNOME Desktop)

6. Open Firewall Vncserver port

#vim/etc/sysconfig/iptables

Add a line under "-A input-m State--state new-m tcp-p TCP--dport 22-j ACCEPT"

-A input-m state--state new-m tcp-p TCP--dport 5901-j ACCEPT

Restart Iptables Service

#/etc/init.d/iptables restart

7, open http://www.realvnc.com/under the Windows client, download the corresponding Platform Vnc-viewer client (the file is green software, no need to install),

In the VNC server column, enter

Xxxxip:1 Click Connect and enter the password in the 3rd step to connect to the Remote Desktop in the small pop-up window.

VNC easy connection to Linux 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.