libera/#devuan/ Tuesday, 2023-11-21

fsmithredconfirmed: plain 686 kernel sees ass 2G ram. -pae is not needed, jjakob rwp00:16
jjakobwell I already selected the -pae kernel, now I'm trying to undo my stupidity again as I selected GPT and now grub won't install as there's no partition marked bootable00:16
jjakobI dunno if I should try figuring out how to set a bootable flag on a partition in GPT or just replace it with a MBR table00:17
fsmithrednot bootable, you need a special partition for gpt with mbr00:17
fsmithredif you don't need more than 4 partitions, mbr makes sense00:18
jjakobspecial partition? I just created one partition, and set its type to "physical volume for encryption"00:18
fsmithredbut gpt/legacay bios boot needs 1M partition with no filesystem00:18
jjakobthen it's LUKS inside that, then LVM, then a root and a swap LV00:18
fsmithredand flag ef02 (gdisk)00:18
fsmithredor bios_grub in gparted00:18
jjakobI already had to set GRUB_ENABLE_CRYPTODISK=y manually00:19
fsmithredreally 1MB00:19
fsmithredwhat you did should work for msdos partition table00:19
jjakobthat's what I usually do for MBR, and it works there, just now I decided to try GPT for the heck of it.00:20
fsmithredthat's a lotta layers for EEE00:20
fsmithredwell, unless you left a tiny bit of free space to make a new partition, you'll have to redo it00:20
jjakobI think it left 1MB at the start free00:21
fsmithredI don't know if you can use that. I'd be interested to hear how it works.00:21
jjakobI want to try root on encrypted zfs dataset but I have no idea if devuan has a zfs installer00:23
fsmithredyou might find instructions for zfs at the forum00:24
fsmithredmason might have his own installer00:25
jjakobI have servers with encrypted zvols that auto unlock with systemd but I haven't tried without systemd yet00:28
jjakobthere's no gdisk in the mini iso, I downloaded fdisk and parted in the installer modules, probably with parted somehow but where to put the start of the partition?00:31
rrqmmm first partition usually starts at sector 2048 nowadays00:36
fsmithredthat's probably where the first partition already starts. We were looking for a place to add a bios_gtub partition00:38
fsmithredis there a way to convert gpt to msdos without having to reinstall?00:40
rrqright I think an MBR partition table allows a sector start at 64, but GPT wants 204800:40
rrqif you copy all the numbers it should be fine with fdisk00:41
fsmithredthe extra partition is only needed for gpt00:41
rrq(e.g.)00:42
fsmithredoh...00:42
fsmithredthat just sunk in. I recall doing something like this with sfdisk a couple decades ago.00:43
rrqyes the partition tabls are just some data tables in the first few blocks (though GPT also has a "backup table" at the very end)00:44
rrqnothing intruding into the actual partitions00:44
jjakobI did this, grub loads and asks me for the luks password but then says invalid passphrase00:45
jjakobin parted: disk_set pmbr_boot on; mkpart grub 34s 2047s; set 2 bios_grub on00:46
rrqI was just about th\o add that some software do ugly things in the first few blocks too; I'm not sure what luks does.00:46
jjakobalso says "no such cryptodisk found"00:46
jjakobluks is confined to the partition it's in, starting at 204800:47
jjakobrebooting to chroot back in00:47
rrqright. should be ok; you have verefied the start and end nmbers I gues hmm00:48
rrqthe partition type?00:48
jjakobI was unsure about the start sector but 34 seems to work, found it here https://unix.stackexchange.com/questions/679971/how-to-create-a-grub-bios-boot-partition-using-sectors-34-to-204700:48
jjakobof what, the luks partition?00:49
rrqyes00:49
jjakobhmm whatever d-i picked, can't remember00:49
rrqwhat type is it now?00:50
rrqmaybe someone with a luks partition that can tell what the partition type is for them?00:51
fsmithredwhat do you need?00:51
rrqthe partition type00:52
fsmithredwhere do I find that?00:53
fsmithredmy brain is not working right now00:53
fsmithreddf -Th?00:53
fsmithredfdisk -l ?00:53
rrqfdisk -l is fine ... the "id" column00:54
fsmithredlinux00:54
fsmithred8300:54
rrqok hmm I thought there were a "Linux LUKS" type00:54
jjakobnope, not in MBR00:55
jjakobgdisk or parted show the same? you do have GPT, not MBR?00:55
rrqfine. I'm wrong on that00:56
fsmithredgpt machine is asleep00:56
fsmithredbut I think it's just the same (linux 83)00:56
fsmithredoh that one is not luks00:57
rrqaccording to the bokk (wikipedia) luks wants type 0xe8 rather than 0x8301:01
rrqhttps://en.wikipedia.org/wiki/Partition_type01:02
rrqworth a try I guess01:02
jjakobit says 830001:03
jjakobchanged it to 8309, now fdisk says it's unknown01:05
fsmithreddid you run grub-install again after creating the new partition?01:05
rrqwhy 0x8309 ?01:05
jjakobgdisk said that's the type for LUKS01:07
jjakobyeah I reran grub-install and update-grub, didn't change anything, still get invalid passhprase01:07
jjakobweird that it finds the right luks volume with the correct uuid and tries to open it01:08
jjakobgrub.cfg had insmod luks201:08
jjakobprobably wrong pbkdf or something that grub doesn't support yet https://wiki.archlinux.org/title/GRUB#LUKS201:10
jjakobbooting into rescue again, seems like luksConvertKey should make this easy01:11
rrqsounds good :)01:19
jjakobstill no luck01:35
rrqin the worst of worlds the luks password encryption is sensitive to the partition table data or location01:36
jjakobI think it's just GRUB not knowing how to decrypt LUKS2.01:39
jjakobthat archwiki page says it partially works in grub 2.06 but some bugs were fixed later01:39
jjakobI did that luksConvertKey and it successfully converted it to pbkdf201:42
jjakobcryptsetup can convert from luks 2 to 1 now? I need to try that, tomorrow01:45
masonjjakob: I'm largely AFK today but scanning the conversation, something I find useful here is the keyutils package. With it, you can set groups of disks that share a key, so you unlock the key once and it'll unlock the rest. Example from local systems: https://bpa.st/LD5Q02:53
masonAs for an installer, it's more just a script that drives debootstrap, although mmdebstrap seems the better choice rolling forward, so I might migrate at some point. It sets up LUKS and ZFS atop it and then runs debootstrap to populate.02:54
onefangI switched to mmdebstrap and I'm happy I did.03:35
onefangmason: ^^03:35
onefangDo ALL the web browsers need pulse for microphones to work?  Can't use ALSA or JACK?04:27
onefangAh I can get firefox to use apulse apparently.04:35
rwpI normally run "apulse firefox" on my laptop.  Works great.  Recommended.04:48
onefangProgress, now it's actually asking for permission to use my microphone, but none of the microphone test sites hear it.05:01
rwpIt's traditional that there are at least 37 mute controls in series and all must be enabled before anything can be heard through them all.05:17
onefanglol05:17
onefangDamn, I've only found 5 of them.05:18
masononefang: Firefox can work with straight ALSA.05:19
masononefang: https://bpa.st/GLLA05:19
onefangIncluding firefox-esr?05:20
masononefang: If you say "aplay -l" or "arecord -l" you'll get the right numbers, should you need such a thing.05:20
masonyes05:20
masonAt least, last time I tried, which I should repeat so I can continue saying this assertively.05:21
onefangI did the arecord thing to check ALSA was hearing my mic, it is.05:21
* onefang waits for you to repeat.05:22
masonhm, webrtc.org has evidently gone away05:23
masonIs there a useful test site?05:23
onefangThat was gonna be my next question.  A useful microphone test site, coz maybe the ones DDG found are useless?05:24
masonIn the not-distant past test.webrtc.org was useful, but not any more.05:24
masonAh, I have an idea.05:25
masononefang: I'm going to have to dig into this. arecord can use the microphone as my user, but Firefox cannot, using the Devuan jitsi as a test case.05:30
masonI tried on my laptop, which has a simpler sound set-up.05:31
gnarfaceapulse has mic support now? that's news to me05:31
onefangman apulse - "dsnoop plugin allow multiple applications to capture from a single microphone;"05:32
rwpmason, Debian's compile of Firefox enables ALSA okay.  Upstream Mozilla Firefox compiles it with ALSA disabled.  So it all depends upon which version one is using.05:32
onefangI'm using Chimaera Devuan Firefox-ESR.05:32
masonrwp: I'm curious at it not finding my microphone. It's the Debian build, and output certainly works fine with bare ALSA.05:34
gnarfacewas device specified when alsa was tested?05:34
gnarfacefirefox probably isn't smart enough to find the mic unless it's on 0,005:34
rwponefang, The Debian package works with ALSA okay.  Should work.05:35
onefangWith apulse it asks for permission to use the microphone, without it no asking.05:35
rwpmason, Hmm...  I might try an alternative such as "mumble" (a voip voice conference program, I use it weekly) and see if the setup wizard there hears your microphone.05:35
masonAh, I used to use Mumble a decade or so agfo.05:36
masonago* - good idea05:36
onefangThink I've worked for the company that made Mumble.05:36
rwponefang, The package version should work with either alsa or pulseaudio so running it with apulse would just cause it to use that interface.  But that's a clue.  Maybe something on your alsa is not yet enabled.05:36
onefangMy .asoundrc doesn't have this dsnoop thing in it.05:39
onefangIt does have dmix.05:41
rwpI have never needed to set up a .asoundrc file before.05:44
masonI use it on my workstation because input is USB.05:44
onefangI have complex sound setup and use JACK for most things.  Things like my graphics card has 6 sound output devices, though only four video output plugs.  Motherboard has two sound chips.  I use two USB devices for my music.05:46
onefangI'm trying a different approach.  using the second option on this page https://jackaudio.org/faq/routing_alsa.html any ALSA application is now being routed via JACK, and the inputs and outputs get routed automatically.06:23
onefangPlus I can route multiple things at once, coz it's JACK.  B-)06:24
onefangEverything works fine, except firefox-esr still can't hear my microphone.  A JACK device for capturing it pops up.06:25
gnarfaceonefang: you mentioned that your .asoundrc is missing a capture definition; that's probably what it would take to make firefox work right06:29
onefangIt has a capture, works fine with arecord using the default ALSA device.  I said it has no dsnoop.06:30
gnarfaceoh, well i assumed that you'd omitted capture too when you said that, but i think my general point still stands06:30
gnarfaceif arecord worked then it's not a driver issue06:30
gnarfaceand there's only so much that can be wrong06:31
gnarfacewithout dsnoop, only one thing can record at once, and with some devices they can't even do duplex right without a .asoundrc06:33
gnarfacestill, i don't recall firefox ever working right with regards to mic input, so maybe it's just a bug in firefox06:34
onefangDid you miss the "I'm routing ALSA apps through JACK now" bit?06:34
gnarfaceno, no i didn't miss it i was just trying to talk you down off that ledge, since you also mentioned that firefox still doesn't work06:35
onefangAnd NOW firefox-ESR AND Falkon hear my mic.  B-)06:35
gnarfaceah06:35
gnarface<onefang> Everything works fine, except firefox-esr still can't hear my microphone.  A JACK device for capturing it pops up.06:35
gnarfacethis was your last statement, so i was just trying to find you a solution since jack wasn't apparently it06:36
onefangI was still playing with stuff.06:36
gnarfaceif you got jack working well... whatever works, but for the record i still think a correction to your ~/.asoundrc would have done the trick with less complication06:36
onefanghttps://www.onlinemictest.com/ is hearing my mic on both browser at the same time.  I like this solution.06:37
onefangNow I can put EVERYTHING through JACK.  Loving it.  Thanks everyone for helping out.06:41
onefanggnarface: I have a complex JACK setup for reasons.  Now it is a complete solution for all my sound stuff.  Even console beeps go through it, routed to my main monitor.06:42
onefangI have a telehealth appointment on Thursday, and it was their test web page that isn't hearing the microphone after I got the JACK thing working.  The web site I mentioned above does work.  Same on all the browsers I've been testing.  Not sure if they'll use the telehealth web site or phone me, they told me both.06:55
onefangSo I'm just gonna assume they only tested their telehealth page under Windows and Mac.06:56
systemdletewhence come this:  https://i.imgur.com/oAsNQgo.png09:38
systemdletethe system had been idle for a long time, then this suddenly occurred.   I did remove a USB from the VM almost an hour before, but I don't know if that is related or not.  I have been noticing these rcu traces increasingly lately.09:40
systemdleteread-copy-update09:40
systemdleteI don't recall seeing these until rather recently.09:41
systemdletebtw, this happened to be a daedalus VM, but I am still running chimaera VMs and hosts and have seen them there as well09:41
systemdletethe host system was also daedalus.09:43
systemdleteI sense that the references to "GP" and the like might be hinting at the video drivers?09:44
systemdlete(only using radeon here as nvidia/nouveau doesn't seem to play well these days)09:44
gnarfacehard to say, not sure about the GP thing09:56
gnarfacewhat it looks like is that it was idling and something couldn't wake up the cpu core it wanted fast enough then freaked out09:57
gnarfaceseems like a problem with power management09:58
gnarfaceunless you're right about the "GP" thing i don't see any reason to pin this on the video card09:59
gnarfacebut if you're running without the appropriate cpu microcode package, you might want to try adding it09:59
gnarfaceyou may also want to check the bios for a setting called something like "c1e" power saving10:00
gnarface(then disable it)10:00
gnarfaceobviously make sure acpid is installed and running too, but i'm not sure this could even happen without it10:00
gnarfaceheh, and look up what "rcu" means in this context, i think it was important10:02
gnarfacehmm, not sure but maybe also try adding the package "irqbalance" if you don't have it?10:02
al1r4dFolks, what codename of Devuan are you using? I am Ceres10:14
al1r4d=)10:14
gnarfacei have literally every single release installed somewhere or another10:15
gnarfacedaedalus on this machine10:16
gnarfacesystemdlete: it's some kernel process, not sure if the stack trace could lead you to whether it's a driver for a particular piece of hardware or not but maybe worth looking into too10:20
al1r4dI have a problem14:00
al1r4dSomehow the volume is always mute when I pull the headset when my laptop is turned off in the headset is connected14:00
|cos|with this being devuan, i presume the first culprit is not around? systemd's older brother pulseaudio? killing that one tends to solve 90% of audio problems.14:03
|cos|given that the powered-on status is a factor, i'm thinking the vendor and model of the computer might play in. do you know if it happens on a similar setup with some other machine?14:07
gnarfaceal1r4d: is "Auto-Mute Mode" enabled in alsamixer?15:00
gnarfacei think pulseaudio has an equivalent setting15:00
gnarfacethe first question is whether one of those is working normally15:00
joergal1r4d: changes in audio config (like muting internal speaker and setting a dedicated audio volume etc for [wired?] headphones) are most likely event driven, no matter if polypaudio, ALSA, pipewire whatever. When you unplug the headphones while system shut down, it will resume on next boot with the config it saved at shutdown time. Which in your case probably means: the system - or parts of the audio stack - _thinks_ your headphones are still plugged in, since17:11
joergno unplug event happened17:11
joergsimplest solution: do not unplug headphones while system down. probably most simple "fix": plug and unplug again those headphones when system has that "audio muted" faulty state, which usually should result in audio settings syncing with reality again17:15
n4dirnot sure if it helps, probably not, if i got the piano-keyboard plugged during boot, alsamixer sees it as an external soundcard, and unplugging won't help to make alsamixer not having it as default17:17
n4dirwell, it wants to confirm that plugging and unplugging might be taken a bit care of17:18
joergprobably there are tools that could synthesize a virtual unplug event. sth along sysfs and/or kevents?17:20
joergudevadm trigger  ?17:21
joergdang. I thought I had a remark about how to get rid of, in my https://termbin.com/h43j asoundrc config patch script17:36
joergn4dir: ^^^17:36
n4dirjoerg: let me look at it17:37
joergI think you basically need to do the reverse: stop alsa, remove the device from asoundrc, start alsa again17:38
n4dirjoerg: well, i don't really understand it. To me audio is a big riddle in general17:38
joerglook into ~/.asoundrc. Does it exists? does it contain something that looks like a reference to your USB external card?17:39
n4dirjoerg: when it happened i didn't even have an asoundrc file17:39
n4dirnow i am used to take care of the plug in and out, i got an asoundrc file from fsmithred, it mainly seems to take care firefox has audio if jack is running17:40
n4dirjoerg: i think the problem is during boot, if keyboard or midi-keyboard is connected, alsa sets it as device number 117:40
n4diri also figured out i can use "alsamixer -c <number>" to make it use the internal soundcard, not the default one17:41
joerghmm, a pity. There is an equivalent file in /etc/alsa* or somesuch iirc17:41
n4diras said, i found my ways to workaround it. But i can't claim i really understand17:42
n4dirusing runit doesn't really make it better ... as i don't understand that either, and searching the web, say how to restart alsa, seldom relates to runit17:43
fsmithredYou can set the order of the sound cards in /etc/modprobe.d/alsa.conf17:49
n4dirfsmithred: that would assume that always all devices are connected.17:50
n4diror?17:51
n4dirthe real fun info was that alsa thinks midi-keyboards and the piano-keyboard are a soundcard. :-)17:51
fsmithredare they usb?17:52
n4dirmost are, the piano keyboard is usb at the laptop/PC, but has a different, weird plug at the keyboard itself17:52
n4dirso probably yes, usb17:52
onefangMight be one of the other USB connectors.  Mine has a squarish USB connector on the MIDI keyboard.17:53
n4dirprobably17:54
n4dirto me all hardware is just "stuff"17:54
joergn4dir: man alsactl >>-f Select the configuration file to use. ***The default is /var/lib/alsa/asound.state***<<17:54
fsmithredI'm not sure how to differentiate between different usb sound cards when there's more than one17:54
onefangType B  https://en.wikipedia.org/wiki/USB_hardware?useskin=vector#/media/File:USB.svg17:54
n4dirjoerg: thanks17:55
n4dirin general at least for me learning about audio in linux is way more difficult than when i learned linux/computing in general17:55
fsmithredhttps://termbin.com/dsba  <- example /etc/modprobe.d/alsa-base.conf from lubuntu17:56
joergyes, audio is very obscure and usually poorly documented17:56
n4dirjoerg: "obscure". That perfectl describes it at least for me17:56
onefangfsmithred: in .asoundrc have a "pcm.X .... card ALC1220VBDT ...." for example.17:57
onefangOops and "device 3"17:57
n4dirif i am not wrong Charles Mingus even wrote a song about Audio in Linux:18:01
n4dirMoaning !18:01
onefangI should document my audio setup on untalenz.rocks.  It's very educational.18:07
n4dircould also do it in the forum, if you are a member18:08
n4diraudio documentation sure is too little18:08
onefangPart of the reason for untalenz.rocks is to document and write tutorials for all this music software I'm learning this year.  The other reason is to publish the results.18:12
onefangFirst song should go up this week, or maybe next week.18:12
joerg>><n4dir> fsmithred: that would assume that always all devices are connected. or?<< I don't think so18:12
n4dirjoerg: aha.18:13
n4dirWell, i could look into it. Right now i am in a big audio mess in general (mainly midi related, the general audio setup works)18:13
n4dirthanks for any input, it helps a lot18:13
onefangWhat MIDI mess?18:14
joergsee in the example fsmithred linked:18:14
joerg# Prevent abnormal drivers from grabbing index 018:14
joergoptions bt87x index=-218:14
joergoptions cx88_alsa index=-218:14
joergI _guess_ this is relevant. And the first 10 lines tryong to load snd-card-0 to snd-card-7 won't fail when only one or two actually are present18:16
onefangIn my JACK startup I use "a2j_control --ehw && a2j_control --start" which lets JACK use ALSA MIDI stuff.  In my ~/.asoundrc I specify the actual sound cards.  I'm not getting "MIDI device is a sound card" issues.18:18
n4dironefang: if using the sequencer seq24 and use fluidsynth, then make seq24 choose a different instrument than the default one18:19
n4dirto me it is not too clear what is a channel, what is a bank, what is a program, what is an instrument18:20
n4dirsay in ardour i get a gui and just choose an instrument from the soundfont18:20
onefangAh MIDI basics.18:20
onefangI could explain them, but that's off topic.18:21
n4dirif there only was a channel for offtopic18:25
onefangThere is, I try to avoid it, and I really should concentrate on my work now.18:28
yuuriHello people! I've just installed minimal Devuan, and I can't find where wpa_supplicant takes its configuration from21:28
rwpHello yuuri.  Normally that would be the /etc/wpa_supplicant/wpa_supplicant.conf file.  But it may be relocated.  Network-Manager for example relocates it.21:29
yuuriThere's no wpa_supplicant.conf, and I don't have NetworkManager installed21:30
n4dirmight it be as simple as /etc/network/interfaces?21:30
rwpEverything written here https://wiki.debian.org/WiFi/HowToUse#wpa_supplicant applies to Devuan too as Devuan is an overlay fork on top of Debian.21:30
yuurin4dir: yes, it's here! What service uses this file?21:31
n4dirperhaps dhclient?21:32
rwpMost of the network programs at least observe the contents of /etc/network/interfaces file.  The ifupdown package makes the most use of it.21:32
rwpThe manager programs network-manager, wicd (now dead rip), connman read that file and ignore any interface listed in it leaving that interface to ifupdown to manage.21:33
n4dirgotta admit that now that you get wireless during installation, i was astonished how all that works, but didn't really look in it21:33
n4dirrwp: they are not even installed21:33
rwpWhat is installed?21:35
n4dirwpa_dingens21:36
rwpOkay.  However I assume you have things working.  But it was yuuri who had asked.  And I assume that if asking yuuri is not using any of those either and is doing everything manually.21:37
yuuriI have dhclient installed21:38
yuuriTrying to modify existing wireless network description in /etc/network/interfaces, how do I write WPA3 password here?21:39
yuuriwpa-psk doesn't cut it21:39
rwpThe process is described here: https://wiki.debian.org/WiFi/HowToUse#wpa_supplicant21:40
n4diryuuri: you have wpa-ssid in interfaces file too?21:41
yuuriyes21:41
rwpUse wpa_passphrase to create the wpa_supplicant.conf entry.  Then add the section described lower "iface wlan0 inet dhcp\n wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf"21:41
yuurilet me see21:41
rwpI do not recommend using the old wireless-tools package way of putting the passphrase in the interfaces file.  But if you do then you need to have the wireless-tools package installed.  But I think it is better to move forward to the normal wpa_supplicant tool way.21:43
yuuriAlso, it tried get DHCP at boot (and couldn't because of outdated wifi password) and it significantly delayed the boot21:43
yuurihow can I make it ask for network configuration post-boot?21:44
n4diryuuri: during the installation process?21:44
yuuriafter the installation21:44
rwpThe "auto wlan0" config causes synchronous boot action.  The "allow-hotplug wlan0" config uses the event driven path in the background.21:45
n4dirafter configuring of the network during installation fails or succeeds, hit tab to get to "go back", then choose "don't configure network"21:45
rwpIf the network is required then use auto.  If the network is only needed opportunistically later then use allow-hotplug.21:45
n4dirhow to avoid the installer trying to configure the network at all, not having to "go back", i wouldn't know21:46
yuuriThere's no "go back", only an already installed system with no graphics21:46
yuuri(It's going to be a homeserver)21:46
rwpyuuri, I wrote up a blog article on setting up a Banana Pi which includes me taking about this type of WiFi configuration.  https://www.proulx.com/~bob/doc/banana-pi/  Look at the section "Option 2 using wpa_supplicant" and ignore the rest but that covers what you are trying to do.21:47
yuurirwp: will see about hotplug, thanks; adding wpa-conf to interfaces makes ifup wlan0 fail to start21:47
rwpDoes it produce an error message about why it fails to start?21:48
yuuriwpa_supplicant: /sbin/wpa_supplicant daemon failed to start21:49
yuurirun-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 121:49
yuuriifup: failed to bring up wlan021:49
yuurithat's all21:49
rwpLook in /var/log/syslog and see if there are more messages from wpa_supplicate there.21:49
rwpI am suspecting either permissions problems on files or contents of /etc/wpa_supplicant/wpa_supplicant.conf being incorrect.21:50
yuuriincorrect as in bad format or incorrect password21:51
rwpI would suspect bad format.21:51
rwpBut I expect it would print an error in the /var/log/syslog in that case too.21:52
yuuriyes, it generated a WPA2 config by default21:53
yuurivar/log/syslog is empty21:53
yuurilike, completely21:53
yuuriI fixed the config to use WPA3 and ifup seems to work21:53
rwpCompletely empty?  You said you installed minimal Devuan.  Perhaps it was too minimal?  :-)21:54
yuurirebooting21:54
rwpI guess I would suggest installing "apt-get install rsyslog cron logrotate" so that system logs will exist and be expired automatically.  :-)21:55
yuuri...network is unreachable, and I saw a little "failed to bring up wlan0"21:55
yuurithat's after I changed it to hotplug21:55
yuuriand rebooted21:55
yuuriI have rsyslog service installed and active in /etc/service21:56
rwpThe change to hotplug was so that the boot would be asynchronous and the network run in the background asynchronously.21:56
rwpWhich init uses /etc/service?  I don't recall.21:57
yuurirunit21:57
rwpRunit.  Gotcha.  Should work okay no problem.21:57
yuuriyeah it borken now21:57
rwpIt sounded like it was borken before too though.  So actually just no change.21:57
yuuriwell, it couldn't connect to a network21:58
yuurinow it did but ping shows "From (an address I have no idea about) ... Destination Host Unreachable"21:58
yuurican't even ping my router now21:58
rwpWait...  You could ping your router before?  Then it was all working before!21:59
yuuriAfter fixing the config but before rebooting21:59
yuurinow it works after I manually ifup21:59
yuuriwhat gives22:00
yuurinow let's remove hotplug and reboot again22:01
rwpGood idea.22:01
yuurialright, now it bounded but it took precious boot time again22:02
yuuri*and also* I've got a couple "ok: run: (service)" messages flowing over login prompt22:02
rwpThe two paths through the network code are different paths.  There is the synchronous path (auto) and the asynchronously event driven path (allow-hotplug) and the code is different between them.22:03
n4diryuuri: same here regarding the flowing over messages22:03
rwpThe console log message overwriting is typical on consoles.22:03
yuurinever happened to me on other distros :(22:04
rwpTo avoid that you can set "dmesg -n5" to prune that down somewhat.22:04
yuuriwhere do I stick it22:04
rwpJust run that command interactively initially to protect your sanity.22:04
yuurinothing22:05
rwpThe Linux kernel default is 8 so that all messages are logged to the console.  Red Hat sets it to 3 so users never see console messages.  Debian/Devuan don't touch the kernel default leaving it at 8.22:05
rwpHere is the listing of numbers and levels: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/kern_levels.h22:06
rwpThis reference will explain it: http://tuxthink.blogspot.com/2012/07/printk-and-console-log-level.html22:06
rwpI normally set the log level in my firewall configuration startup for machines on the hostile Internet that both should have a firewall and are constantly probed.22:07
rwpIf "dmesg -n5" still has annoying messages overwriting the console then increase the limitation to "dmesg -n3" and that should trim out the rest of the noise while still leaving critical messages.22:07
rwpSummary: You have things working, synchronously at boot with "auto", it takes a moment to associate and dhcp an address but works.  Right?22:08
yuuriYes22:09
rwpI think you are still missing a system logging daemon.  I recommend "apt-get install rsyslog cron logrotate" so that system logs will exist and be expired automatically.  :-)22:09
yuuri...all are installed22:09
rwpSo what does "sv status rsyslog" say?  (I think that is the right runit syntax.)22:10
yuuriI have a service called svlogd that's not currently enabled, shall I?22:10
yuuriit says "run: rsyslog: (pid 1553) 549s"22:11
yuuriwhich I assume means that it's running22:11
rwpThat says that rsyslogd is running.  Good.  Strange that the /var/log/syslog file is zero sized empty.22:11
yuurioh, now it's full22:12
yuurimaybe I made a typo before22:12
rwpThere is a /etc/rsyslog.conf file and it has config stuff in it?22:12
rwpOh!  Good!  Easier than debugging it.  Probably good useful debug messages in there from wpa_supplicant.22:12
yuuriyeah, it's full of something22:12
rwpBut wpa_supplicant is working so no problem now.  But earlier it probably woudl have been useful.22:13
yuuriwell, I want it to connect to the network in the background22:13
rwpHow often do you expect to be rebooting?  I would say reliably working is better than booting faster without a network.22:14
rwpI think it likely that the network using hotplug would /eventually/ wake up.  I think.  And then eventually it would connect.22:14
yuurilet's test that22:14
rwpAlso hotplug is mostly required on USB network devices which can be detached and attached dynamically.22:14
rwpIf it were me and it were working at boot synchronously with "auto" then I would stop there, use it, and move on to the next problem.22:15
yuuriis there a better way to set up networking than ifupdown? Void Linux provides a runit servicre for wpa_supplicant22:16
yuuriI mean I guess I can just move on yeah22:17
rwpHmm...  "Better" means personal preference.  I personally like ifupdown best for WiFi devices that are not mobile.22:17
rwpThe ifupdown manager has been most reliable for me.  The main alternative is Network-Manager which most people use on laptops and mobile devices.22:18
rwpI think it is fine there for laptops which are always occupied by a person driving the keyboard.22:18
rwpBut for IoT devices and servers I have had NM drop connections and never reconnect requiring me to go get on the console and manually connect too often.  I really despise NM.  But on a laptop always being used by someone at the keyboard then NM is the simplest way to pick WiFi networks and connect to them.22:19
yuuriIt's a laptop but it's going to be stationary22:19
rwpThe only alternative to NM is "connman" which is also quite often used.  It's okay.  To my thinking the connman UI is a little strange.  It works after you figure it out though.22:19
rwpThe old previously most reliable manager was WICD but that is a python2 program, now orphaned, and with the deprecation of python2 it is now no longer available.  So far no one has ported wicd to python3 and so it is no longer available.22:20
rwpFor a stationary laptop doing what I assume is going to be dedicated things like a personal server I think ifupdown is most reliable.  But you could make NM work too.  With the exception that sometimes, not always but sometimes, you would need to get on the console and tell it manually to connect.22:22
yuuriafter fedora experience with its painfully slow dnf, which is written in python, I have prejudice against python system utilities22:22
rwpI can understand that.  My python experience is always looking at hugely long backtraces instead of reasonable user presentable error messages.  But I blame the programmer not the language for both of those things.22:23
rwpIf you decide you want a deeper dive into working wpa_supplicant and dhclient manually step by step ping me and I can give a walk through of those step by step.22:23
yuuriwell, they work for now I guess22:24
yuurithanks for the offer22:24
rwpI need to drop afk for a while.  And we have been hogging the channel for a bit so it is good to let others rotate in too.22:24
rwpGood luck with the rest of your setup!22:24
yuuriaw, can't get openjdk-21 on stable22:25
tocsaHow can I see and potentially flush the DNS cache?22:26
tocsaAll web search comes up with something systemd based, but as we know Devuan is systemdless22:27
tocsaI don't have a reoslvd start script in /etc/init.d (trying to find things from my memory decades before), I don't see any daemons or processes running by the name of "resolve" or "dns" in their name.22:28
tocsaMy main problem is this https://www.reddit.com/r/devuan/comments/17v8td2/strange_network_problem_cannot_connect_to_google/22:28
jjakobdepending on who you ask, not being able to connect to google might be a good thing22:30
tocsaI know. However various services/platforms which use GCP storage under the hood could fail unexpectedly because of this. (They do in my case)22:32
tocsaI don't even know what exactly provides the dns right now in my installation22:33
yuuridhclient mayhaps22:33
yuuritocsa: is there /etc/resolv.conf?22:42
tocsa@yuuri There is. This is a ~5 year old installation23:01
fsmithredHave you looked in /etc/hosts.deny?23:02
tocsaAs far as dhcp goes, I don't see a daemon running, I have isc-dhcp-client install version 4.4.3-P1-423:04
tocsa@fsmithred I have an /etc/hosts.deny but it's all commented out23:06
tocsaOne root cause could be this: https://imgur.com/35zbbcs23:11
tocsaI perform an nslookup / dig. Since GCP (or any Amazon S3 or Azure storage, etc) is load balanced I get back a dozen of IP addresses. However when I try to connect or ping my machine tries to use an IP which was not among those IPs23:12
tocsaI suspect that IP is some leftover from the past. But where did it get stuck, where is it coming from?23:12
fsmithredbad dns records?23:16
fsmithredmaybe try setting a nameserver in /etc/resolv.conf23:17
fsmithredYour router might be using your ISP and it might not be right. I've seen that happen.23:17
xisopgreetings. is it possible to use a newer kernel than what is provided by apt?23:21
brocashelmxisop: yes, but it could break your system if you do not do it correctly23:21
brocashelmxisop: if you need a newer kernel than 6.1 (assuming you are on daedalus), consider adding daedalus-backports to your sources.list file23:22
xisopi'm on chimera actually. i guess i should upgrade to daedalus first23:22
brocashelmworth it to do so23:22
brocashelmdon't create a frankendevuan!23:22
xisopapt-get dist-upgrade?23:22
brocashelmif you use any non-free drivers, append non-free-firmware to your repo23:23
xisopah, i'll follow this https://www.devuan.org/os/documentation/install-guides/daedalus/upgrade-to-daedalus23:23
brocashelmexample: deb http://deb.devuan.org/merged/ daedalus main contrib non-free non-free-firmware23:24
n4dirxisop: at least for debian there always have been some non-repo kernels around, claiming to do this and that better. Say liquorix was one of them23:24
brocashelmthen run apt update -> apt dist-upgrade -> apt upgrade -> reboot23:24
xisopall my chimera sources were just `main`23:25
brocashelmok, then just keep it that way23:25
xisopk23:25
xisopi love this distro23:25
xisopnothing like it23:26
brocashelmif you use firmware, a change happened where the drivers from non-free got placed in non-free-firmware23:26
brocashelmcool, enjoy23:26
xisophow did that happen?23:26
brocashelmi even used ceres (unstable) for years and enjoyed it23:26
brocashelmit's a debian decision thing23:26
xisopi think aside from systemd, debian is a solid distro23:26
brocashelmhttps://lists.debian.org/debian-devel-announce/2022/10/msg00001.html23:26
brocashelmdevuan is basically debian but with sysvinit/runit/openrc instead of systemd23:27
brocashelmeverything else stays the same23:28
brocashelmso whatever debian does that's not systemd-centric, devuan mirrors that23:28
n4dirmost of the time i couldn't even say if i am using debian or devuan at the moment. Now i purged all debian installations, but before, i was never too sure23:29
xisopi find it hard to accept systemd as a linux package. if it stopped at being just an init system, i'd probably have no problem with it23:30
xisopit's just this giant black box of always changing code23:31
tocsa@fsmithred The DHCP results in setting my wifi router (which is an OpenWRT flashed one) as the DNS server. 192.168.1.1. I tried the same thing on a Windows 11 backup laptop, and that is able to ping, because it doesn't use that rouge IP address23:41
tocsa@fsmithred @yuuri My whole network issue is a PEBKAC! So this is a more than 5 year old installation, and I don't know how many years ago I must have had some DNS problem, and so I "temporary" "poisoned" my /etc/hosts file with some IP addresses, one of which is this GCP storage IP. I peeked into the /etc/host and I just realized that. Sorry to bug you with this.23:48
tocsaWow I kicked myself in the nuts with this...23:54

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