vncviewer (virtual network computing) client allows one to interact with a remote computer’s graphical desktop environment. It’s run inside the docker.
#!/bin/shunset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
/*export LANG=zh_CN.UTF-8 */
/* fcitx -r*/
# disable screen blanking
xset s off
xset s noblank
startxfce4
In docker-compose.yaml:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version:'3.4'services:sad-workspace:# single docker serviceenvironment:-VNC_PW=abc123-VNC_GEOMETRY=1920x1080-VNC_DEPTH=24build:context:.image:deep-blue-slam-ricovolumes:-./workspace:/root/workspaceports:-46080:6080-45901:5901
Then, do docker compose up -d, the docker service sad-workspace is run in the background. To see the desktop,