Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and configure VNC Service under Centos 6.5.How to install and configure VNC Service

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to install and configure VNC service under Centos 6.5.I hope you can get something after reading this article. Let's discuss it together.

1. The process of setting up a vnc server

1. Check to see if tigervnc is installed.

[root@localhost ~] # rpm-qa | grep tigervnc

Tigervnc-1.1.0-5.el6_4.1.x86_64

Tigervnc-server-1.1.0-5.el6_4.1.x86_64

two。 Edit the vncservers configuration file.

[root@localhost ~] # vim/etc/sysconfig/vncservers

VNCSERVERS= "1:root 2:bob" / / where 1 represents the desktop number, and then specifies that if you set multiple users to continue writing, the user must have a user for the system, up to 6, and the port corresponds to 5901-5906.

VNCSERVERARGS [1] = "- geometry 1024x768-nolisten tcp"

VNCSERVERARGS [2] = "- geometry 1024x768-nolisten tcp"

3. The initial startup sets the vnc login password of the root user, and the / root/.vnc/passwd password file is generated.

[root@localhost ~] # vncserver

Password:

Verify:

4. Setting the vnc login password for the bob user generates a / home/bob/.vnc/passwd password file.

[root@localhost ~] # su-bob

[bob@localhost ~] $vncserver

Password:

Verify:

5. Under root, modify the / root/.vnc/xstartup file to start the GNOME desktop or the KDE desktop.

[bob@localhost ~] $exit

Logout

[root@localhost ~] # vim / root/.vnc/xstartup

# twm & / / comment the line

The following line is appended at the end:

Gnome-session & / / if it is a KDE desktop, modify it to: startkde &

6. Under bob, modify the / home/bob/.vnc/xstartup file to start the GNOME desktop or the KDE desktop.

[bob@localhost ~] # vim / home/bob/.vnc/xstartup

# twm & / / comment the line

The following line is appended at the end:

Gnome-session & / / if it is a KDE desktop, modify it to: startkde &

7. Start the shutdown service and build it.

8. Deploy VNC VIEWER on windows, you can install it foolishly, and the connection method is ip:1 or ip:2, and so on, corresponding to different users.

2. Other vnc commands

1. Close the vnc desktop of the root user, and then the connection is denied (at this time, the bob user is not affected, and the bob user closes the vnc desktop with root).

[root@localhost ~] # vncserver-kill: 1

Killing Xvnc process ID 5962

Xvnc seems to be deadlocked. Kill the process manually and then re-run

/ usr/bin/vncserver-kill: 1

To clean up the socket files.

Reopen the vnc desktop of the root user.

[root@localhost ~] # vncserver: 1

New 'localhost.localdomain:1 (root)' desktop is localhost.localdomain:1

Starting applications specified in/root/.vnc/xstartup

Log file is/root/.vnc/localhost.localdomain:1.log

two。 Modify the vnc login password set by the root user when starting vncserver for the first time (switch to the bob user in the same way as root).

[root@localhost ~] # vncpasswd

Password:

Verify:

Logging in again requires setting a password that uses the new setting.

3. Detailed introduction of VNC

VNC (Virtual Network Computer) is the abbreviation of virtual network computer. VNC is an excellent remote control tool software developed by the famous European research laboratory of AT&T. VNC is a free open source software based on UNIX and Linux operating system. Its remote control ability is powerful, efficient and practical, and its performance is comparable to that of any remote control software in Windows and MAC. In Linux, VNC includes the following four commands: vncserver,vncviewer,vncpasswd, and vncconnect. In most cases, users only need two of these commands: vncserver and vncviewer.

Working process:

1) start VNC Server on the server side.

2) the VNC client connects to the VNC Server through a browser or VNCViewer.

3) VNC Server transmits a dialogue window to the client, requiring the input of the connection password and the access of the VNC Server display device.

4) after the client enters the online password, VNC Server verifies whether the client has access rights.

5) if the client passes the verification of VNC Server, the client requires VNC Server to display the desktop environment.

6) through X Protocol, VNC Server requests X Server to hand over the control of screen display to VNC Server.

7) VNC Server will be sent to the client by the desktop environment of X Server using VNC communication protocol, and the client will be allowed to control the desktop environment and input device of VNC Server.

After reading this article, I believe you have a certain understanding of "how to install and configure VNC services under Centos 6.5.If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!"

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report