libera/#devuan/ Friday, 2024-11-15

AlexLikeRockThe solution was just to tell DBus to reload the config again, manually, once the user was there.00:07
AlexLikeRockI also saw the same error once when I somehow managed to deleted or break permissions (I forget which) on polkit's own config files.00:07
AlexLikeRockany one can tell me how to reload config ?00:07
Hurgotronrepoad polkit? just kill polkitd, should start again automatically00:15
AlexLikeRockok00:15
AlexLikeRockreload config , please Hurgotron00:24
AlexLikeRocknot the program00:24
Hurgotronno difference really00:24
* onefang wakes up and reads through n4dir's JACK problem. Straight away I knew what was wrong, let's see if they figured it out.01:04
n4diri didn't figure it out, onefang01:07
onefangOne thing to keep in mind about ALSA and JACK is that they are per user.  Which is why you have config files for them in your home directory.01:08
onefangI've been writing my aataaj.lua script to try to deal with all of that automatically.  It's almost ready.01:09
onefangRunning JACK things at login is the way it wants to run.01:09
n4dirlet me look what i have to start jack01:11
n4dir        jackd  -d alsa  -dhw:CODEC -r 48000 -p256 &01:11
onefangThe sticking point I'm stuck on is getting things to happen properly at boot time for blind users.  My other goals are sorted.01:11
n4dirnot even sure if that was the version which finally worked or which didn't work01:11
n4dirso, i really kinda enjoy the comfort of a gui01:11
onefangqjackctl and cadence are your friends then.01:12
n4dironefang: really thanks for answering that much later, or asking. I am mainly wondering, in general i seldom log out at all. So it is more of a "out of i interest" than a problem01:13
onefangSame here really.  lol01:13
n4dir:-)01:13
onefangBut since I had to put together a portable synth using one of my spare computers, thought I would automate it all.01:14
n4dirI once set up a PC to autostart jack and then fluidsynth, so i wouldn't even need a monitor to play piano via the digital piano01:14
n4dirbut i don't do it anymore, as now have a nice digital piano with nice sound01:14
onefangExactly what I wanted.  SNAP!01:14
n4dirthe script is from back then, but it doesn't really work anymore01:14
n4diroh, a synth, portable. Now we talk about things01:14
n4diryou use fluidsynth or how?01:15
onefangqsynth as a wrapper around fluidsynth.01:15
n4dirmy script is much of a clusterfeck, but i could upload it anyway, you probably are there already anyway01:15
n4diryeah, for fluid i didn't even need to start the gui, the PC was crap, so i gave all ressources to just "jack and fluid"01:16
onefanghttps://sledjhamr.org/cgit/JackOnAllDevices/ yep, I'm there.  Needs cleanup and documenting though.01:16
n4dirthat is your script?01:16
onefangYep.01:17
n4diri am not really focused right now. been fiddling with a synth for a bit and now kinda confused, can't switch to reading scripts01:17
onefangFair enough.01:17
n4dirif i  ever will want to start jack from cli again, and use fluid and or qsynth, i know who to ask01:17
onefangMight be more docs by then to.  lol01:18
n4dirwell, if you like you could have a quick look at my script and tell me what is just plain wrong.01:18
n4dirif you don't like that is fine01:18
onefangIt's early Friday morning here, I got work stuff to catch up on.01:18
n4dirscript, lol, it's like 5 lines or such.01:18
n4diryeah, all good.01:19
n4dirsounds like australia or such01:19
onefangYep, Brisbane Australia.01:19
n4diragain, thanks for asking, and have a beautiful day :-)01:19
onefangJust got back from morning shopping when I started catching up on the nights messages.01:19
onefangYou are welcome.  Helping out this sort of thing is why I wrote my script and put it on my server.  It just needs to mature.01:20
n4dironefang: i spoke about it with f-smithred. My mother is slowly going blind. So if ever bored, you might tell me a bit about your approach01:20
n4dirgeneral plan is to get her an Amazon box, but still, out of interest01:21
n4diroh, well, i don't speak lua anyway ... grml01:22
onefangAh so you know fsmithred's plan is to get the screen reader software running as early in Devuan as possible.  Using my script to try to identify which of several audio devices is actually plugged into speakers.01:22
n4dirall bit above me. I don't fiddle a lot with several audio devices. But i start to understand01:23
onefangIn my experiments I'm finding that graphics cards tend to have at LEAST one audio device per video output. and tend to have many of those.  MAin reason why my desktop has 12 audio devices, six of them are on the graphics card, which only has four video autputs.  shrugs01:24
onefangSo trying to identify which one you can actually hear at boot time is important sometimes.01:25
onefangAnd I need to learn to type better.  lol01:25
onefangBack soon.01:28
n4dirbye-bye, for now01:30
Guest8446hello01:48
gnarfacewell if Guest8446 comes back tell them to stick around longer...01:51
onefangSoooo, today I was planning on getting stuck into apt-panopticon coding, but I'll briefly describe what's up with aataaj.lua.01:57
onefangWe want Devuan live ISOs to be more user friendly, and some of those users are blind, or going blind as n4dir mentioned.01:58
* n4dir listens carefully01:58
onefangSo one goal is to jump in as early as possible during the boot process, and try to identify any audio devices that are actually connected to speakers, such that the user can actually hear it.  Then we can pass that device to the console reader, so it can read out what ever else happens on the console during and after boot.01:59
onefangOne big problem is the excess number of audio devices you might find in an average computer.  Graphics card makers in particular go over the top.02:00
n4diri see02:01
onefangMy example is my own desktop.  I didn't buy the motherboard or graphics cards for their audio, but between them there's TEN audio devices.02:01
onefangAt most only three of them will have speakers plugged in at any given time.02:02
onefangNext big problem is sub devices.  They seem to be working much better AFTER you log in.  So my graphics card has six sub devices, only one of my monitors has speakers.  Sub devices seems to be working differently at boot time than after login.  That's the one big problem I have not solved yet.02:04
n4dirWell, i got the internal soundcard and an external one, and the internal one has a lot of subdevices, says HDMI, so to me all that is easy. If compared02:05
n4dirbut i think i understand the problems caused by all that02:05
onefangSo, what I do is - figure out all the audio devices and sub devices.  Cut that down to output devices (some are input only).  Through all of them at once tell the user that the devices are about to be listed, and they should pay attention to the one they can actually hear.  Then I ask them through all devices at once to type which one they heard the best.  That becomes the ALSA default device.02:05
n4dirok02:06
onefangCauses problems when booting a LIVE ISO on a random computer.02:06
n4diryou use aplay -l ?02:07
onefangLater on, if you want JACK stuff, it'll start up JACK, a bunc hof things so all your ALSA devices are presented to JACK, hooks all the ALSA programs up to all the output devices, hooks up all your joysticks as MIDI controlers, runs auser script to start up GUIs like qsynth and MusE.02:08
onefangaplay is very useful for these things.  But I do probe the operating system more directly.02:09
n4diryeah, there is the script adevices.sh ; i can't make too much sense of it, as audio to me is weird. But the output seems more "parsable"02:09
n4dirif you got means to get that sorted, superfluous info02:10
onefangThat's the whole point of my scripts.  Automate it all, make things easy, then they can get on with their important things.02:11
n4dirgot you.02:11
n4dirmost things here get autoconnected. But i don't really do that many things. zynaddsubfx for example doesn't autoconnect (but yoshimi would be a workaround). I just use "catia"02:11
onefangSo far its working at Sys V init level S< which becomes before level 2 on a typical Devuan install.  Aiming for initramfs.02:12
onefangCatia is what I use for my GUI JACK plug bay to.02:12
onefangMusE autoconnects most of what it needs.  I use jack-plumbing for most others, but that's a sorta scripting thing.02:13
n4dirfluidsynth has --connect-jack-outputs (small talk, not info needed)02:13
onefangEventually I want to create a Devuan spin I want to call EARS, Live ISO full of all the audio stuff.02:16
n4dirSo. Say all that is sorted. The user has choosen the device to use and all. He is blind, how can he move around on the "destkop" ?02:16
n4dirf-smithred said if you hover over say a menu entry, it gets read what the menu entry says?02:17
onefangThat's what the screen reader and braile type stuff that exists already is for.02:17
n4dirbut the user doesn't talk to the PC/device, right? He still uses say the mouse?02:17
onefangThough last time I worked with blind people they where more cli types, and that was long ago.  So not sure what it's like on desktop these days.02:18
n4diri got really hard times imagine how it is to be blind.02:19
onefangNo doubt I can find some blind locals to help me get a fresh handle on what they need, and what works.02:20
onefangMet the last lot through a local Linux computer club.02:20
n4diryeah. Probably there is an organisation for the blind too. They might have "something"02:20
n4dirthat distro based on Knoppix for the blind or visually impaired doesn't exist anymore?02:21
onefangOr I get the tech working, let fsmithred and others deal with the user interface parts.  B-)02:21
n4dirha.02:22
n4dirkinda dreaming: What would also be cool was if folks could just buy a "full set up", like the freedombox. Including a mic and speakers attached and all that02:23
n4dirif that makes sense02:23
onefangMakes sense.02:23
n4diryup.02:23
n4dirWould also avoid also the what with this hardware, what with that hardware. Just one thing and it works out of box02:23
onefangBuilding ISO's I can do.  Building computers I can do.  Selling stuff is well out of my skill set.02:23
n4dirha ha. Yeah, hence the "dreaming"02:24
onefangEnough dreaming.  Now that my local Internet maintenance is allegedly over, I have networking stuff to work on today.  apt-panopticon needs work.02:25
n4dirhave fun.02:25
onefangFor those that don't know, that's my tool for monitoring the performance of Devuan package mirrors.02:25
* n4dir assumed something like that02:26
onefanghttp://veritas.devuan.org/apt-panopticon/results/Report-web.html02:26
onefangIf all goes well I might manage to remove some of that excess redness today.  lol02:27
onefangLess red!  B-)05:24
rwponefang's eye drops gets the red out!05:41
onefanglol05:41
Xenguy.oO( Yes please, something that doesn't make eyes bleed )06:22
onefangIn the case of apt-panopticon, red is for errors, so the less of them the better.  I suspect most of the rest are just slightly misconfigured nginx servers, and possibly not even important anymore.06:44
onefangThe rest I'm fairly certain are actual problems at the mirror end.06:57
AlexLikeRockmornin16:30
AlexLikeRocktargz,  o/16:43
AlexLikeRockcomo estas ?16:44
madhatdo you guys manage your networks in devuan manually?17:03
targzAlexLikeRock: \o17:11
djphmadhat: what do you mean?17:14
madhati mean by using the wireless tools as opposed to using network-manager17:18
AlexLikeRockdbus is running.17:20
AlexLikeRock /etc/init.d/dbus status17:20
madhatit is17:21
madhatrunning17:21
AlexLikeRock  udisksctl mount -b /dev/sdb117:22
AlexLikeRockError connecting to the udisks daemon: Could not connect: Permission denied17:22
AlexLikeRockhow to connect udisk to dbus ?17:24
AlexLikeRockor granted permisions to normal user ?17:25
rwpI have always found that in practice dbus cannot be restarted, such as after an upgrade, because other running daemons stay attached to the old and don't re-attach to the new.18:59
rwpTherefore dbus must start at boot time.  Or at least everything else that uses dbus must start after it.18:59
AlexLikeRockso19:00
AlexLikeRockhow can find out?19:01
rwpUnless you took steps to stop dbus then it should start at boot time normally.  Did you take steps to block dbus from starting?19:02
AlexLikeRocki dont now19:03
rwpBut you can't just start it later.  Or restart it later.  That just doesn't work for the reasons mentioned.19:03
rwpI think if you don't know that you didn't do anything special to stop it.  As long as you don't try to restart it later it should be okay.19:03
rwpIn which case almost certainly the problem would be in the other programs trying to use it.19:04
AlexLikeRockhow to restart udisk2 ?19:05
rwpI don't know as I have never used it.  Hmm...  I look and find https://askubuntu.com/questions/798504/how-to-manage-udisk-with-the-udisk-utilities19:06
rwpNot very helpful.19:06
AlexLikeRock udisksctl  /dev/sdb119:10
AlexLikeRockError connecting to the udisks daemon: Could not connect: Permission denied19:10
rwpI fear suggesting running it as root with sudo might not be the best answer but does it still complain in that case?  "sudo udisksctl status" ??19:14
rwphttps://manpages.debian.org/unstable/udisks2/udisks.8.en.html says that it does not need to be priviledged to talk to the udisksd daemon as the daemon has the privilege.19:14
AlexLikeRockas root : work fine19:15
AlexLikeRockok, how CAJA/NAUTILUS work without privileges?19:15
rwpThat confirms that functionality is there and if we understand the security model it is using then it can work.19:16
rwpCan you strace the process, save the file, and pastebin it and share the paste?  strace -o /tmp/udisksctl.status.out -v udisksctl status19:17
rwpThat will fail but it will create /tmp/udisksctl.status.out which will show all of the system calls used and the failure.  Pastebin that to share it with us?19:17
rwp(side note to self, I really need to get my VM hosting fixed so I can create test systems more easily)19:18
AlexLikeRock strace -o /tmp/udisksctl.status.out -v udisksctl status19:29
AlexLikeRockbash: strace: command not found19:29
AlexLikeRockas normal user and root19:29
AlexLikeRock same answer19:29
AlexLikeRock cat  /tmp/udisksctl.status.out19:30
AlexLikeRockcat: /tmp/udisksctl.status.out: No such file or directory19:30
Hurgotron"strace: command not found" means you should install strace first.  apt install strace19:58
AlexLikeRockok19:58
AlexLikeRock strace -o /tmp/udisksctl.status.out -v udisksctl status19:59
AlexLikeRockstrace: Can't fopen '/tmp/udisksctl.status.out': Permission denied19:59
AlexLikeRockar root19:59
AlexLikeRockas*20:00
AlexLikeRockas normal user : too20:01
AlexLikeRock strace: Can't f open20:01
AlexLikeRockno : sorri , wrong mensage20:01
AlexLikeRockError connecting to the udisks daemon: Could not connect: Permission denied20:01
Hurgotronnot quite sure what you are trying to do there20:02
AlexLikeRocknot mount CAJA/nautilus  , my pendrive20:03
AlexLikeRock /etc/init.d/dbus status20:03
AlexLikeRockdbus is running.20:03
AlexLikeRockand normal user :20:04
AlexLikeRockudisksctl mount -b /dev/sdb120:04
AlexLikeRockError connecting to the udisks daemon: Could not connect: Permission denied20:04
rwpAlexLikeRock, I only have limited time to help right now but the /tmp/udisksctl.status.out permission problem as root makes no sense.  Root should have this permission.21:12
rwpWhat is the mode of /tmp ?  And that file?   ls -ld /tmp /tmp/udisksctl.status.out21:12
rwpPerhaps your permissions on /tmp are broken and that's affecting everything else?21:12
AlexLikeRock ls -ld /tmp21:13
AlexLikeRockdrwxrwxrwt 8 root root 16384 Nov 15 12:03 /tmp21:13
AlexLikeRocki found it21:14
AlexLikeRockhold on ..21:14
AlexLikeRockhttps://paste.mozilla.org/T1SjLBYu21:16
AlexLikeRockrwp,21:16
rwpThose permissions on /tmp are correct.  So that's not the problem.21:16
rwpLooking at the paste...21:17
rwpThe critical line of information from your paste is this: connect(5, {sa_family=AF_UNIX, sun_path="/var/run/dbus/system_bus_socket"}, 110) = -1 EACCES (Permission denied)21:20
rwpOn my system that looks like: srwxrwxrwx 1 root root 0 Oct  1 13:09 /var/run/dbus/system_bus_socket21:20
rwpDoes the permissisons on that socket look the same on your system?21:21
AlexLikeRock ls -ld /var/run/dbus/system_bus_socket21:21
AlexLikeRocksrwxrwxrwx 1 root root 0 Nov 15 10:27 /var/run/dbus/system_bus_socket21:21
AlexLikeRockyes21:21
AlexLikeRockhow  need this permission ?21:22
rwpHmm...  Thinking...  Those file permissions are open for all.  So...  I don't know.21:22
AlexLikeRockX_X21:23
rwpI can tell you some background on the UNIX Domain Socket there.  That's a "network socket" on disk.  The connect() system call is going to do a network connection to it.  The expectation is that another process already has it open and is listen()'ing on the socket.  That will connect the two processes up over the network connection.21:23
AlexLikeRockanother error : openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/charset.alias", O_RDONLY) = -1 ENOENT (No such file or directory)21:23
rwpLooking at "man 2 connect" EACCES may be because: EACCES For UNIX domain sockets, which are identified by pathname: Write permission is denied on the socket file, or search permission is denied for one of the directories in the path prefix.21:25
rwpTherefore I would look at the permissions of every directory in the path: ls -ld / /var /var/run /var/run/dbus /var/run/dbus/system_bus_socket21:25
rwpIt is possible that one of the directories above has limited permissions and that would cause the EACCES error.21:26
rwpThe man page also lists SELinux policy denied as a possibility too.21:26
AlexLikeRockSELINUX21:26
AlexLikeRock its my fauld!21:26
AlexLikeRockthanks so much21:26
AlexLikeRock letme search at my firefox history21:26
rwpOh?  Excellent!  Hopefully excellent anyway.  Good luck.  I must return to other work now.21:27
AlexLikeRocki screw out  ,  i screw out21:27
rwpIn the man page: EACCES It can also be returned if an SELinux policy denied a connection (for example, if there is a policy saying that an HTTP proxy can only connect to ports associated with HTTP servers, and the proxy tries to connect to a different port).21:27
AlexLikeRocknano /etc/selinux/config21:28
AlexLikeRocki change to :   SELINUX=enforcing21:28
AlexLikeRocki will put back21:28
AlexLikeRockSELINUX=permissive21:29
AlexLikeRockreboot -f21:29
AlexLikeRocknop21:36
AlexLikeRocknot work21:36
AlexLikeRockreinstalling udisk2 and gvfs ....21:36
AlexLikeRockok, what  its  defaul at this file ?  /etc/selinux/config21:51
AlexLikeRocknow im a confused21:51
rustyaxedid you reboot after changing it?22:56
rustyaxeYou cant switch from enforcing back to permissive without a reboot22:56

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