VNC easy connection to remote Linux desktops

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). Tools/Materials
    • Linux Platform Installation Vncserver
    • Windows platform uses Vnc-viewer
Method/Step
  1. Install the Vncserver server package on the 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

  4. Start the Vncserver service

    #/etc/init.d/vncserver start

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

    #vim/root/.vnc/xstartup

    Change the last line to

    Gnome &

    (using the GNOME desktop)

  6. Open firewall Vncserver Port

    #vim/etc/sysconfig/iptables

    Add a row 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--dpo RT 5901-j ACCEPT

    Restart Iptables Service

    #/etc/init.d/iptables restart

  7. Open http://www.realvnc.com/under Windows Client, download the Vnc-viewer client for the corresponding platform (the file is green software, no installation required), double-click the downloaded file to open

    In the VNC server column, enter

    192.168.224.159:1

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

    END
Precautions
    • Note Open the firewall port
    • If a problem occurs check whether the server-side SELinux is off

VNC easy connection to remote Linux desktops

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.