Configure VNC on CentOS 7.5

本文档详细介绍了如何在CentOS 7.5上为两个用户jerry和tom安装并配置VNC服务器。首先通过安装TigerVNC服务器开始,然后创建配置文件,并设置显示大小和密码。接着启动VNC服务,允许其他用户通过VNC查看器连接到服务器,显示一个图形桌面实例。注意,VNC服务器配置中存储的密码是明文的,不安全,建议使用SSL/TLS增强安全性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

实验环境: CentOS 7.5 模拟给两个用户 jerry、tom 配置vnc

Note:这个不安全,最好加上SSL/TLS

Unlike in previous Red Hat Enterprise Linux distributions, TigerVNC in Red Hat Enterprise Linux 7 uses the systemd system management daemon for its configuration. The /etc/sysconfig/vncserver configuration file has been replaced by /etc/systemd/system/vncserver@.service.

1. Installing VNC Server

To install the TigerVNC server, issue the following command as root

[root@vm-server ~]# yum install tigervnc-server

2. Configuring VNC Server

The VNC server can be configured to start a display for one or more users, provided that accounts for the users exist on the system, with optional parameters such as for display settings, network address and port, and security settings.

  1. A configuration file named /etc/systemd/system/vncserver@.service is required. To create this file, copy the /usr/lib/systemd/system/vncserver@.service file as root:
[root@vm-server ~]# cp /usr/lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver-jerry@.service
[root@vm-server ~]# cp /usr/lib/system
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值