openEuler配置vnc

发布时间:2026/9/27 22:09:50
openEuler配置vnc 环境:OS:oe2203sp41.安装DDE桌面环境[roothxl ~]# dnf -y install dde[roothxl ~]# systemctl set-default graphical.target[roothxl ~]# reboot2.安装vnc[roothxl ~]#dnf install tigervnc-server -y3.关闭防火墙systemctl status firewalld.servicesystemctl stop firewalld.servicesystemctl disable firewalld.servicevi /etc/selinux/configset SELINUXdisabled and comment the rest lines.4.添加用户[rootcos8 yum.repos.d]# vi /etc/tigervnc/vncserver.users # TigerVNC User assignment # # This file assigns users to specific VNC display numbers. # The syntax is displayusername. E.g.: # # :2andrew # :3lisa :1oracle5.修改[root19c ~]# 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. # sessiongnome # securitytypesvncauth,tlsvnc # geometry2000x1200 # localhost # alwaysshared sessiongnome6.配置VNC密码su - oracle[oraclecos8 ~]$ vncpasswdPassword:Verify:Would you like to enter a view-only password (y/n)? yPassword:Verify:7.修改文件,加入如下内容su - oraclevi /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 80x241010 -ls -title $VNCDESKTOP Desktop exec dbus-launch startdde 8.启动服务发现启动失败需要重启服务后再次启动才能成功.[rootcos8 yum.repos.d]#systemctl start vncserver:1[rootcos8 yum.repos.d]#systemctl status vncserver:19.查看端口是否启动[root19c ~]# ss -nlp|grep 5901 tcp LISTEN 0 5 0.0.0.0:5901 0.0.0.0:* users:((Xvnc,pid2200,fd6)) tcp LISTEN 0 5 [::]:5901 [::]:* users:((Xvnc,pid2200,fd7))

关于本文作者

来自尧图内容编辑团队

尧图内容编辑团队 内容团队

尧图内容编辑团队

本文由尧图网络内容编辑团队执笔。团队由资深项目经理、前端工程师与设计师组成,所有内容均来自亲手交付的真实项目,先讲清问题、再给出可落地的解法。尧图深耕北京网站建设十年,服务过京华建材集团、智造科技等各行业客户,把一线经验沉淀为可复用的行业观察。

  • 十年建站经验,覆盖建材、制造、服务、文创等
  • 项目经理把关选题与事实准确性
  • 工程师与设计师联合撰写专业细节
  • 统一编辑规范,保证文风与排版一致
  • 每月复盘转化数据,迭代选题方向

延伸阅读

相关资讯与近期热门内容

深度阅读推荐

建站决策前值得细读的三篇

网站改版的5个关键决策
2024-08-12

网站改版的5个关键决策

什么时候该改版、改到什么程度、如何避免流量掉光,京华建材集团改版复盘给出答案。

获取专属建站方案

看完文章,把您的行业与预算告诉我们,免费获取一份量身定制的官网建设方案与报价。

立即免费咨询