Home  >  Article  >  System Tutorial  >  Steps to install and configure VNC server on CentOS 7

Steps to install and configure VNC server on CentOS 7

PHPz
PHPzforward
2023-12-28 18:58:07920browse

You need to use the remote desktop service of Linux. I have used xmanager before and it feels average. I will try VNC this time.

My operating system is CentOS7

1. Server

Install VNCServer

#yum -y install vnc *vnc-server*

set password

# vncserver

You will require a password to access your desktops.

Password: 123456           #Enter vnc connection password
Verify: 123456             #Confirm vnc password

xauth: creating new authority file /root/.Xauthority

New ‘localhost.localdomain:1 (root)’ desktop is localhost.localdomain:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log

Start service

Start a window, such as window No. 1

# vncserver :1

Out of service

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

Killing Xvnc process ID 1661

Install GNOME Desktop

Remember to restart vncserver after installation

#yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

2. Client

I am Windows, using the client http://www.realvnc.com/, download the VNC-Viewer for the corresponding platform

Enter IP: window number, ok login successful

It is said on the Internet that only by modifying vi /root/.vnc/xstartup can the gnome desktop be started. I have never encountered this situation.

After I installed gnome, I restarted vncserver and it was ready to use.

CentOS 7下安装配置 VNC Server的方法

CentOS 7下安装配置 VNC Server的方法

The above is the detailed content of Steps to install and configure VNC server on CentOS 7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete