ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

QXcb Connection

asked 2017-12-30 11:49:21 -0600

Lord-Frost gravatar image

I'm learning ROS for a college project and I'm running Ubuntu 16.04 off WSL as I'm not allowed to dual-boot my laptop. I don't have a spare machine lying around atm, so I'm running it like this.
Now the problem is that when I run rqt, I'm getting an error stating:

QXcbConnection: Could not connect to display :0

On running

sudo apt-get install ros-lunar-rqt

I am getting:

Reading package lists... Done
Building dependency tree
Reading state information... Done
ros-lunar-rqt is already the newest version (0.5.0-0xenial-20171120-112204-0800).
0 upgraded, 0 newly installed, 0 to remove and 127 not upgraded.

Any help to get it running would be appreciated!
P.S. I'm running Xming as the X-Server.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-25 02:59:52 -0600

parzival gravatar image

before you run that command, initialise Xming, then on Ubuntu type:

export DISPLAY=:0

and then run the command.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-12-30 11:49:21 -0600

Seen: 2,479 times

Last updated: Dec 30 '17