nklr
Posts: 6
Joined: Thu Apr 05, 2018 10:05 am

Unable to start dbus-daemon on Raspbian Lite

Thu Apr 12, 2018 9:40 am

Hi,
I get the following error when I try to start a dbus program.

Code: Select all

 Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
I think this is because Raspbian Lite does not have a GUI display.
Can you please suggest a way to get around this issue?
Thanks.

n67
Posts: 492
Joined: Mon Oct 30, 2017 4:55 pm

Re: Unable to start dbus-daemon on Raspbian Lite

Thu Apr 12, 2018 10:27 am

What program are you trying to launch?


User avatar
topguy
Posts: 4258
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Unable to start dbus-daemon on Raspbian Lite

Thu Apr 12, 2018 4:13 pm

DBus is mainly used to send messages between GUI programs, programs that need the X-server.

You can set the environment variable DISPLAY with "export DISPLAY=:0.0" which will point to a non running X-server on localhost.
But I guess that will only give you a different error message.

You also have the option to install and start an X-server. Using https://en.wikipedia.org/wiki/Xvfb for example.

nklr
Posts: 6
Joined: Thu Apr 05, 2018 10:05 am

Re: Unable to start dbus-daemon on Raspbian Lite

Mon Apr 16, 2018 2:15 pm

topguy wrote:
Thu Apr 12, 2018 4:13 pm
DBus is mainly used to send messages between GUI programs, programs that need the X-server.
Can you please suggest a technique for inter process communication for non-GUI application?

Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 4 guests