Re: Problems using dhcpcd-ui
Roy Marples
Thu Aug 04 07:51:36 2016
Hi Tim
On Thursday 04 August 2016 03:38:26 Tim Tassonis wrote:
> 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.
You should only see that if you right click the icon and select preferences
yes?
> 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.
It does, so make the file write-able for wheel.
I may introduce config editing via the control socket, but that bloats dhcpcd
more which I don't want.
> But asides, I got no way to configure any access point, I assume that my
> wpa_supplicant stuff is wrong, too.
Well, it won't configure your access point for you.
But it will configure wpa_supplicant to talk to your access point!
Simply left click the icon and you'll see a list of SSIDs in range. Click your
one and a box is presented to enter a PSK. You can either enter it, or click
cancel and wpa_supplicant will use the last remembered PSK.
If you don't see your SSID then you'll need to setup your AP to broadcast it I
guess. All dhcpcd does here is show the contents of
wpa_cli scan_results
> I have compiled wpa_supplicant with dbus support, do I have to remove this?
No, you don't have to remove it.
> Might be nice to know how and when you invoke wpa_supplicant and what
> you config file looks like.
Here's my wpa_supplicant.conf
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
update_config=1
network={
ssid="UberNET"
psk="mypskgoeshere"
key_mgmt=WPA-PSK
}
Roy
Archive administrator: postmaster@marples.name