news 2026/9/27 22:09:48

openEuler配置vnc

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
openEuler配置vnc

环境:
OS:oe2203sp4

1.安装DDE桌面环境
[root@hxl ~]# dnf -y install dde
[root@hxl ~]# systemctl set-default graphical.target
[root@hxl ~]# reboot

2.安装vnc
[root@hxl ~]#dnf install tigervnc-server -y

3.关闭防火墙
systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service
vi /etc/selinux/config
set "SELINUX=disabled" and comment the rest lines.

4.添加用户

[root@cos8 yum.repos.d]# vi /etc/tigervnc/vncserver.users # TigerVNC User assignment # # This file assigns users to specific VNC display numbers. # The syntax is <display>=<username>. E.g.: # # :2=andrew # :3=lisa :1=oracle

5.修改

[root@19c ~]# more /etc/tigervnc/vncserver-config-defaults ## Default settings for VNC servers started by the vncserver service # # Any settings given here will override the builtin defaults, but can # also be overriden by ~/.vnc/config and vncserver-config-mandatory. # # See HOWTO.md and the following manpages for more details: # vncsession(8) Xvnc(1) # # Several common settings are shown below. Uncomment and modify to your # liking. # session=gnome # securitytypes=vncauth,tlsvnc # geometry=2000x1200 # localhost # alwaysshared session=gnome

6.配置VNC密码
su - oracle
[oracle@cos8 ~]$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:

7.修改文件,加入如下内容

su - oracle
vi /home/oracle/.vnc/xstartup

#!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & exec dbus-launch startdde &

8.启动服务

发现启动失败,需要重启服务后再次启动才能成功.
[root@cos8 yum.repos.d]#systemctl start vncserver@:1
[root@cos8 yum.repos.d]#systemctl status vncserver@:1

9.查看端口是否启动

[root@19c ~]# ss -nlp|grep 5901 tcp LISTEN 0 5 0.0.0.0:5901 0.0.0.0:* users:(("Xvnc",pid=2200,fd=6)) tcp LISTEN 0 5 [::]:5901 [::]:* users:(("Xvnc",pid=2200,fd=7))
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/9/27 22:08:47

不用敲命令!OpenClaw 3.1.0 中文版可视化搭建桌面自动化 Agent

&#x1f4d6; 前言 本文面向 Windows 系统用户&#xff0c;系统梳理 OpenClaw 的标准化部署流程。全程无需输入任何命令行&#xff0c;所有操作均依托可视化向导完成&#xff0c;即便是零基础用户也能独立走完整套部署。文中同时汇总了高频报错的对应解决方案&#xff0c;力求…

作者头像 李华
网站建设 2026/9/27 22:08:02

AI实现个人阅读网页插件:用TaoToken统一Key打通Chrome插件配置

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

作者头像 李华