ubuntu容器的远程xface桌面环境搭建

发布时间 2023-04-14 15:40:00作者: _清风_明月

一、container: ubuntu20.04

二、commands: 

apt install xfce4 tigervnc-standalone-server  # xface使用gdm3启动器

service dbus start

vncpasswd

vim ~/.vnc/xstartup

#!/bin/sh
xsetroot -solid grey
 
startxfce4 &

vncserver -localhost no :1  # 不需要设置geometry,默认自动;:1表示第一个窗口,其端口号为5901(5900+1)

三、connect

使用tigervnc-viewer连接(官网下载)