junxnone / xwiki

https://junxnone.github.io/xwiki/
0 stars 0 forks source link

Hypervisor Docker UI #51

Open junxnone opened 2 years ago

junxnone commented 2 years ago

Host UI

Reference

Brief

挂载方式

-v /tmp/.X11-unix:/tmp/.X11-unix
-e DISPLAY=:0 

or -e DISPLAY=$DISPLAY

网络方式

sudo vim /etc/lightdm/lightdm.conf
[SeatDefaults]
xserver-allow-tcp=true
export DISPLAY=xxx.xxx.xxx.xx:0

验证小工具

在 docker bash 中运行 xarclock, 可在当前 UI 显示时钟