libera/#devuan/ Wednesday, 2023-06-14

gnarfaceGhost2: it might work, but installing stuff from newer releases into older releases is not a supported. you're supposed to recompile it.00:01
gnarface*not a supported action00:01
gnarfacewhy, you're welcome. of course i'll help you rebuild it. using the packaging tools it should be easy!00:04
debdoghehe00:04
hacksenwerkHi. How can I find out why dhcp takes a long time at boot? The routers are on and it is a raspberry p400. In #raspberrypi they only trolls to use systemdeath for that task...13:15
hacksenwerkIt takes at least a minute or so.13:15
djphuse wireshark to watch the network13:25
hacksenwerkdjph: o013:27
hacksenwerkThat's a monster is that really the only way?13:27
hacksenwerkI mean it is not a big deal, I was just wondering why it takes so long and looked at the boot output why connecting my headless pi to a monitor.13:29
hacksenwerk*while13:29
djphhacksenwerk: I mean if you want to know _WHY_ DHCP takes so long ... watch the network for the handshaking13:32
djphalso, are you connecting with a wired connection, or wifi?13:33
buZzif dhcp takes -very- long and you dont know why; i've found that 'send dhcp hostname' often causes it13:54
buZzyou might be able to make your dhcp client send its hostname along with the request, and see it get a lease faster13:54
buZzsomething like 90% of the cases i've debugged , this was the case13:54
hacksenwerksorry was afk14:45
hacksenwerkdjph: I use wired connection14:45
hacksenwerkbuZz: How do I make this?14:47
buZzhacksenwerk: add 'hostname' on a line in dhcpcd.conf14:49
buZzaccording to https://manpages.ubuntu.com/manpages/trusty/man5/dhcpcd.conf.5.html14:49
buZz(i dont know what dhcp client you're using)14:49
hacksenwerkbuZz: I have isc-dhclient-4.4.3-P1 on that p40015:12
buZzcool15:12
hacksenwerkbuZz: There's no dhcpcd.conf bit a /etc/dhcp/dhclient.conf15:14
buZztry 'man dhclient.conf' then ;)15:14
buZzand find the relevant option15:14
hacksenwerkand there's this line: send host-name = gethostname();15:15
buZzalright, and its got a unique hostname?15:15
buZznot the 10th 'raspberrypi' on your lan? :P15:15
hacksenwerkthe pi? yes.15:15
hacksenwerkno15:15
buZzoh, another thing might be having ipv6 enabled15:15
hacksenwerkit has a unique one15:15
buZzespecially on some SystemD setups that causes high delays15:15
hacksenwerkbuZz: ... tehre's no systemdeath...15:16
buZz(on networks without proper configged ipv6)15:16
hacksenwerkI use devuan15:16
buZzalright15:16
hacksenwerkWe are in #devuan ;P15:16
buZzthen i'm out of ideas,  check traffic or check logs :)15:16
hacksenwerk/var/log/boot ?15:17
buZzdhcp client logs, dhcp server logs15:17
buZzbtw ; you can completely ignore this issue and just give your device a -static- ip ;)15:17
buZzs/can/could/15:18
hacksenwerkman dhclient "In either case, the client logs messages using the syslog(3) facility15:21
hacksenwerksyslog is full of dhcp stuff from the last decades...15:21
hacksenwerkThere's this at /var/log/boot: https://paste.debian.net/plainh/7862ed1115:21
hacksenwerkAs you can see from here on: Wed Jun 14 13:06:23 2023: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6 it does nothing for a minute15:22
buZzit got DHCP within 1 second there15:22
buZzfrom 13:07:3115:22
buZzoh,Wed Jun 14 13:07:31 2023: Internet Systems Consortium DHCP Client 4.4.3-P115:22
buZzthats the first line15:23
buZzit didnt get any dhcp OFFER on the physical network before15:23
buZzif it worked for 'decades' (weird, its a pi400, not even 10yo) and this SUDDENLY started, replace the network cable15:23
hacksenwerkbuZz: but that's weird, caus it also does this, when I had a connection via ssh before and the reboot from ssh without touching the routers or something15:24
hacksenwerkbuZz: the cable?15:24
buZzsure, intermittent connections are intermittent15:24
hacksenwerkwait!15:24
buZzah lol , i see15:24
hacksenwerkcould it take that long because the cable is very long?15:24
buZz-first- it tried eth015:24
buZz-second- it tried eth115:24
buZzeth0 didnt give a link15:25
buZzeth1 did15:25
hacksenwerkbuZz: yes both interfaces are in /etc/network/interfaces15:25
buZzwhich 'both' , pi400 has a single ethernet port15:25
hacksenwerkJust in case my ethernet-to-usb adapter breaks at some point in the future15:25
hacksenwerkbuZz: I use an adapter15:25
buZzeth0 is not connected15:25
buZzyet its doing dhcp over it15:26
buZzwhich indeed never gets a ip15:26
hacksenwerketh0 is the ethernet port, eth1 is a usb port15:26
buZzeth0 doesnt give DHCP15:26
buZzeth1 does15:26
buZzread your own log again15:26
hacksenwerkor reverse i dunno15:26
buZzits doing dhcp on BOTH15:26
buZzyet eth0 isnt working15:26
hacksenwerkand it doesn't matter cause I always use the adpater15:26
buZzcool, so you found the issue now, enjoy :)15:26
hacksenwerk:/15:27
buZzTLDR ; disable doing dhcp on interfaces that arent working15:27
hacksenwerkbuZz: no15:27
hacksenwerkbut how about this:15:27
hacksenwerkplacing eth1 above eth0 in /etc/network/interfaces ?15:28
hacksenwerkIs this file red from top to bottom?15:28
hacksenwerkSo it would first try eth115:28
buZzi dont understand what you're trying to achieve, ALL interfaces with dhcp enabled will do dhcp15:28
buZzit would still be hanging trying to get a ip for the interface that you configured as dhcp15:29
hacksenwerkbuZz: so it would bound on eth1 and then do that "waiting"15:29
hacksenwerkok15:29
buZzit will still be delaying15:29
hacksenwerkThe problem is, that that adapter is always eth1 and if it will break one day, I will not be able to connect via the ethernet port15:30
hacksenwerkSo I need to keep that in interfaces15:30
hacksenwerkbuZz: But thanks for your help, I've learned something again. :)15:31
buZz<315:32
buZzhacksenwerk: everything 'breaks one day' , i dont see why you need to burdon today just to safe tomorrow :P15:32
buZzi dont downclock my desktop cpu to 'make it work more days' either :P15:32
buZzbtw; pi4 ethernet isnt a USB device, but a PCIe device15:36
buZzso its faster15:36
hacksenwerkbuZz: It is not about "faster", it is about firmware15:37
hacksenwerkThe adapter runs on the usb 2 port15:37
hacksenwerkhttps://libreboot.org/faq.html#nic-ethernet-controller15:38
hacksenwerkbuZz: further I never felt a difference in speed :)15:39
hacksenwerkIt has 100Mbps that's more than I pay for ;)15:39
buZzoh your only network usage is internet?15:40
buZzyeah likely doesnt matter much then15:40
hacksenwerkbuZz: yes and local network15:40
hacksenwerkI ssh to that pi with my laptop15:40
buZzhacksenwerk: btw, USB network cards have firmware too15:40
buZzyou just cant read the firmware15:40
buZzits internal on the device15:40
hacksenwerkbuZz: I know, but it for example has no dma, at least 2.015:41
hacksenwerkusb 4.0 has it and 3.0, or 3.1 I'm not sure15:41
buZzyeah lol, i dont understand avoiding dma :D15:41
hacksenwerkIt is just the traffic goes over your cpu first15:41
buZzno, DMA is -direct- memory access15:42
hacksenwerkyes15:42
buZzdoesnt go through CPU15:42
buZzall USB traffic does15:42
hacksenwerknot-dma goes over cpu15:42
buZzindeed, so makes it slower -and- higher load on cpu15:42
hacksenwerkbuZz: you will not notice it trust me15:42
hacksenwerkand I'm on an old machine here :D15:43
buZzhacksenwerk: -i- use a network to capacity15:43
buZznot 'just my internet'15:43
hacksenwerkbuZz: I have problems understanding that15:43
hacksenwerkbuZz: Can you rephrase it please?15:44
hacksenwerkLook: I try to avoid as many unfree hard- and software as possibel. So when most of my peripherals run over the same firmware, like usb, then I do not have to care so much about firmware in other interfaces, like cdrom devices, hdds and ssds and so on.15:48
hacksenwerkAnd you really don't have to worry about having slower tasks, you can not notice that if that is the case, or maybe only on some machine that is even much older then mine.15:49
hacksenwerkBut only as long as you use a usb specification that has no dma,wich is why I avoid everything over usb 3 (the pi has it but i only use it for dvd ripping and nothing more).15:52
hacksenwerk*over usb 215:52
blizzowI'm futzing about with the Raspberry Pi 4 image. I imaged a USB stick with the daedalus image and promptly changed /etc/apt/sources.list to ceres and ran 'apt full-upgrade'16:16
blizzowA few things: I wanted to encrypt my root partition so only boot was unencrypted. Anyone have an idea on how to do this?16:18
blizzowAlso, I wanted to make sure opengl hardward acceleration is available. The typical boot partition layout and files for pis is not present in /boot. How might I enable opengl?16:19
blizzowFinally, I only see firefox-esr in ceres. Is there a repo to add to get regular or edge firefox in ceres? I don't understand why unstable only has the long term release of firefox and the release (daedalus) has the latest firefox.16:20
blizzownevermind about that last point, I see the non-esr in the repo.16:21
ted-iousblizzow: What does full-upgrade to ceres do from daedalus?16:25
ted-iousAnd how is it different from full-upgrade from chimaera?16:25
blizzowted-ious, I'm not sure how it's different. I was just operating off a page I found about how to 'upgrade' to ceres.16:38
blizzowceres being an unstable rolling-release. daedalus being a point in time release.16:38
ted-iousRight but daedalus was just made out of ceres so I was wondering what upgrading does.16:39
blizzowI think it's a grand total of 20 or so packages that get upgraded.16:40
rwpNote that Sid/Ceres has been frozen in preparation for releasing Debian 12 Bookworm.  That has happened and now Sid and Ceres are zooming forward.  I've had 79 packages upgraded in the first 24 hours and 73 today already.18:17
rwpCeres will be a wild ride over the next month or months as everything that had been held back by the release freeze will now be allowed through.18:17

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