三分鐘急速搭建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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章