ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

openEuler配置vnc

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))
返回列表