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

rrqgenerally speaking it's a farily costly way of access butu it does provide the end-point shading of tor access.00:00
rrqit's "expensive" due to being tcp-in-tcp tunneling that involves a number of otherwis unrelated intermediates, and it "helps" bogging down pkgmaster.devuan.org ... certainly not one of my favourite access paths00:03
darwinhow do I stop /etc/resolv.conf getting overwritten?  I thought his had been a thing on OS with systemd, but now seems to be happening on most/all?07:28
gnarfacedarwin: most likely network-manager doing it. you can flag it as immutable, or you could just fix your DHCP configuration so that it gives network-manager the right data.07:39
gnarface(or you could just uninstall network-manager and do the whole network configuration by hand)07:39
gnarface(same advice goes for any other graphical network administration utility)07:40
darwini don't want to remove that right now, just configure it to stop doing that07:40
darwinbut occasionally I edit it07:41
gnarfaceto be clear, the right place to fix this information is in your DHCP server, which is most likely also your router and cable modem if you are wondering07:41
gnarfaceusually but not always, your ISP won't force you into any particular settings for it07:41
gnarfaceyou can just make it immutable with i think chattr (check the man page) but that won't work on every filesystem07:43
gnarfacei think it should for ext4 though so if you're using defaults it should be fine07:43
gnarfacebut that's a quick and dirty fix, not really "the right way"07:44
Xenguydarwin, I made /etc/resolv.conf immutable years ago, and it still works fine for me07:49
darwingood07:49
XenguyHowever I don't use NM07:50
XenguySo YMMV07:50
darwinyes, I have DNS servers in my router, but I want extra.  I put 20+ in resolv.conf only to read the standard is no more than two are used07:51
Xenguy2 nameservers yes07:52
darwinthen my ISP's two were discontinued so we were out of DNS for a while... and sometimes public ones were inaccessible.  The standard is horrible07:52
rwpdarwin, If you want something better then you have to run a local caching nameserver.07:53
Xenguyheh, just checked and I have 3 nameservers configured07:53
darwinwhat about recompiling?07:53
rwpWhat are you asking about recompiling?07:53
* Xenguy uses unbound ...07:53
darwinthe definition that only two are used rather than all in resolv.conf or larger default07:53
rwpOnly the first three are used.  But there are long timeouts if the first one is down and it has to fall through to the 2nd and 3rd.  So, not good.07:54
Xenguyrwp, So 3 nameservers is the limit, or 2?07:55
rwpThree.07:55
XenguyAha07:55
rwpThe libc resolver is a relatively simple bit of code.  The strategy is that if you want smart DNS then run a local nameserver.  Then have ONE in resolv.conf pointing to 127.0.0.107:55
XenguySo my current config is good07:55
rwpThis works great everywhere but...  mobile laptops connecting to captured portals.  Captured portals force you to use their dns in order to either pay or accept their EULA.07:56
XenguyThat's the first line in my config, with the idea that the other 2 are fallback nameservers in case the first doesn't work for some reason07:56
rwpSo in those cases you probably will have to flip back and forth between two configurations.07:56
XenguyHrm, good to be aware of that use case07:57
rwpWaiting 30 seconds or whatever it is (I forget) to fallback to the next nameserver is pretty painful though.07:57
gnarfacedarwin: i also recommend running a local DNS server instead if you're having problems like that. i use bind9 here, but dnsmasq and unbound are also popular.07:58
rwpThat's why we all should run a local nameserver like unbound or bind.  Unless talking to a captured portal.07:58
XenguyFortunately unbound seems to work quite nicely07:58
gnarfacedarwin: (of those, dnsmasq is probably the easiest to configure because it just reads your /etc/hosts file)07:59
XenguyI also found when I switched to it that it seemed to speed up resolution of domain names07:59
XenguyLess lag07:59
Xenguyyw08:14
Alverstoneevdev: OpticalMouse: Unable to query fd: No such device11:22
Alverstonehappens when I unplug and plug back11:22
Alverstoneso only one user can use the mouse11:23
Alverstoneworkaround: never unplug11:23
Alverstonei'm angry11:23
gnarfaceAlverstone: i'm sure there's a better workaround11:29
gnarfaceyou get angry too quick11:29
Alverstonehttps://bbs.archlinux.org/viewtopic.php?id=20170811:29
gnarfaceno, running it as root isn't it11:30
AlverstoneI have no idea why no such device11:30
Alverstoneit's in /dev/input11:30
gnarfacemaybe it changed orders11:30
Alverstone(II) seatd_libseat opened /dev/input/event311:30
gnarfacethe best option is to just dial it into your xorg.conf i think11:31
Alverstone(**) evdev: OpticalMouse: Device: "/dev/input/event3"11:31
Alverstoneevdev: OpticalMouse: Unable to query fd: No such device11:31
Alverstone(EE) PreInit returned 2 for "PixArt A4Tech OpticalMouse"11:31
gnarfacealso "unable to query fd" may be referring to /dev/fd/ instead of /dev/input/11:31
Alverstone(II) UnloadModule: "evdev"11:31
Alverstonecan i force x to try it again?11:32
Alverstone:)11:32
Alverstonei DO have xorg.conf entry for my mouse and keyboard11:35
Alverstonethat sets evdev driver instead of libinput11:35
Alverstoneit might be elogind issue, which drives me mad11:35
Alverstonehow am i supposed to debug that moster11:35
rrqXorg might rescan on VT switching (away and back)11:42
Alverstonedoesn't work11:42
rrqotherwise it's the role of libinput I think11:42
AlverstoneCould not revoke evdev on device fd: No such device12:03
Alverstone[seatd/seat.c:338] Could not revoke evdev on device fd: No such device12:03
Alverstone[ERROR] [seatd/seat.c:338] Could not revoke evdev on device fd: No such device12:03
Alverstone[ERROR] [seatd/seat.c:222] Could open device: client is not active12:03
Alverstone[ERROR] [seatd/client.c:238] Could not open device: Operation not permitted12:03
Alverstone[ERROR] [seatd/seat.c:222] Could open device: client is not active12:03
Alverstone[ERROR] [seatd/client.c:238] Could not open device: Operation not permitted12:03
AlverstoneOkay so I'm going to remove elogind completely and try again12:04
Alverstonenope12:15
Alverstonesame as always12:15
Alverstoneit's libseatd issue then12:15
Alverstonewhose else12:15
rrqI think i's the evdev module that doesn't discover the usb path change. libinput should do that12:20
rrqwhen the mouse is plgged in it gets a new eventN devnode12:20
Alverstonenope12:21
Alverstonelibinput same behaviur12:21
Alverstonelibinput same behavior12:21
Alverstonesometimes even worse, mouse disappears for all users12:21
AlverstoneI posted log somewhere above12:22
Alverstoneno?12:22
Alverstonesec12:22
Alverstonelibinput: PixArt A4Tech OpticalMouse: Failed to create a device for /dev/input/mouse212:23
* Alverstone shrugs12:24
rrqdo you have seatd o logind or user has devnode access?12:25
rrqo = or12:25
Alverstonetried everything12:26
Alverstonejust elogind12:26
Alverstonejust seatd12:26
Alverstoneelogind along with seatd12:26
Alverstonealways the same12:26
rrqhmmm and /dev/input/mouse2 is the right devnode ?12:27
Alverstoneyep, it picks it up from udev12:28
rrqwhat's the seatd related error line just prior to thet libinput errorline?12:29
Alverstoneposted above12:30
Alverstoneit can't open device12:30
Alverstonefor some reason12:30
rrqhmm but it can open the mouse devnode before unplug+plug ?12:31
Alverstoneyes12:31
Alverstonework before unplugging12:31
Alverstoneworks*12:32
Alverstonereplug and only active user picks it up12:32
Alverstoneothers loose12:32
Alverstoneand can't reclaim12:32
AlverstoneI'm gonna do something ostensibly ugly right now12:34
rrqah the mouse is picked up by the active Xorg, but after VT switch the target xorg doesn't pick it up... as if that Xorg's libinput is not signalled by udev12:34
AlverstoneI'll report back if it works12:34
AlverstoneYep12:37
Alverstonejust as I thought12:37
AlverstoneI installed xserver-xorg-core from trixie and everything just works12:37
AlverstoneDevuan's libseat patch is broken12:37
Alverstoneneed to file bug report12:37
AlverstoneI don't have time currently12:37
AlverstoneBut can help12:37
AlverstoneBetter if you discuss it on the forum thought12:38
AlverstoneI can't hang out in IRC 24/712:38
rrqok.. please describe the use case with VT switch etc in some detail12:38
Alverstonewhat do you mean12:38
AlverstoneI use several users for different tasks12:39
rrqwhat did you mean saying "others loose" ?12:39
Alverstoneno graphical login manager12:39
AlverstoneOK later12:39
Alverstoneis Discuss/Devuan an appropriate forum13:10
Alverstoneor where do I report it at all13:10
Alverstonehttps://git.devuan.org/ ?13:11
Alverstoneregister and report there?13:11
gnarfaceforum link in channel topic13:11
gnarfaceincidentally, i'm curious if it works if you just disable seatd instead and run Xorg from startx directly13:12
gnarfaceno elogind or whatnot13:12
gnarfacethough i'm not completely sure i understand your use case13:12
Alverstoneyes, forum13:13
gnarfaceand i'm still only assuming the issue is path changes on hotplug...13:13
Alverstonebut where exactly?13:13
gnarfaceoh, uh... not sure really13:13
Alverstonegnarface, I'll describe it in the post and we'll figure out all questions there13:13
gnarfacejust pick what seems to make sense then link it here13:13
Alverstonegnarface, https://dev1galaxy.org/viewtopic.php?pid=52656#p5265613:31
AlverstoneHow do you mount external media?19:15
Alverstone(block devices)19:15
djph(1) plug it in, (2) mkdir -p /mnt/whatever, (3) mount -t filesystem-type /dev/whatever /mnt/whatever19:17
Alverstonerequires root19:18
user71I use dmesg|tail to find out the device name afer plugging it in19:18
user71using root is fine for this19:19
Alverstonenope, I don't allow regular users to execute anything as root19:19
AlverstoneI disabled all ways to escalate privileges except some parts of the polkit19:19
debdogcreate an ebtry for that device in /etc/fstab to allow users to mount it19:22
debdogUSB, I assume?19:22
Alverstonebad, because relies on UUID/LABEL/etc19:22
Alverstoneit's not flexible at all19:22
user71I have accidentally deleted / as root only once, mustn't be that common19:22
debdogwhere etc is what?19:24
debdoginstall some desktop environment which takes care of that19:25
Alverstonedon't wanna udisks219:26
debdogstill, USB?19:26
debdogis this for a certain computer or generally?19:26
debdogyou can still use /dec/sdX (regarding etc)19:26
debdogwhere X is one letter higher than the installed drives19:28
debdogI ahve entries for that in fstab for up to three USB devices (which you still have not confiremd or not) with up to five partitions on them. works19:30
debdogor install Windows19:33
debdogSCNR19:33
Alverstoneudisks is interesting because it also allows you to setup loopback interfaces19:38
Alverstonepmount and udevil -- not really19:38
Alverstoneon the other hand, it depends on polkit and elogind19:39
AlverstoneI struggle to understand why though19:40
Alverstonepolkit doesn't really have use cases, it's policy system is stupid and unmanageable19:40
Alverstoneits*19:40
Alverstoneelgoind... is there really no way which user invoked the damn executable and whether his session is currently active?19:41
* Alverstone rants19:41
Alverstoneno way to know*19:41
fsmithredAlverstone, use pmount for user mounting external devices.19:44
fsmithredyou can also specify in the config file internal block devices that are allowed to be mounted.19:45
fsmithred*I use*19:46
fsmithredudevil is another one19:46
Alverstonefsmithred, looks pretty good to be honest, but doesn't cover the whole scope of possible use cases. If pmount could loopback mount files though... It isn't even very hard I think, you'd need to set nosuid and the like, same way FUSE does, to achieve security19:46
Alverstoneas for the rest, it's just a losetup call19:47
Alverstoneit's one of them DIY moments when you realize you can't do everything in this life, so you have to put up with bloated udisks19:47
AlverstoneI have a bunch of ISOs that use that stupid UDF file system extension, they can't be mounted with fuseiso19:49
Alverstoneudisks kinda does the job19:49
fsmithredouch19:49
fsmithredwhat's the advantage of mounting as a loopback?19:50
Alverstonehow else would I mount them?19:50
Alverstonethe ISOs are stored as regular files19:50
fsmithredoh, I thought you were mounting external media19:50
Alverstonewell, since I have udisks anyway, I use it for external media too19:51
Alverstoneto be 100% honest with you, I got a bit carried away thinking how cool the world could be if seatd could mediate access to video and audio devices, so X11/pulse/pipewire would become free of systemd completely19:52
Alverstonedream world19:52
Alverstone:D19:52
Alverstoneneed to go cool down I guess19:53
fsmithredarchivemount will mount isos19:55
Alverstonefsmithred, hm really/20:06
Alverstone?20:06
Alverstoneit has O(4) reading algo though iirc20:07
Alverstonewait a sec20:07
fsmithredwhat's that?20:07
AlverstoneO(2) actually20:07
Alverstonesee here https://github.com/google/fuse-archive20:07
Alverstoneperformance comparison20:07
fsmithredI use it to mount isos and I've never even though about performance or speed. I don't think I'd be able to tell the difference with a stopwatch.20:10
fsmithredif you're truncating big archives, then maybe it's important.20:10
Alverstoneyou would with large files20:10
fsmithredbetween 1-2G usually20:10
fsmithredonly time I use it is when making a live-usb and copying to the usb is infinitely longer than mounting it.20:12
AlverstoneI try to use archivemount, it creates README.txt file owner by root and with 400 permissions20:13
Alverstonewtf20:13
Alverstoneowned*20:13
AlverstoneI can't read what's inside20:13
Alverstoneand I don't have allow_others20:13
fsmithredwhere does it make that?20:14
AlverstoneInside mountpoint20:15
Alverstonethe mountpoint20:15
Alverstonegoogle's fuse-archive tell me the following20:15
AlverstoneThis disc contains a "UDF" file system and requires an operating system20:15
Alverstonethat supports the ISO-13346 "UDF" file system specification.20:15
Alverstonesince they both use libarchive20:15
AlverstoneI assume I'm out of luck here20:15
AlverstoneFUSE filesystems have a way of creating a README.txt file when they can't actually mount and putting the error msg there20:16
Alverstonethis UDF is a monster20:17
Alverstoneiirc mostly used by windows20:17
Alverstoneand there are probably no reasons for it to exist20:17
Alverstoneso nobody wrote a fuse implementation afaik20:17
fsmithredI see there is a package called udftools20:19
Alverstoneyeah it's cli20:19
Alverstonenot actually an fs20:19
Alverstonenot bad20:20
Alverstoneuntil your ISO actually contains software to be installed :)20:20
Alverstoneunpacking 20+GB of data just to install it20:20
AlverstoneI don't have the nerve20:20
AlverstoneI google this periodically and always find nothing but udisks20:21
Alverstoneheh20:21
dvbsthello, is getting my printer working on this realistic or just a dream?20:27
Alverstonedvbst, getting your printer to work is very easy. 1. Check if there is a manufacturer provided driver. 2. If there is, install and enjoy. 3. If there isn't, check if it works out of the box. 4. If it doesn't, you don't need a printer20:29
dvbstwhere do i check20:32
Alverstonehttps://github.com/sjpotter/udf-fs "quick and dirty"20:33
Alverstonedvbst, manufacturers website, actually20:33
Alverstoneiirc CANON printers shipped some linux drivers20:33
Alverstonethey even worker20:33
Alverstonethey even worked20:33
Alverstoneclosed source ofc20:33
Alverstonekinda scary :)20:33
debdogsometimes just mentioning the printer's designation can have a huge impact on the replies20:35
dvbstit says hp laserjet 1018 on the printer but idk if thats really it20:36
Alverstonehttps://support.hp.com/us-en/drivers/hp-laserjet-1018-printer/181409220:36
Alverstonedoes it look like this20:37
debdogthen you might want to have a look at hplip20:37
Alverstonehttps://support.hp.com/us-en/document/ish_7795955-7796023-1620:38
Alverstonehttps://developers.hp.com/hp-linux-imaging-and-printing20:38
Alverstonehttps://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index20:38
Alverstonesays your is supported20:39
Alverstoneapt show hplip20:40
dvbstawesome20:40
Alverstoneseems like it might solve your problem20:40
dvbstwow it works20:54
dvbsti love you20:54
Alverstoneaw thanks21:08

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