0

I am currently trying to make an autonomous drone using the Robot Operating System (ROS). To do this, I have installed Raspbian Lite (Jessie) on a Rasperry Pi 3 and am currently using ROS Kinetic on it. I decided to go with Openbox Window Manager and installed a terminal onto it for convenience. I can just call sudo startx. Since it is a system-wide terminal, I have also installed tmux for convenience. I am running the xserver on a particular pane and conduct my ROS work on other panes.

Now when I try to run commands that call on a GUI application from my system-wide terminal, I get the error:

QxcbConnection: Could not connect to display
Aborted

After a recommendation from this question, I decided to install xhost on my terminal emulator. After invoking xhost + in the same emulator, I get this:

access control disabled, clients can connect from any host

After which I invoke xhost which returns with:

access control disabled, clients can connect from any host
SI:localuser:root 

Therefore, within my system-wide terminal, I have set the environmental variable to 5 different values which have been listed below, and tried to run the program which calls on the $DISPLAY, but I get the same QxcbConnection: Could not connect to display error.

SI:localuser:root 
localuser:root 
localuser 
root 
SI:localuser
localhost:0

The last one was actually from the linked question. To my understanding, I am doing exactly what is listed out in this man page. What am I doing wrong?

16
  • In the terminal emulator (the one where you ran xhost +), what is the output of echo $DISPLAY ? – JigglyNaga Jan 4 '17 at 10:48
  • @JigglyNaga it says :0 – SDG Jan 4 '17 at 10:50
  • @JigglyNaga What should I use as the $DISPLAY on my first virtual terminal device? – SDG Jan 4 '17 at 10:51
  • The same. export DISPLAY=:0 – JigglyNaga Jan 4 '17 at 10:56
  • @JigglyNaga Just tried it, and got the error: QxcbConnection: Could not connect to display Aborted – SDG Jan 4 '17 at 11:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.