安装vncserver
$sudo apt-get install tightvncserver
或
$sudo apt-get install vnc4server
运行
$vncserver :1
安装novnc
noVNC官网:https://github.com/novnc/noVNC
noVNC 需要python2环境如果没有自行
apt-get install python
如果你有git可以使用:
git clone https://github.com/kanaka/noVNC
没有fit可以使用wget 下载:
wget https://codeload.github.com/novnc/noVNC/zip/master
或
wget --no-check-certificate https://codeload.github.com/novnc/noVNC/zip/master
进入noVNC目录下:
cd ./noVNC/utils/
运行(默认端口为5900或5901):
launch.sh --vnc localhost:5901
![img_61b52d3a6f724301840c41f57b116516.jpe](https://i-blog.csdnimg.cn/blog_migrate/87e9cae78ac5139e74c62e9102c1c833.jpeg)
运行
打开连接
复制上图的url到浏览器:
点击连接:
![img_fefc56f03586220b9b003cf4db6361c2.png](https://i-blog.csdnimg.cn/blog_migrate/f454dad4c1fe43e93a854ead85be8abb.png)
点击连接
输入密码:
![img_ee5bf38b70516e227a1271ed2dbbfa8a.png](https://i-blog.csdnimg.cn/blog_migrate/d758bb5155bc97e2994aab407c9c4d34.png)
输入密码
连接成功:
![img_889a4a6ea4f826501a3f1ec8dce3e681.jpe](https://i-blog.csdnimg.cn/blog_migrate/28f10a679b3cf304c3bedac0ecf21149.jpeg)
连接成功