【Linux】统信各版本UOS安装vnc

统信UOS安装vnc

1、D版本

1.1、安装

bash 复制代码
apt install xfce4 xfce4-goodies
apt install tigervncserver

1.2、安装完成后,启动

bash 复制代码
vncserver
## 根据提示输入密码

2、A/E版本

2.1、安装

bash 复制代码
yum install tigervnc-server 

2.2、启动

bash 复制代码
vncserver
## 根据提示输入密码

vnc常用命令

bash 复制代码
## 创建一个1920x1080分辨率的远程桌面
vncserver -geometry 1920x1080

## 手动关闭vnc服务器
vncserver -kill :1

## 设置vnc开启自启动
### 新建vncserver@1.service文件,拷贝到/etc/systemd/system/下
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/root

PIDFile=/root/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 :%i
ExecStop=/usr/bin/vncserve -kill :%i
[Instatt]
WantedBy=multi-user.target

### 运行如下命令
systemctl daemon-reload
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
systemctl status vncserver@:1.service

## 出现灰屏怎么处理
### 修改配置文件
echo  'gnome-session &' >> ~/.vnc/xstartup
### 添加一句配置到文件中,重启服务器后,再次执行vncserver即可
相关推荐
Johny_Zhao11 小时前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
chlk1232 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑2 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件2 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
碳基沙盒2 天前
OpenClaw 多 Agent 配置实战指南
运维
深紫色的三北六号2 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash3 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI3 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行4 天前
Linux和window共享文件夹
linux
木心月转码ing4 天前
WSL+Cpp开发环境配置
linux