The configuration and use of VNC under Linux

Source: Internet
Author: User

We know that there are remote desktops in Windows (famous pcanywhere, network people, etc.) Yes, we have this same thing under Linux, one of the most popular is VNC, in fact, VNC is a protocol, its full name is virtual network Computing, is a C/s architecture of the Protocol, so the client and the server need to execute simultaneously, on the server to monitor the 5800,5801,5901 and other possible ports, and the client only need to sever to initiate the connection request, and enter the account password (not the user's password in the Linux system, but VNC's own password) can be accessed, but VNC transmission on the internet is not encrypted, so our account password in the online transmission is very easy to be "hearts of people" captured, At this time we can be combined with sshd to achieve encrypted transmission, in addition to VNC transmission is desktop applications, we all know, as long as the transfer needs to draw something to calculate the amount is very large (especially after using sshd encryption), so VNC will occupy considerable bandwidth and system resources, then why should we use it? Because sometimes we have to configure some software (such as Oracle, etc.) must use the graphical interface at the same time must be connected remotely when we have to use VNC ...

Windows To Connect as a client to the Linux server configuration process:

1 ). Configure our Linux system as a VNC server

#yum Install vncserver//Installing the VNC server via Yum (make sure Yum source is available)

#vncpasswd//Add a password for it (vnc password)

#vncserver &//start VNC server

Note the red Line, ": 1" means the "code" of this VNC.

2 ). Connect via Windows host to our Linux,windows installation VNC viewer no longer introduces

3 ). this time just started a graphical terminal and did not start the desktop application, how to start the desktop?

#ls/root/.vnc//We will find a. VNC directory under the user's home directory

#cd/ROOT/.VNC//Switch to Inside

#vim Xstartup//edit this file (this file is a script)

Replace the last line of the file with Gnome-session &

4 ). Remember to kill VNC before

#vncserver-kill:1//Kill VNC that was already running before

#vncserver &//Restart of VNC service

5 ). log in from the Windows client,

Linux To Connect as a client to the Linux server configuration process:

1 ). Server-side configuration ibid.

2 ). Installing VNC client vncviewer on Linux

#yum Install VNC//This is Vncviewer's installation package

#vncviewer//Open the client to start the connection, the process is similar to Windows, so no longer

The configuration and use of VNC under Linux

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.