openEuler 配置VNC Server

你好我叫阿成發表於2024-04-19
openEuler 配置VNC Server

# 安裝DDE環境桌面
sudo dnf install dde -y


# 安裝配置tigervnc-server
yum install tigervnc-* -y

# DDE桌面環xstartup境配置檔案

啟動
vncserver

WARNING: vncserver has been replaced by a systemd unit and is now considered deprecated and removed in upstream.
Please read /usr/share/doc/tigervnc/HOWTO.md for more information.

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /root/.Xauthority does not exist
New 'vm01:1 (root)' desktop is vm01:1

Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/vm01:1.log

# 修改xstartup
vncserver -kill :1
vi .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" &
#twm &
#ukui-session & # ukui桌面(沒有做驗證)
exec dbus-launch startdde & # dde 桌面


啟動vnc桌面
vncserver :1

相關文章