libera/#devuan/ Thursday, 2024-10-10

onefangWhat's the generally accepted replacement for wicd in Daedalus?  My use case - I'm setting up my spare test computer to be portable, it's a tiny desktop that's made from laptop parts.  So I'll need to connect to random free WiFi hotspots (mostly the city councils) as I wander around with this.  Wicd was great for that sort of thing.03:39
debdogonefang: connman would be one option03:41
* onefang installs it and tries it.03:42
fsmithredI was using connman with two wireless networks in the house and it gave me a hard time about using the one I wanted to use. So I switched to network-manager. It's also possible to use wpa-gui. See https://www.devuan.org/os/documentation/install-guides/daedalus/network-configuration03:47
* debdog puts wpa-gui on his list03:49
rwpI have been using wpa-gui after the recommendations.  It seems it works well, for other people.  For me it's been somewhat problematic.05:14
rwpwpa-cli which is part of wpa-gui will start a second dhclient before killing the first dhclient resulting in two dhclients fighting over the interface.  Each will start by bringing the interface down and resetting it and then DHCP'ing an address.  At which point the other will do the same.  Flip.  Flop.  Endlessly.05:14
rwpI moved dhclient to dhclient.real and put a wrapper in place of dhclient so I could debug what's starting the 2nd one and it is always wpa-cli starting the second one.  And always when wpa-gui is actively running.  If I kill those two off then wpa_supplicant handles everything okay.  However...05:15
rwpFor some reason wpa_supplicant in this configuration will not associate with a different access point.  I think wpa-gui has used wpa-cli to instruct wpa_supplicant to use a particular access point only.  And therefore when I suspend here and resume there it doesn't follow.05:16
rwpIf I use wpa_supplicant just myself configuring and running it then wpa_supplicant automatically connects to new access points and reconnects as I relocate to a different one.05:17
rwpWhich means that instead of "Just Working" it means I have to manually get in there and either fire up wpa-gui to tell it to connect, again, to the AP or I have to ifdown and then ifup wlan0 interface.  Either of which is something it should have been able to do automatically and that which wpa_supplicant normally does automatically.05:18
rwpSo I am thinking of returning to connman again and refreshing my memory of why I don't like it either.05:18
rwpIn the meantime I now have my dhclient wrapper kill the previous running dhclient before starting a fresh one.  I tried not doing it and that works too but takes dhclient to try to time to renew the lease first.  So starting a new one causes the dhcp to happen now.05:20
rwpAnd I have resigned myself to the fast that when using wpa-gui it is a manual connect to the access point.  It won't do it automatically for it.  I have to tell it.  Each and every time.05:21
rrqrwp: I thought 2 dhcp clients come up (only?) if there's a misconfiguration in /etc/network/interfaces05:33
autortk05:34
rwprrq, What type of misconfiguration?  Here is mine: https://paste.debian.net/plain/133182205:36
rrqhmm looks same as mine except that I also have a "down" action for "default", to kill the dhcp client (I'm using udhcpc)05:38
rwpAnd looking at /etc/wpa_supplicant/wpa_supplicant.conf it appears that wpa-gui is explicitly disabling them all preventing wpa_supplicant from roaming among them.  disabled=1 is set with each of them.05:38
rrqI might have added that down" action to handle that dhcp client "replication"... (don't remember)05:39
rwpHmm...  That's an interesting thing.  You needed to put in a down action to kill the running dhclient.  And I am complaining that it starts a new one without stopping the previous one.05:39
rrqyes.. addressing same issue :)05:40
rwpHere is the first couple of entries in my wpa_supplicant.conf file.  Note that this file is managed by wpa-gui and I don't touch it so all of that config is output from wpa-gui.  Avoiding manual editing of that file is the entire purpose of wpa-gui.05:41
rwphttps://paste.debian.net/plain/133182305:41
rwpI have a dozen other network sections and all are pretty much identical to the tranquilizeddreams one using WPA and each of them has disabled=1 in it!  I included one coffee shop entry which is open without encryption and it is the only one that does not say disabled=105:42
rrqyes; though I think it's actually rewritten by wpa_supplicant05:43
rrq the other wpa_* tools talks to it via that ctrl_interface05:45
rwpI have also run a different laptop for a year totally manually.  I edited the wpa_supplicant.conf file and just hacked things in as I needed it.  Except for the tedious need to scan for new APs and then to create and add in a new network section doing everything manually worked extremely well.  Once a new network was present then wpa_supplicant the running daemon would roam among any of them.05:45
rrqworks well as long as there isn't 2 or more (enabled) AP nearby05:46
rwpI would still be doing that except for the recommendations for wpa_gui and so I have been using it instead.  But it has also been freaking out starting and restarting dhclients.  And that's how I have arrived at this point.05:46
rwpI normally have two APs in the house.  I didn't have any particular problem with it running that way in the manual mode.05:47
rrqmy sown action line is: down pkill -f "udhcpc.*wlan0.pid" || true05:47
rrqs/s/d05:47
rwpSo it seems you are also needing to kill the previous dhcp client, I'll say manually since this is not part of the standard process, too.05:49
rrqyes; it might be a newish handling of the "dhcp" method05:51
rrqthat each "ifup default" starts a new dhcp05:51
rrqI suppose one might get the same effect for a cable setupu using the dhcp method05:52
rwpNow that I realize that disabled=1 is set for every network I think I should hack that out and then run wpa_supplicant and I bet I would not need to touch it again, until I needed to use wpa_gui to add a new AP.  I am thinking that it will then add a new one and also disable all of the others as it has already done.05:54
rwpToo bad the man page for wpa_gui is so terse on documentation.  So terse that is is basically worthless documentation.  Sigh.05:55
rrqI thought all operationa logic is done by wpa_supplicant, using wpa_action, while wpa_guui and wpa_cli only mediates user interactions05:57
rwpIt would make sense if that were the case.  But my wrapper at /sbin/dhclient is indicating that as an extra it is being started by /sbin/wpa_cli -B -P /run/wpa_action.wlan0.pid -i wlan0 -p /var/run/wpa_supplicant -a /sbin/wpa_action06:00
rwpHere is the call tree looking upward from the newly called /sbin/dhclient up through the process tree: https://paste.debian.net/plain/133182506:01
onefangIn my case connman didn't help, but wpa-gui worked once, then I rebooted to see if it persisted, and it can't talk to wpa_supplicant now.  Then I went shopping.06:03
rwpD'Oh!  Looking at it now I am going through the options and I see dhclient -r there.  I didn't notice that before!06:03
rwp-r Release the current lease and stop the running DHCP client as previously recorded in the PID file.06:04
rwpSo...  It's actually attempting to kill the previous dhclient.  Which means I need to go back to the debugging again.  Let it kill the client, or attempt to, and see what happens then.06:04
rrqright.. it's the "ifdown wlan0" which comes before the "ifup wlan0=default" .. handling a disconnect/connect spike06:06
* onefang gives up on WiFi networking for that computer for now. Ethernet strung across three rooms is working at home, WiFi when out and about was just a "nice to have". Time to get back to getting ALSA and JACK sorted on it. Those are the actual important thing.06:08
rrqmmmm maybe it was that inability to kill dhclient lead me to go to udhcpc ... (too foggy memory:)06:08
onefangCoz it's job as a portable computer is mostly to be a synth for my MIDI keyboard.06:09
rrqlead = that led06:09
rwpWired is best.  But out and about needs WiFi.  This was good because I moved forward one step now understanding that the -r is sometimes there.  I need to account for that in the debbuging.06:09
debdogoy vey, feels like living in 200506:09
debdogmy connman experience ain't better than onefang's06:10
rwpconnman worked for me.  I expect I will return to it if I don't figure out wpa_gui.  But connman worked.  It just had an unusual UI.06:12
rwpIt's the highly odd user interface of connman I didn't like.  But I didn't have any actual bugs like extra dhclients using it.06:12
debdogyah, the UI is bad. but in my case it unloaded the kernel module and wifi stopped working entirely06:13
onefangMostly I couldn't find a way to "show me the APs, lemme choose one" in connman.06:13
rwpIt's there.  It's just so bizarre that one can't believe that's the UI for it.06:15
onefangSo best avoided, and no point hunting for it then I guess.06:15
rwpIt's been long enough now I don't remember exactly how it is driven.  I guess I will have to activate it again and use it again for a while to remember.06:15
rrqyou can use linssid to see which AP there are06:16
rrqthough not selecting/connecting06:16
XenguyI absolutely hated connman when I tried it; it won't get another chance on my laptops...10:10
Xenguywpa-gui works fine for my simple use case:  connect to public wifi when I'm out and about.  I always ifdown eth0 before I suspend my laptop and leave home, then connect to public wifi with wpa-gui.  When I'm done a session (e.g. maybe I'm heading home now), I right-click the wpa-gui icon in the tray, disconnection, and then quit.  So I always tear-down any given public wifi session.  It works fine for me, with no issues, so much so that if wicd ever mananged10:14
Xenguyto make a return, I probably wouldn't bother going back to it, though it worked quite nicely for me.10:14
Xenguys/disconnection/disconnect10:15
buZzi miss wicd :(13:51
djphbuZz: same.13:58
cousin_luigibuZz: Does debian have wicked?14:52
buZzcousin_luigi: no, its python214:52
cousin_luigibuZz: Hmm, looks like C to me (https://github.com/openSUSE/wicked)14:54
buZzwicd14:54
buZznot wicked14:54
cousin_luigiI wrote wicked14:54
buZzwelp, debian has no wicked either, whatever that may be :D14:54
cousin_luigiTo make this absolutely plain, wicked is in no way related to WICD, for good14:55
cousin_luigior bad. It's just coincidence.14:55
buZz'a library' , ok14:55
cousin_luigiInteresting.14:55
cousin_luigiIt's an alternative to networkmanager or ifupdown, I believe. Not that I've used it much.14:55
cousin_luigiBy the way, does anyone here use iwd?14:56
drizztnot me15:20
drizztdid not even know about it :(15:21
avir327cousin_luigi: I have been fiddling with it, but the 'wired' module (for 802.1x auth) seems to be not yet fully implemented. That had been the only reason so far to check it out.16:02
avir327Just read, that Debian is planning to deprecate ifupdown... (which is probably already mentioned in the backlog?)16:03
yeti*ribbit!*16:04
drizztavir327: do you have a date on the post mentionning this ?16:04
yetidebian plays boiling the frog with us16:05
drizztbecause the first mentions about changes on all of the network tools is more than a decade old16:05
drizzt2011 from what I can remember16:05
drizztifconfig was due to be replaced by ip at that time16:06
drizztyep : a blog post from december 2011 : https://dougvitale.wordpress.com/2011/12/21/deprecated-linux-networking-commands-and-their-replacements/16:07
drizztalmost 13 years old16:07
avir327drizzt: It was just a few days ago, definitely this week.16:08
drizztand dit some stupid move from iptables to nftables even before nftables was functionnal (it's still not fully functionnal)16:10
drizztbut maybe this time there's something serious behind, aside from doing something stupid16:10
drizzthttps://debian-facile.org/viewtopic.php?id=2016116:11
drizzt201716:11
drizzterf, this is ubuntu related rather than debian16:12
avir327drizzt: Can't find it right now, might have been some warmed up news on yc/hn.16:12
avir327drizzt: https://lwn.net/Articles/989055/16:23
avir327I /read/ it this week, lacking an lwn account.16:24
drizztUsed to have one but it's way too time consuming16:25
drizztavir327: The plan right now seems to be to change the default network manager, not to abandon ifupdown16:27
drizztand lol : "he argued that systemd‑networkd would be a better choice for server and embedded installations"16:27
drizztsystemd is a really stupid choice for an embedded system ... so is any systemd related stuff16:28
drizzt(well I could have stoped the sentence after the 6th word anyway)16:29
avir327drizzt: Yeah, perhaps I am still shocked by the mention... just recently got that thing running with ifupdown, only with ifupdown. Had tried a lot to get nm working with machine certificates.16:34
avir327("for usability")16:35
XenguyDeprecating ifupdown in favour of systemd or network manager based networking?!  Gawd forbid, do I have to switch distros to avoid this Debian contamination??16:40
cousin_luigiavir327: Wireless with 802.11r seems to work better.17:29
drizztXenguy: alternative is to package for devuan :)19:06
drizztwe already have an alternative distribution, why not use it to go on maintaining usefull stuff which newbies to not find fancy just because it's working fine and as such did not receive 1500 pull requests on github over the last few days ?19:08
drizzt(what most people call "an inactive projetc"19:08
drizztor even "unmaintained"19:09
drizztbut a programm as simpel as "/bin/true" or "/bin/false" does not need "active maintainance"19:09
fsmithreddrizzt, as this list grows, we will need more package maintainers: https://salsa.debian.org/matthew/orphan-sysvinit-scripts/-/tree/master/scripts?ref_type=heads19:22
drizztfsmithred: yep, gonna learn the basics using debian maintainers time by handling the packaging of my orphaned package lpctools19:28
drizztI paid a debian maintainer to take care of the packaging some (long) time ago, as a support to debian19:29
drizzthe turned out to be a systemd fanboy :(19:29
drizztfirst packaging occured before the systemd mess19:29
drizztwhen he asked me to pay again so he can go on maintaining the package I gave him the whole length of my point of view on the subject19:30
drizztso my tool is now orphaned, which a goos starting point :)19:31
drizzt(well, I already built packages to deploy some stuff like qtembedded on specific embedded platforms, but this will be a step further19:32
fsmithredcool. I see it's in excalibur/ceres19:33
fsmithredHim??19:33
fsmithredsomeone else is maintaining it now?19:34
fsmithredSophie19:34
drizztsophie is working for the company created by the guy I paid back in ... 2012 ?19:36
drizzthttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=103715019:36
fsmithredI dream that one day a bunch of debian developers will come over to devuan, and debian will have to get packages from us.19:45
fsmithred(pretty sure they already do get some)19:46
* golinux nods and wonders when Debian devs will have had enough of the abuse over there19:46
Xenguydrizzt, fsmithred , golinux I suppose learning how to package would be a useful skill anyone might be able to investigate (surely it has to be easier than building ISO's but maybe I'm wrong about that)19:54
fsmithredbuilding isos is actually pretty easy19:55
XenguyWell unless I'm entirely uninformed, it sure looks like a black arte to me  = )19:55
fsmithredsquash a filesystem, put it in a live-iso framework using xorriso (or genisoimage if you prefer)19:56
drizztXenguy: building a package is very straightforward and easy20:12
drizztgetting it in a distrib may be harder (need signing, having your signing key in the signing pool, and related stuff) and also submitting to the server correctly, etc ...20:13
drizztas for the iso, it's seldom usefull to build an iso (unless you still use CD/DVDs)20:14
drizztbut there's no need for an ISO on an USB key20:15
Xenguyfsmithred, Oh, maybe we are think of different kinds of ISO's (e.g. Excalibur ISO's might take more knowledge to build correctly?) ?20:16
fsmithredXenguy, yes.20:16
Xenguydrizzt, re: package building, I expect Devuan is less bureacratic than Debian at least20:17
fsmithred^^^understatement of the day20:17
XenguyI recall someone else wondering why the ISO format is still used, but I have no knowledge of why it still seems to be the predominant format installation media20:18
fsmithredI'll answer in OT20:30
drizztOT ?22:52
drizztoff-topic ?22:52
debdogright: #devuan-offtopic22:54

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!