1、安装websockify

git clone https://github.com/kanaka/websockify.git
cd websockify
python setup.py install

(如果报错,可能是python相关的模块缺

yum install python-setuptools

easy_install ****)

./websockify.py port hostip:hostport

此处:

port为本地websockify代理端口

hostip为spice server所在服务器端口

hostport为spice server端口


2、安装spice-html5(根据负载、架构等也可以部署在与websockify不同的主机上)

git clone git://anongit.freedesktop.org/spice/spice-html5

ln -s spice.html index.html


3、安装httpd,并配置

yum install httpd

vi /etc/httpd/conf/httpd.conf

DocumentRoot "*****" (spice-html5目录)

service httpd restart


4、使用

启动firefox

浏览器输入spice-html5所在ip

界面上:

host为websockify所在ip

port为websockify代理端口


enjoy it


Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐