dhcpcd-discuss

Re: Problems using dhcpcd-ui

Tim Tassonis

Thu Aug 04 07:27:51 2016

Hi Roxy


On 08/04/16 01:11, Roy Marples wrote:
Hi Tim

On Wednesday 03 August 2016 16:50:33 Tim Tassonis wrote:
I'm a long-term (very satisfied) user of dhcpcd and wanted to try out
dhcpcd-ui (the gtk-2 version), as a possible replacement of NetworkManager.

Glad you enjoy dhcpcd :)

The idea is to only use it to select wireless networks on the wlan0,
starting of wpa_supplicant and dhcpcd itself will be performed before in
the background.

However, I don't quite seem to get things working.

Well, let's get it working!

I stopped network manager and then started dhcpcd on the wlan0 interface
with:

sudo /sbin/dhcpcd wlan0 -b -q

That's the mistake right there.
It's not clearly spelled out in the man pages, but dhcpcd(8) says this:

 /var/run/dhcpcd.sock
     Control socket to the master daemon.

dhcpcd needs to be running in Master mode - ie on all interfaces. You're
restricting it on the command line to wlan0.
Sadly, we need to restrict it like so to preserve legacy behavior.

Either use the -M option or allow/denyinterfaces directive in dhcpcd.conf.


Thanks a lot, this got me a bit further, but I still was not able to configure a wlan connection. I added

allowinterfaces wlan*


to the config and then started dhcpcd without an interface and got the /var/run/dhcpcd.sock, group writable for wheel, which I am part of.

I then started dhcpcd-gtk and I got:

** Message: Connecting ...
** Message: Status changed to opened
** Message: Connected to dhcpcd-6.11.2
** Message: Status changed to disconnected
** Message: wlan0: Not associated
** Message: wlan0: Received scan results

** (dhcpcd-gtk:25850): WARNING **: dhcpcd_config_write: Permission denied

** (dhcpcd-gtk:25850): WARNING **: dhcpcd_config_write: Permission denied



The Gui also complained about not being able to write to /etc/dhcpcd.conf.


I got these messages away by calling dhcpcd-gtk as root, but I wonder if that is neccessary? Does dhcpcd-gtk have to make changes to dhcpcd.conf? If so, no problem, I can also make the file group writable for wheel.


But asides, I got no way to configure any access point, I assume that my wpa_supplicant stuff is wrong, too.

I have compiled wpa_supplicant with dbus support, do I have to remove this?

Might be nice to know how and when you invoke wpa_supplicant and what you config file looks like.


Kind regards
Tim


I have noticed this in the dhcpcd-gtk man page, as well as others, here:
http://roy.marples.name/projects/dhcpcd-ui/info/ca2b7e8f3311a1ac

Hope this helps!

Roy



--
decentral.ch - IT Stuff
Tim Tassonis
Dennlerstasse 36
8047 Zürich

stuff@xxxxxxxxxxxx
+41 79 229 36 17

Follow-Ups:
Re: Problems using dhcpcd-uiRoy Marples
References:
Problems using dhcpcd-uiTim Tassonis
Re: Problems using dhcpcd-uiRoy Marples
Archive administrator: postmaster@marples.name