标签:its dep nts detail mamicode shm contain https serve
问题我是 Xshell 连接的 VirtualBox 的 Ubuntu16.04 版本
是因为我在命令行窗口启动 GUI 界面导致的
QXcbConnection: Could not connect to display localhost:17.0
rqt: cannot connect to X server localhost:.0
17.0 是 DISPLAY 变量的值
关于DISPLAY 变量的解释,建议可以参考 Linux DISPLAY环境变量的妙用 文章格式有点乱,但戳中了正点.
root@ubuntu:/home/walker# docker container rm kinetic -f
root@ubuntu:/home/walker# docker run -itd --name kinetic --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" -v "/root/.ros/:/root/.ros/" osrf/ros:kinetic-desktop-full-xenial rqt
若碰到 No protocol specified rqt: cannot connect to X server :1 提示,记得赋权限
root@ubuntu:/home/walker# echo ${DISPLAY}
:1
root@ubuntu:/home/walker# xhost +
access control disabled, clients can connect from any host
ROS Could not connect to display localhost:17.0
标签:its dep nts detail mamicode shm contain https serve
原文地址:https://blog.51cto.com/laok8/2487505