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

CentOS 7 deployment VNC Server

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

introduced

VNC stands for Virtual Network Console. An open source software developed by AT&T's renowned European Research Lab. It is an excellent remote control tool software, its main role is to access the graphical interface of the server, and support multiple user access.

Its remote control capability is powerful, efficient and practical, and its performance can be comparable to other remote control software in Windows and MAC.

VNC consists of two parts: server-side and client-side. VNC Server can run on Linux, UNIX, Windows and other operating systems, and the client component VNC Viewer is also available on multiple platforms.

experimental

experimental environment

CentOS Linux release 7.2.1511 (Core)

Number of system bits: x86_64

turn off the firewall

[root@controller ~]# systemctl stop firewalld.service

[root@controller ~]# systemctl disable firewalld.service

Close SELinux

[root@controller ~]# setenforce 0 #temporary close

[root@controller ~]# sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config #Yongjiu

VNC installation

[root@controller ~]# yum -y install tigervnc-server

create a password

[root@controller ~]# vncpasswd

Password:123123

Verify:123123

Add window

cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service

Note: 1 means port 5901, multi-port can be created, multiple users log in.

modify the configuration

[root@controller ~]# vim /lib/systemd/system/vncserver@:1.service

ExecStart=/usr/sbin/runuser -l root -c "/usr/bin/vncserver %i"PIDFile=/root/.vnc/%H%i.pid

PIDFile=/root/.vnc/%H%i.pid

Note: When you open an edit file, there are instructions at the beginning of the file.

reload the configuration

[root@controller ~]# systemctl daemon-reload

start the service

[root@controller ~]# systemctl start vncserver@:1.service

Configurable boot:

[root@controller ~]# systemctl enable vncserver@:1.service

Install Desktop Services (skip if already present)

[root@controller ~]# yum -y group install "GNOME Desktop"

Note: You need to restart the system, and it is a good option to use VNC to operate KVM virtual machines (there is no need to install desktop services on the machine).

Connect Desktop

single user connection

multiuser connection

FQA

Q: Connection error "too many security failures"

A: There is a problem with the service. You need to restart the service "systemctl restart vncserver@:1.service".

Q: Is VNC connection secure?

A: VNC default connection is not encrypted, you can use ssh encryption connection, the specific operation method please study.

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