[SOLVED] Wicd Could not connect to wicd's D-Bus interface
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[SOLVED] Wicd Could not connect to wicd's D-Bus interface
Hello Everyone,
I'm having a problem with wicd complaining about not being able to connect to dbus. Wicd was working fine earlier today.I have not done anything to my computer, so i dont know why it's acting up.
When i did ifconfig i can see my wlan0 and when i do iwlist wlan0 scan
i can see the access points. I tried doing
but now what do i do next to get online. Please i need to know how
to do this from the command line cause it seems that network program
seem to act up fairly common.
Last edited by GreenFireFly; 07-16-2014 at 08:28 PM.
Could you post the exact wording of the error message?
Also, take a look in /var/log/wicd. You may find something useful there. If you do, post it to this thread, being sure to surround it with "code" tags for readability; they become available when you click the "Go Advanced" button to the right of the "Post Quick Reply" button at the bottom of the reply window.
If you're just looking at connecting to a wireless network via commandline, it depends on the network security. Unless things have changed since I last toyed around with wireless on Slackware iwconfig doesn't support WPA(2) and only supports WEP or unencrypted networks. If you are connecting to a WEP or unsecured network (which is pretty much a bad idea nowadays), you can simply run (replacing the bracketed pieces with information for your network -- if you don't have a network key, leave the key part off):
You would need to run this as root and making sure that wlan0 is your network interface (from your above post it seems it is). Basically, the only thing left that you didn't do is ask the dhcp server for an IP address. Once you run dhcpcd wlan0, you should be online.
But if you are secured via WPA(2), you'll need to use wpa_supplicant. Edit the file /etc/wpa_supplicant and add the following:
Personally, I never ended up using wicd, as it seemed when it was first introduced that it wouldn't stay connected for me either. I ended up just setting up my wpa_supplicant file and then modified /etc/rc.d/rc.inet1.conf to connect to that network (covered in the second link). Granted, this was probably 3 years ago (and I'd imagine things are much better than back then). It was probably right after wicd got introduced as a standard package instead of just in the extra/ directory. Now, all my computers are hard wired except for my laptop, but that has a weird hardware configuration that isn't very friendly to Linux (at least it wasn't last I looked).
Last edited by bassmadrigal; 07-16-2014 at 06:58 AM.
Frankbell - There was nothing useful in the wicd.log. The message i get is
Could not connect to wicd's D-Bus interface. Which then tells me to Please
check that the wicd service is running. So i did /etc/rc.d/rc.wicd start
which tells me it is already started.
Bassmadrigal - Thanks i needed to use the wpa_supplicant.At least now i can connect to the internet until i can figure out whats wrong with wicd.
Ok i solved my wicd problem. It seems that when i tried to do /rc.d/rc.wicd stop it was doing a trackback and would not stop. So i did a /rc.d/rc.wicd
restart then /rc.d/rc.wicd stop that finally stop wicd then i just did /rc.d/rc.wicd start and then started wicd-client.
Code:
bash-4.2# /etc/rc.d/rc.wicd stop
Stopping wicd daemon and closing connections...
Traceback (most recent call last):
File "/usr/share/wicd/daemon/wicd-daemon.py", line 1849, in <module>
main(sys.argv)
File "/usr/share/wicd/daemon/wicd-daemon.py", line 1760, in main
bus = dbusmanager.connect_to_dbus()
File "/usr/lib64/python2.7/site-packages/wicd/dbusmanager.py", line 48, in connect_to_dbus
return DBUS_MANAGER.connect_to_dbus()
File "/usr/lib64/python2.7/site-packages/wicd/dbusmanager.py", line 79, in connect_to_dbus
proxy_obj = self._bus.get_object("org.wicd.daemon", '/org/wicd/daemon')
File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
bash-4.2# /etc/rc.d/rc.wicd restart
Stopping wicd daemon...
Starting wicd daemon: /usr/sbin/wicd &
bash-4.2# /etc/rc.d/rc.wicd stop
Stopping wicd daemon and closing connections...
bash-4.2# /etc/rc.d/rc.wicd start
Starting wicd daemon: /usr/sbin/wicd &
Last edited by GreenFireFly; 07-16-2014 at 08:54 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.