Using VNC to implement Windows Remote connection Linux Desktop server configuration _linux

Source: Internet
Author: User

VNC Server and VNC Viewer support a variety of operating systems, such as the Unix family (Unix,linux,solaris, etc.), Windows and MacOS, so that VNC server and VNC Viewer is installed separately in different operating systems for control. If the current operating master computer does not have the VNC viewer installed, it is possible to control the managed side through a typical web browser.
The main principle of VNC is to run the Vncserver service on the server side, and then connect the server-side desktop remotely at the client.

Installation and Configuration

1, install VNC software package:

Copy Code code as follows:

Rpm-qa | grep vnc-server
Yum Install Tigervnc Tigervnc-server

2, configure VNC login account, desktop resolution and connection mode:

Copy Code code as follows:

Vim/etc/sysconfig/vncservers
Add to:
Vncservers= "1:root"
vncserverargs[1]= "-geometry 1024x768"

3, configure VNC remote login password:

Copy Code code as follows:

vncpasswd

4, configure VNC anti-black screen, and restart service:

Copy Code code as follows:

Vim/root/.vnc/xstartup

Comments:
# xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
# TWM &


Add to:
Copy Code code as follows:

Gnome-session &
Service Vncserver Restart
Ps-axu | grep VNC
Netstat-anptu | grep 5091

5, set up VNC service boot:

Copy Code code as follows:

Chkconfig--level 2345 Vncserver on
Chkconfig--list | grep vncserver

6, Firewall open 5901 ports:

Copy Code code as follows:

Iptables-a input-p TCP--dport 5901-j ACCEPT

7. Client Connection:

Copy Code code as follows:

Open the VNC Viewer
VNC server:ip:5901

(The password is not the login password, but VNC set the password)

8, close VNC:

Copy Code code as follows:

Vncserver-kill:1
Service Vncserver Stop

VNC client Download Address: http://www.jb51.net/softs/469413.html

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.