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

The installation configuration of VNC uses the

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

Share

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

The advantage of VNC is that the real operating interface is on the server side.

Although the Xshell and Xstart of Xmanager Enterprise 4 are operated by the client connecting to the server, the real operation interface is on the client. If the network is interrupted or the client has problems, the operation will be interrupted.

VNC also connects the client to the server for operation, but the real operation interface is on the server side. When the connection is interrupted due to network, client and other problems, things running on the server side will not be interrupted.

Installation and configuration in CentOS release 6.5Environment

Installation

Yum-y install tigervnc-server

Or

Yum-y install vnc-server

The package tigervnc-server-1.1.0-18.el6.x86_64 is installed.

Configure root password in VNC

[root@fusndb db] # vncserver

You will require a password to access your desktops.

Password:

Verify:

Xauth: creating new authority file / root/.Xauthority

New 'fusndb:1 (root)' desktop is fusndb:1

Creating default startup script / root/.vnc/xstartup

Starting applications specified in / root/.vnc/xstartup

Log file is / root/.vnc/fusndb:1.log

Configure oracle password in VNC

[root@fusndb db] # su-oracle

[oracle@fusndb ~] $vncserver

You will require a password to access your desktops.

Password:

Verify:

Xauth: creating new authority file / home/oracle/.Xauthority

New 'fusndb:2 (oracle)' desktop is fusndb:2

Creating default startup script / home/oracle/.vnc/xstartup

Starting applications specified in / home/oracle/.vnc/xstartup

Log file is / home/oracle/.vnc/fusndb:2.log

Save configuration information

Vi / etc/sysconfig/vncservers adds a new line VNCSERVERS= "1:root 2:oracle"

Restart the vncserver service

[root@fusndb db] # service vncserver restart

Shutting down VNC server: 1:root 2:oracle [OK]

Starting VNC server: 1:root

New 'fusndb:1 (root)' desktop is fusndb:1

Starting applications specified in / root/.vnc/xstartup

Log file is / root/.vnc/fusndb:1.log

2:oracle

New 'fusndb:2 (oracle)' desktop is fusndb:2

Starting applications specified in / home/oracle/.vnc/xstartup

Log file is / home/oracle/.vnc/fusndb:2.log

[OK]

The following represents that four VNC processes are opened on the server side, namely IP:1\ IP:2\ IP:3\ IP:4, where IP:4 is enabled under the root user, and the others are all stadium

[root@SDBY ~] # ps-ef | grep vnc

Stadmin 56068 10 13:54? 00:00:00 / usr/bin/Xvnc: 2-desktop SDBY:2 (stadmin)-auth / home/stadmin/.Xauthority-geometry 1024x768-rfbwait 30000-rfbauth / home/stadmin/.vnc/passwd-rfbport 5902-fp catalogue:/etc/X11/fontpath.d-pn

Stadmin 56090 56089 0 13:54? 00:00:00 vncconfig-iconic

Stadmin 56505 10 13:55? 00:00:00 / usr/bin/Xvnc: 3-desktop SDBY:3 (stadmin)-auth / home/stadmin/.Xauthority-geometry 1024x768-rfbwait 30000-rfbauth / home/stadmin/.vnc/passwd-rfbport 5903-fp catalogue:/etc/X11/fontpath.d-pn

Stadmin 56528 56527 0 13:55? 00:00:00 vncconfig-iconic

Root 56897 10 13:55? 00:00:00 / usr/bin/Xvnc: 4-desktop SDBY:4 (root)-auth / root/.Xauthority-geometry 1024x768-r fbwait 30000-rfbauth / root/.vnc/passwd-rfbport 5904-fp catalogue:/etc/X11/fontpath.d-pn

Root 56924 56923 0 13:56? 00:00:00 vncconfig-iconic

Stadmin 58770 10 Jan25? 00:01:00 / usr/bin/Xvnc: 1-desktop SDBY:1 (stadmin)-auth / home/stadmin/.Xauthority-geometry 1024x768-rfbwait 30000-rfbauth / home/stadmin/.vnc/passwd-rfbport 5901-fp catalogue:/etc/X11/fontpath.d-pn

Stadmin 58793 58792 0 Jan25? 00:00:00 [vncconfig]

Root 58856 58308 0 14:31 pts/1 00:00:00 grep vnc

[root@SDBY ~] # service vncserver status

Xvnc (pid 58770 56897 56505 56068) is running.

[root@SDBY] # kill-9 56897

[root@SDBY] # kill-9 56505

[root@SDBY] # kill-9 56068

[root@SDBY ~] # service vncserver status

Xvnc (pid 58770) is running...

[root@SDBY ~] # ps-ef | grep vnc

Stadmin 58770 10 Jan25? 00:01:00 / usr/bin/Xvnc: 1-desktop SDBY:1 (stadmin)-auth / home/stadmin/.Xauthority-geometry 1024x768-rfbwait 30000-rfbauth / home/stadmin/.vnc/passwd-rfbport 5901-fp catalogue:/etc/X11/fontpath.d-pn

Stadmin 58793 58792 0 Jan25? 00:00:00 [vncconfig]

Root 58969 58308 0 14:32 pts/1 00:00:00 grep vnc

How to use the client:

Enter the following

Server IP:VNC user number (192.168.30.138purl 2)

Just enter the password (not the OS login password of the user, but the user password configured in vnc)

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