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

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

Share

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

This article is to share with you about how to install and configure VNC. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

1. Server installs VNC server

You can install the server side of vnc directly by rpm:

Rpm-ivh tigervnc-server-1.1.0-16.el6.x86_64.rpm

If dependencies are found during rpm installation, it is recommended to use yum installation directly to easily solve the dependency problem:

Yum install tigervnc-server

If the desktop option is not installed when the system is installed, you will also need to install the desktop with yum:

Yum groupinstall "X Window System"Desktop" 2. Edit vnc profile

Edit / etc/sysconfig/vncservers

Add the following:

VNCSERVERS= "1:root" VNCSERVERARGS [1] = "- geometry 800x600-alwaysshared-depth 24"

Note: the resolution can be adjusted according to the actual situation. Improper resolution may lead to the phenomenon of black screen in vnc connection.

3. Set the password for VNC

Vncserver

The first time you enter the prompt, you need to set the password for VNC:

[root@JY-DB ~] # vncserver You will require a password to access your desktops.Password:Verify:xauth: creating new authority file / root/.XauthorityNew 'JY-DB:1 (root)' desktop is JY-DB:1Creating default startup script / root/.vnc/xstartupStarting applications specified in / root/.vnc/xstartupLog file is / root/.vnc/JY-DB:1.log [root@JY-DB ~] #

If you want to change the vnc password later, use the vncpasswd command to change it.

[root@JY-DB] # vncpasswdPassword:Verify:4. View session information for vnc

Restart the vncserver service:

/ etc/init.d/vncserver restart

View the session information for vnc:

Vncserver-list5. Client tests vnc connection

The client is vncviewer, and here is the Windows system. Download the corresponding vnc installation package HA-vnc-4.0-x86_win32-KC.exe

The installation option is to install only VNC Viewer.

Enter 192.168.56.102V1

Once confirmed, prompt for the password, which refers to the password of vnc

Once confirmed, you can connect to the server's desktop environment through vnc.

Note: "192.168.56.102" here is the IP address of the server, while ": 1" corresponds to the configuration of VNCSERVERS, here is the root user.

Personally, I think the biggest advantage of VNC is that the sudden disconnection of the network will not affect what is being done before.

The above is how to install and configure VNC. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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