VNC Remote Desktop Control

Source: Internet
Author: User

/*

: Linuxer Studio

*/

1. Install the VNC client in Windows: general installation is fine.

2. Install the VNC Server in Linux (it seems that Redhat has been installed in general, you can try it first ):

<1> you can see that the VNC installation package does not have the executable permission. First, add the executable permission: chmod 755 ./*

<2> install vncserver (The VNC Server) and xvnc./vncserver./xvnc

Problems during installation:

(A) no password is set when uncserver is installed. In this case, an error occurs. When xvnc is installed, an error message is displayed.

(B) "error while loading shared libraries: libstdc ++-libc6.1-1. so.2: cannot open shared object file: no such file or directory ". Download libstdc ++-libc6.1-1. the so.2 file is generally used to download and install the corresponding package. Different packages may be different in the system. (The package with redhat5 and fedora8 is complete)

Http://rpm.pbone.net/index.php3/stat/3/limit/3/srodzaj/1/dl/40/search/libstdc%2B%2B-libc6.1-1.so.2/field%5B%5D/1/field%5B%5D/2

<C> X: Warning; process set to priority-11 instead of requested Priority-10 fatal server error: Server is already active for display 0 if this server is no longer running, remove/tmp /. x0-lock and start again.

Solution: it means that X is already running and the/tmp/. X0-lock can be removed.

<D> error: couldn't open rgb_db '/usr/x11r6/lib/X11/RGB'

Cause: the default font path of the X system searched by the vncserver is under/usr/x11r6/lib/X11/fonts, however, redhat5 and Fedora are under/usr/share/X11/fonts /.

Solution:

Mkdir/usr/x11r6/lib (may need to be created separately)

CD/usr/x11r6/lib

Ln-S/usr/share/X11 X11

<3> Start the server after installation

Vncserver (Note that a number can also be added at this time. This number first appears at: log file is/root/. VNC/localhost. localdomain: 1.log1 is the number.)

3. Start the VNS client on windows after installation.

Connection format: Server IP: Number (for example, 10.10.19.169: 1)

After the connection, the desktop cannot be displayed, but there is only one terminal window?

Try to modify/root/. VNC/xstartup and change the last line of TWM & to gnome-session & or KDE & (it is said that KDE is not stable in the current VNC Viewer)

If there is no desktop after the connection, restart it.

Postscript:

If you log out from VNC, you will find that the desktop is completely empty and there is no way to do anything. You can go to the system to restart the VNC service:

$ Vncserver-kill: 1 => kill the original process

$ Vncserver: 1 => restart

In addition, you can restart the instance on the VNC server.

Server vncserver restart

4. Implement VNC operations for multiple users

(1). Multiple users must first have several users. These users are the users logging on to the system, first creating users.

# Useadd hanling

# Usepasswd hanling

................

(2) Modify VI/etc/sysconfig/vncserver

Vncservers = "1: hanling 2: qhzhang 3: jzshao"

1: hanling and 2: qhzhang must contain spaces. If there are too many users, enter the Enter key. If the user's resolution is required, you can set it below

Vncserverargs [1] = "-geometry 1024x768-depth 24"

Vncserverargs [2] = "-geometry 1660x960-depth 24"

Vncserverargs [3] = "-geometry 1024x768-depth 24"

(3) Here, we actually created several login users for VNC, and then set their nvcserver passwords respectively.

For example, in root: # su hanling-> vncpasswd,

To enable vncserver, you must enable your own VNC service under your own user. After enabling the service, you can clearly see that the system will create a service under the user's directory. VNC folder, which contains some corresponding configurations (especially xstartup) and log records. all enabled.

(4 ). the IP address is the port number. however, different port numbers correspond to the corresponding password. for example, if the password is hanling 123455 qhzhang 111111, the logon time is: <10.10.10.10: 1, the password is 123455> <10.10.10.10: 2, the password is 111111>

(5). Understanding

Multi-User VNC operation will enable each user's desktop without affecting it. Each user is independent of each other. A user can also enable multiple vncserver ports, which can be distinguished by specifying the port number.

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.