原理:
机器人人作为VNC server,PC作为VNC client,实现PC对机器人的远程控制

机器人和您的机器上设置 IP 地址以通过 SSH 连接到机器人,root / easybot 应为默认值,机器人应具有互联网访问权限(例如插入路由器)
编辑/etc/apt/sources.list它应该将所有这些都取消注释:
deb http://archive.debian.org/debian jessie main
deb http://debian-mirror.ur-update.dk/debian jessie main
deb-src http://debian-mirror.ur-update.dk/debian jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
sudo apt update
sudo apt install x11vnc
x11vnc --storepasswd
然后设置密码并保存在默认路径中。
从命令行运行(用于一次性干预):
x11vnc -forever -noxdamage -display :0 -shared -rfbauth /root/.vnc/passwd
编辑:由于权限的原因,在启动时运行似乎无法使用密码,可以通过 SSH 正常工作,修复后将编辑下面的内容。
要在启动时运行,crontab -e并添加行:
@reboot x11vnc -forever -noxdamage -display :0 -shared -rfbauth /root/.vnc/passwd
然后使用任何 vnc 客户端,在 mac 上在 finder 中执行“Go->connect to server”并vnc://{robot_ip}:5900
English Version:
Setup IP address on robot and your machine to SSH into the robot, root / easybot should be the defaults, robot should have internet access (plugged in a router for example)
edit /etc/apt/sources.list it should have all these uncommented:
deb http://archive.debian.org/debian jessie main
deb http://debian-mirror.ur-update.dk/debian jessie main
deb-src http://debian-mirror.ur-update.dk/debian jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
sudo apt update
sudo apt install x11vnc
x11vnc --storepasswd
Then set a password and save it in the default path.
to run from command line (for one-off interventions):
x11vnc -forever -noxdamage -display :0 -shared -rfbauth /root/.vnc/passwd
EDIT: running on boot does not seem to work with a password due to permissions, it works all right over SSH, will edit things below when it’s fixed.
To run on boot, crontab -e and add line:
@reboot x11vnc -forever -noxdamage -display :0 -shared -rfbauth /root/.vnc/passwd
Then use any vnc client, on mac do “Go->connect to server” in finder and vnc://{robot_ip}:5900
更多技术参考, 公众号文章:
Airking Robots
北京艾科伯特科技有限公司,是专注协作机器人和移动机器人的技术公司,Airking Robots——艾科伯特立足于航空/航天,专注于机器人智能制造方向,Airking Robots是优傲机器人,Robotiq等协作机器人方向中国区域金牌提供商
商务联系:

更多案例请关注公众号:





