apt -y install novnc websockify python-numpy
cd /etc/ssl
openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 365
chmod 644 novnc.pem
apt -y install vnc4server
vncserver :1
vncserver -kill :1
vi ~/.vnc/xstartup
exec /usr/bin/mate-session &
vncserver :1 -geometry 800×600 -depth 24
websockify -D –web=/usr/share/novnc/ –cert=/etc/ssl/novnc.pem 6080 localhost:5901
exec /usr/bin/mate-session &
Toevoegen aan het eind van xstartup bestand.