三分钟急速搭建VNC远程桌面实现任意浏览器远程访问

lsb_release -a ; hostname -I; hostname ; getconf LONG_BIT
apt-get install xfce4 xfce4-* vnc4server novnc websockify python-numpy -y
vncserver
vncserver -kill :1
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
vim ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
chmod +x ~/.vnc/xstartup
vncserver
cd /etc/ssl ; openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 365
chmod 644 novnc.pem
websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/novnc.pem 6080 localhost:5901
https://X.X.X.X:6080/vnc.html

如果登录出现
Security failure: Too many authentication failures

ubuntu@instance-r5zywgpr:~$ pgrep vnc
18119
30517
root@instance-r5zywgpr:/home/ubuntu:~$ kill 18119
root@instance-r5zywgpr:/home/ubuntu:~$ kill 30517
root@instance-r5zywgpr:/home/ubuntu:~$ vncserver

你可能感兴趣的:(ubuntu系统,VNC远程桌面,noVNC)