linux配置 vncserver
时间: 2023-09-12 20:04:39 浏览: 118
要配置vncserver服务,您可以按照以下步骤进行操作:
1. 首先,安装tigervnc-server软件包,可以使用以下命令进行安装:
```
yum -y install tigervnc-server
```
2. 接下来,需要对vncserver服务进行配置。将`/lib/systemd/system/vncserver@.service`文件复制到`/etc/systemd/system/vncserver@:1.service`:
```
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
```
3. 修改`/etc/systemd/system/vncserver@:1.service`文件。将`type`修改为`simple`,将`ExecStart`中的`<USER>`改为`root`,将`PIDFile`中的`/home/<USER>`改为`/root`:
```
vi /etc/systemd/system/vncserver@:1.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Linux系统配置VNCServer](https://blog.csdn.net/weixin_38467835/article/details/115393055)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文