Vncviewer remote connection to Linux desktops under Windows

Source: Internet
Author: User

The most recent project requirements require that the written project be deployed to the centos6.5 server, but there are a variety of errors, and you want to debug the code under Linux. However, the remote server was previously linked via SSH, and the integrated development tools such as Eclipse must not be opened in SSH, so we will install the desktop and vncserver on the remote server and connect with Vncviewer in Windows.

One: Server side (Centos6.5)

1: Install the desktop:

# yum Groupinstall "GNOME desktop Environment" (CentOS 5.x Installation GNOME desktops environment)

# yum Groupinstall "X window System" "Desktop" (CentOS 6.x Installation GNOME desktop environment)

2: Install Vncserver

(1) Check if the Vncserver is already installed

[Email protected] ~]# Rpm-qa | Grep Vnctigervnc-1.0.90-0.17.20110314svn4359.el6.i686gtk-vnc-0.3.10-3.el6.i686tigervnc-server-1.0.90-0.17.20110314svn4359.el6 . i686gtk-vnc-python-0.3.10-3.el6.i686
<span style= "font-family:arial, Helvetica, Sans-serif; Background-color:rgb (255, 255, 255); " > If a few rpm packages above already exist, the VNC server is already installed, then jump Step (3) to start Vncserver, otherwise perform step (2) </span>

(2) Installation Vncserver

# yum Install tigervnc# yum install Tigervnc-server

(3) Start Vncserver

First boot vncserver requires a password two times

[Email protected] mnt]# vncserveryou would require a password to access your desktops. Password:Verify:New ' centos6.xman.org:1 (root) ' Desktop is centos6.xman.org:1creating default startup Script/root/.vnc /xstartupstarting applications specified In/root/.vnc/xstartuplog file Is/root/.vnc/centos6.xman.org:1.log

Attention:

#/etc/init.d/vncserver Restart

Note: Sometimes the above command start will error, direct operation can be:

# Vncserver

Note: Close the specific vncserver command: Vncserver-kill:1vncserver-kill:2

(4) Set the configuration of remote login to GNOME desktop:

# vim/etc/sysconfig/vncservers (SuSE Enterprise Edition does not configure this file)

Add the following two lines to the last face:

Vncservers= "1:root"

vncserverargs[1]= "-geometry 1024x768-alwaysshared-depth 24"

Note: if Windows a black screen appears when connected ( in The case of IP address and port without output error ), You can change the resolution here to 800x600.

(5) Firewall settings

When you do not set up a firewall connection, you may be blocked, which is the option to turn off the firewall or add the VNC server port number to the firewall's trust list:

Shut down firewall: Service iptables stop

Or: Add VNC server to the Firewall trust list in Linux

[[email protected] ~]# vim/etc/sysconfig/iptables# then add below line to this file-a input-m state--state new-m TCP- P TCP--dport 5900:5910-j accept# restart Iptables[[email protected] ~]# service iptables restart

Other operations on the firewall are visible: http://blog.csdn.net/jemlee2002/article/details/7042991

Two: Client (Windows)

Next, you can download the Http://vnc-pe.softonic.cn/vncviewer online to install it. Open the input IP address and port number. I didn't figure out the port number here, I'm typing 1, you can try 2 or 5901 or 5902, I have no research, I can tell if I understand.


References: 1:http://www.cnblogs.com/wise-man/archive/2012/07/23/2604023.html CentOS 6 Installing and configuring VNC

2:http://www.ha97.com/4634.html#comment-322709 The Remote Desktop configuration of the VNC server under CentOS Linux

3:http://blog.sina.com.cn/s/blog_6e0c0fdf010198pl.html TightVNC remote connection to Linux desktop under Windows


Small village Source:http://blog.csdn.net/lu597203933 Welcome to reprint or share, but be sure to declare the source of the article. (Sina Weibo: Small mayor Zack, Welcome to Exchange!) )

Vncviewer remote connection to Linux desktops under Windows

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.