Fedora-27-配置远程vnc-桌面

#参考https://www.server-world.info/en/note?os=Fedora_25&p=desktop&f=6
dnf install -y tigervnc-server.x86_64 tigervnc-server-module.x86_64

vncpasswd
#输入密码

vncserver
vncserver -kill :1
#修改
vim ~/.vnc/xstartup
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#exec /etc/X11/xinit/xinitrc
#exec /usr/bin/startxfce4
#exec /usr/bin/xfce4-session
exec /usr/bin/mate-session


firewall-cmd --add-service=vnc-server --permanent
firewall-cmd --add-service=vnc-server
dnf groupinstall  mate-desktop-environment
#重启后进入电脑运行
vncserver :1 -geometry 1440x900 -depth 24
#端口是5901

<img src="https://ipsec.in/wp-content/uploads/2018/04/Screenshot-from-2018-04-28-10-12-16.png" alt="" width="1023" height="753" class="alignnone size-full wp-image-497" />