[docker] install xubuntu desktop and setup vnc server and novnc
apt update
apt install xfce4 xfce4-goodies tightvncserver
USER=user vncserver
USER=user vncserver -kill :1
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
apt-get install vim
apt install autocutsel
vim ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
/usr/bin/autocutsel -s CLIPBOARD -fork
chmod +x ~/.vnc/xstartup
rm -rfv /tmp/.X*
USER=user vncserver -geometry 1920x900
cd /etc/ssl ; openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 36500
chmod 644 novnc.pem
apt-get install novnc websockify
websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/novnc.pem 6080 localhost:5901
http:// :6080/vnc.html
留言
發佈留言