Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install and configure VNC

Shulou Source: shulou.com Published: 2022-06-01 03:27:47 10月01日 Update

This article introduces you how to install and configure VNC, the content is very detailed, interested friends can use for reference, I hope it can be helpful to you.

VNC installation configuration

When installing a certain software on Linux, you often need to start graphics. Sometimes tools such as Xmanager,xshell,xstart can not start graphics normally, so you can consider starting graphics through VNC.

Linux

One: install the VNC Server end

1 VNC installation package required on the Server side

[root@chen vnc] # ll-rth

Total 2.2M

-rw-r--r-- 1 root root 2.1m Feb 3 2009 vnc-server-4.1.2-14.el5_3.1.x86_64.rpm

-rw-r--r-- 1 root root 159K Feb 3 2009 vnc-4.1.2-14.el5_3.1.x86_64.rpm

[root@chen vnc] # rpm-ivh vnc-*-nodeps-force

Warning: vnc-4.1.2-14.el5_3.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 37017186: NOKEY

Preparing... # [100%]

1:vnc-server # # [50%]

2:vnc # # [100%]

2 generate password

[root@chen ~] # vncserver

You will require a password to access your desktops.

Password:123456

Verify:123456

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

Creating default startup script / root/.vnc/xstartup

Starting applications specified in / root/.vnc/xstartup

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

3 configure xstartup

[root@chen ~] # vi .vnc / xstartup

.

Xsetroot-solid grey

Vncconfig-iconic &

# xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

# twm &

Gnome-session &

4 configure vncservers

[root@chen ~] # vi / etc/sysconfig/vncservers

VNCSERVERS= "2:root"

# VNCSERVERS= "2:myusername"

# VNCSERVERARGS [2] = "- geometry 800x600-nolisten tcp-nohttpd-localhost"

5 restart vncserver

[root@chen ~] # / etc/init.d/vncserver start

Starting VNC server: 2:root

New 'chen:2 (root)' desktop is chen:2

Starting applications specified in / root/.vnc/xstartup

Log file is / root/.vnc/chen:2.log [OK]

-Windows

Second: install the VNC Viewer end

D:\ cjc\ soft\ vnc\ VNC-Viewer-6.17.1113-Windows.exe

... Next step

... Next step

.

Log in after installation is complete:

192.168.208.200:2

Password:123456

On how to install and configure VNC to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Configuration graphics content more help good interests passwords guys buddies tools articles sometimes knowledge articles software references generation login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Tech Info Microsoft Shulou Technology Shulou Information