拉取镜像
docker pull #your-image-name-here#
运行镜像
docker run -itd --name=#your-container-name-here# --volume #your-shared-directory-here#:/root/trezor-suite -p 5901:5901 #your-image-name-here#
进入镜像环境
docker exec -it #your-container-name-here# /bin/bash
安装xfce
apt install xfce4 xfce4-goodies tightvncserver -y
启动vnc
export USER=root
vncserver
关闭vnc
vncserver -kill :1
修改vnc配置使用xfce4启动
cp ~/.vnc/xstartup ~/.vnc/xstartup.bak
vi ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
给vnc脚本添加执行权限
chmod +x ~/.vnc/xstartup
启动vnc
vncserver

该文指导如何使用Docker拉取镜像,运行容器,并在容器内安装XFCE桌面环境。接着配置并启动TightVNC服务器,允许远程访问。最后,修改VNC配置文件以确保启动时加载XFCE桌面。


被折叠的 条评论
为什么被折叠?



