libera/#devuan/ Thursday, 2024-07-11

onefangFigured out what I did wrong before when trying to access IRC via the biboumi bridge, used from psi-plus XMPP client.  The biboumi IRC wrapper syntax is a bit arcane, didn't know I needed to add a : before the actual message to nickserv when IDENTIFYing.  Luckily I spotted those two tiny dots in an example.02:12
rustyaxeraw commands? makes sense; last argument beginning with : means to stop splitting parameters on ' ' characters ;)02:22
onefangNo idea why.  shrugs02:24
rustyaxeJust way IRC protocol works for last ~40 yers :P02:32
onefangAh, that's from IRC, not from biboumi.02:33
avir327Is this a place to talk about kernel panics?11:10
avir327(good morning!)11:11
Xenguyavir327, I don't see why not, but be patient in waiting for a reply12:50
adhocavir327: how about you start with a little bit more info ...12:53
al1r4davir327, yes13:29
avir327Xenguy, adhoc, al1r4d: Not sure if this is serious, but (most probably) my sshd caused a kernel panic on login. Just wanted to let you know in case there are more people affected.14:57
avir327I'll just leave this here, definitely no problem for me (my Linux-playground in vbox, not exposed to anything but its host).14:59
CueXXIIIavir327: that sounds strange, but without the actual panic log i doubt that would be of any use :(15:04
systemdleteI can work around this, actually, but I am very curious why it is not working.  I run ssh to system A and it reads my .bashrc but if I run ssh to system B, it does not read my .bashrc on that system.15:36
systemdletesystem A is daedalus and system B is chimaera.15:36
systemdletethe sshd_config is more or less the same on both systems15:36
systemdleteI can see from the script I am running on the remotes that the envars I need are being set or not.15:37
systemdleteI put a "echo hello" nonce in the /etc/profile on both systems just to see if they get read.15:37
systemdleteso, I think, if I am analyzing this correctly, that /etc/profile is getting read by sshd on A but not on B?15:38
systemdleteidk.  Why I'm here...15:38
systemdleteIt would be nice if .bashrc got read on both systems so I don't have to fudge it15:39
systemdletelet me correct myself:  I meant that /etc/bash.bashrc is getting read on both systems when invoked from ssh, but the ~/.bashrc is not getting read on the chimaera system.15:56
gnarfacesystemdlete: you have to reference ~/.bashrc from ~/.bash_profile (or one of the other optional names for ~/.profile)15:56
systemdleteI put the nonce in /etc/profile and in /etc/bash.bashrc15:56
gnarfacei think .login or... i forget now, the man page lists the names of files it looks for, ~/.bashrc isn't one of them15:57
systemdleteI only see the echo message from /etc/bash.bashrc on both, but not the /etc/profile for both15:57
gnarfacehmm, actually it may be more complicated than i'm thinking, but the man page does explain it15:57
systemdletewell, yes, it does.  It just doesn't seem to /actually/ work the way they claim, at least not for bullseye/chimaera.15:58
gnarfacehmm, odd15:58
systemdleteright here, on another daedalus system, I have .bashrc but not .bash_profile in my home.15:58
gnarfaceis that system running a GUI?15:58
systemdletethe .bashrc does get read in at login, or when running from script (without ssh)15:59
systemdleteyou mean xfce4?15:59
systemdleteyes15:59
systemdletein fact, every one of the systems mentioned is running xfce15:59
gnarfacei have a comment in mine that says to read /usr/share/doc/bash/examples/startup-files16:00
systemdleteI am guessing I'll have to do a lot more drilling down to figure this out16:00
systemdletefunny thing, gnarface, is that I really haven't changed anything in /etc for profile and bashrc configuration16:00
gnarfacei guess i don't use this file much for the systems i access by ssh so if it wasn't working i'm not sure i'd have noticed16:00
* systemdlete goes back to drilling down16:03
gnarfacei just know that for some dumb reason several GUIs stopped even reading the user's profile, so i had to do workarounds for that, but that doesn't sound related to your issue16:04
gnarfacemy existing assumption was just that the user's profile (available by 3 names) is supposed to be read for login shells, and ~/.bashrc is supposed to be read for login shells, so you have to reference it from the profile so they both get read for login shells16:06
gnarface....~/.bashrc is supposed to be read for non-login shells i meant to type16:06
systemdlete(right, that's how I undestand it also)16:08
systemdletebut .bashrc can be read in from another startup file if needed16:08
gnarfaceonly thing i could think is, maybe you have the profile under one of the other names in there doing nothing ?16:08
systemdleteI'll double-check but I don't think so.  hold on16:08
gnarfaceaccording to the man page:  ~/.bash_profile, ~/.bash_login, or ~/.profile.16:08
gnarfacebut there also seems to be some command-line options to override whether bash considers itself a login or non-login shell mentioned... not sure where they'd go but maybe check for one of them...16:09
gnarfacefor some reason i remember those 3 names not being an exhaustive list and that stuff like ~/.login would also work, but maybe i'm getting some other system confused here16:10
systemdleteand then there is BASH_ENV which can be set to read and set envars...16:16
systemdleteyeah, a ton of different ways.16:16
systemdletewell, I've checked, and I don't see a clue (yet) as to why  it is working differently.16:16
systemdletemy local bashrc on the chimaera system is DEFINITELY not getting read, bc I don't see my echo meesages16:17
systemdlete(but I do when I run ssh to the daedalus system)16:18
systemdleteas far as login/non-login shell distinctions, afaik, I am not purposely trying to invoke the shells one way or the other; I leave it up to ssh and sshd to figure that out16:21
systemdlete(btw, I DID look at that also. Thanks for the reminder though)16:22
systemdleteI wonder if either openssh or the bash packages were modified between C and D?16:24
systemdlete(possibly to address some of these very concerns about ordering of startup scripts, etc)16:25
systemdletethanks for the help again.  bbl (bfast time)16:25
gnarfacethis issue seems to ring a bell but i can't remember what solution if any was discovered... i wonder if it's some security bandaid16:38
gnarfaceor maybe some virtualization snafu? hmm....16:39
al1r4davir327, drop the log18:00
al1r4dah, he's gone18:00
masonsystemdlete: Just to throw a wrench into the works, remember that the traditional files work too - .profile and .shrc18:19
masonI use those, as I don't always use Bash.18:19
rwpOne of the worst design choices bash ever made was to not read the .bashrc file in a login shell and requiring it to be sourced explicitly from the .profile/.bash_profile instead.18:46
masonAgreed.19:01
rwpI used to keep one .profile and it would work for sh, ksh, bash, and so on.  But that became cluttered.  Now I keep a very simple .profile for sh and a bash specific .bash_profile with more stuff in it which also sources the .bashrc file.  Both are easier to read now.19:13
fsmithredsystemdlete, on my systems, ssh uses ~/.profile which sources ~/.bashrc. It's the same on beowulf, chimaera and excalibur. (current local machine is chimaera)19:22
systemdletefsmithred, mason, rwp, gnarface: I just ran a simple test.   I added a line at the top of /etc/profile:  echo hello from /etc/profile > /tmp/profile.out19:41
systemdleteThen, I ran the ssh invocation on each system--locally (meaning, from that system TO that same system)-- and there was no output from either.19:42
systemdleteNow, I don't know if, perhaps, somehow the stdout is being trapped or diverted or snuffed out cmopletely, but those are the results.19:42
systemdlete(clarification: I added that line to the top of /etc/profile on both C and D systems)19:44
systemdletefurthermore, it seems that even if I invoke a local shell directly--no ssh--that message does not appear.19:48
systemdletebtw, I changed the test to "echo hello from /etc/profile | tee /tmp/profile.out" hoping to get to see the message either on the stdout or the file capture19:48
gnarfacesystemdlete: you sure the default shell is still bash on those systems?19:49
systemdletedefault shell... I don't recall changing it.  Where is that set?19:49
gnarfacesymlink from /bin/sh19:50
systemdletedo you mean chsh?19:50
systemdleteoh, let me check.19:50
gnarfaceused to be bash, these days it's dash, which is kinda like "bash lite," but there's so many options19:51
systemdletepoints at /bin/dash on both C and D19:51
gnarfacewhat about the value of $SHELL to the user19:52
gnarfaceafter logging in via ssh and from a local console19:52
systemdleteI had checked that earlier, but then tore it out.  Hold on, checking...19:52
gnarfaceper-user shell setting is in /etc/passwd19:52
gnarfacealso maybe worth making a new user and seeing if it's getting the same returns on all these checks19:53
systemdleteshell seems to be /bin/bash.  The script I am running (set by ForceCommand in sshd_config) is #!/bin/bash, but that's the same on both systems too19:54
gnarfacehmm, weird19:54
gnarfacethese are VMs? or bare metal?19:55
systemdleteVMs, both19:55
gnarfacevbox still?19:55
systemdleteyep19:55
systemdlete(sorry about that)19:55
gnarfacei wonder if vbox could be doing something weird19:55
systemdlete(I know that doesn't ingratiate myself with anyone here)19:55
systemdletein only one VM and not the other?19:55
systemdleteI'd say that's unlikely19:55
gnarfacewell one is daedalus and one is chimaera you said right?19:56
systemdletealthough, vbox does offer options to configure VM for specific distros19:56
systemdleteyes, one is C and one is D19:56
gnarfacei was thinking maybe a vbox bug that only affects one distro or something like that19:56
gnarfaceone release, rather19:56
systemdleteLOL That might be it.19:57
systemdleteC is configured for Linux 2.4/2.6/blah and D is configured for Debian19:57
systemdletelet me change C to Debian and see if that makes a diff19:58
gnarfaceis there a reason you didn't set them both to debian?19:58
systemdleteI created them at different times.  D was cloned from a "Daedalus Template VM"19:58
gnarfaceah19:58
systemdleteI don't remember how C was created.  years ago now19:59
systemdletebut let me try that.19:59
systemdletethey should be the same anyway19:59
systemdleteOK, so I changed both of them to be for the specific releases (Bullseye and Bookworm)20:03
systemdletesame results, though.  :(20:04
systemdletealso, I don't remember now if I used the devuan ISO to create the C VM, or maybe a variant like refracta20:05
fsmithredlook for /var/log/refractainstaller.log20:05
systemdletenot that that should make much difference w/r/t shell behavior, but I thought I would mention it20:05
systemdleteah, fsmithred , thanks20:05
asz09Hey! I'm new here.. i'm not sure if i can ask for help in this chat.20:05
fsmithredalso 'cat /etc/issue' usually says refracta20:05
fsmithredyeah, this is the help channel20:06
fsmithredask and wait - could be seconds, minutes or hours before an answer comes20:06
systemdleteno log and I checked earlier in /etc/os-release.  Neither hint of refracta, so probably I installed from standard ISOs20:06
fsmithredwhich release is the host?20:07
systemdletefsmithred, you said your systems use /bin/sh for ssh?20:07
systemdletehost is D20:07
fsmithredI said ssh uses .profile20:07
systemdletesorry, I meant that20:07
systemdletehow do you know?20:07
fsmithredgood, I'm on daedalus now20:07
systemdletedid you set something in your sshd_config?20:08
fsmithredI defined a variable in .profile on the remote and then logged out and in again to echo $var20:08
fsmithredlogge out/in ssh, not the remote desktop20:08
fsmithredI'm about to fire up vbox20:09
systemdletesorry to do that to you fsmithred.  I consider you a friend.20:09
fsmithredwhat did you do to me?20:10
systemdleteI don't have .profile's in my C or D20:10
systemdlete(made you boot vbox)20:10
asz09thank you so much. I did a fresh install and configured my kernel, did my security tweaks as I normally do but i'm having a problem with my xfce GUI... Network manager says its not running, i cant access audio, and i cant shutdown or suspend nor switch user. The option appear greyinsh. I can do all the latter using the terminal. I suspect it has something to do with DBus.        The error message i got in20:10
fsmithredlol20:10
asz09syslog was "dbus-daemon[1557]: [system] Activated service 'org.freedesktop.PolicyKit1' failed: Launch helper exited with unknown return code 1"20:10
systemdleteomg20:11
fsmithredasz09, make sure policykit-1-gnome is installed20:11
* systemdlete hits self hard. Really hard.20:11
systemdletethere IS a .profile on the D sysstem, just not on C20:12
fsmithredweird. How did that happen?20:12
systemdleteI think I accidentally did my test on the host (which is D) when I meant to pull up the C VM20:12
systemdleteso all I need to do is get a .profile and this should be ok20:13
asz09I checked, it was... it's weird because i wasnt happening before. I tried rebooting, restarting services and everything...20:14
fsmithredsystemdlete, I get same result on excalibur VM20:15
systemdletesame result as... ?20:18
fsmithredasz09, is this daedalus or excalibur? Did you use one of the installer isos or desktop-live?20:19
fsmithredssh reads .profile20:19
systemdleteon mine, .profile does not seem to be running at all20:19
systemdletei put an echo near the top of .profile, but it does not echo20:19
fsmithredI put a var def at the end20:19
asz09fsmithred, i'm using daedalus, used netinstall (which worked perfectly)20:20
systemdleteon the other hand, I don't get .profile output on my D VM either20:20
systemdleteotooh, these are in xfce4-terminals, so .profile will not be read anyway (per docs)20:29
systemdlete.profile is only for login shells20:29
systemdletebut $0 is -bash, not bash, which means it IS a login shell after all (on D at least)20:31
fsmithred.profile is not read when you open the terminal. It does get read if you ssh localhost20:35
fsmithredin that same terminal20:35
systemdletesupposedly.  Not here though20:38
systemdleteThere, on yours, yes20:38
systemdlete(apparently)20:38
systemdletewhat is confusing me even more is that on some of my system, echo $0 in the terminal gives me -bash (interative shell) and some give me /bin/bash (non-interactive shell)20:39
systemdleteeven across D systems... so I've got something hosed up here20:39
systemdleteit is only adding to my confusion20:39
fsmithredI get bash in a desktop terminal and -bash in the ssh login20:43
systemdletessh user@remote 'echo $0' gives me "bash", not "-bash"20:54
systemdlete(D)20:54
gnarfaceasz09: run the command "groups" as your user and make sure you're in the audio group. as for the other stuff... just kinda sounds like you're missing a couple packages or have the wrong combination of packages for permissions backend and login manager... do you know which login manager you're using (sorry i'm not sure what the defaults are)20:55
gnarface?20:56
fsmithreddpkg -l | grep -E "policykit|polkit|login|consolekit|libpam"20:58
systemdletefsmithred: me?20:58
fsmithred^^^ asz09 and put the results on paste.debian.net20:59
systemdlete(oh)20:59
systemdletefsmithred, when you "ssh user@remote 'echo $0'" what do you get?  "bash" or "-bash"?20:59
fsmithredI might have forgotten something in that list20:59
systemdlete(on Daedalus)20:59
fsmithred-bash over ssh20:59
fsmithreduh that was from daedalus to excalibur/ceres VM21:00
systemdletewonder how I am getting such a different result21:00
systemdletecan you do it from localhost to localhost?21:00
systemdleteso21:00
systemdletessh localuser@localhost 'echo $0'21:00
fsmithredI get -bash with that21:01
systemdletehuh21:01
fsmithredin the same terminal where I got just bash before the ssh21:01
systemdleteright, ok...21:01
systemdleteweird21:01
systemdletewth is going on here21:01
fsmithredwhat does -bash mean?21:01
fsmithredwhat't the minus?21:01
systemdleteit indicates login shell21:01
systemdletesame as bash --login21:02
systemdleteor -l21:02
fsmithredok21:02
systemdlete(lower L)21:02
fsmithredyou looked in /etc/sshd_config for something related?21:02
asz09fsmithred, thank you for the attention. https://paste.debian.net/132297821:02
systemdleteso with login shell, the .profile gets read, and from there, the .bashrc21:02
systemdletefsmithred, yes21:02
systemdleteI think I'm going to settle for setting variables explicitly.  I was hoping to avoid that, but it's not that big a deal really.  I am just totally perplexed why my shells and reading startup files are so out of whack.21:03
systemdletewhy they are diff from yours, e.g.21:04
systemdleteor why my chimaera is different from my daedalus21:04
systemdletewhat is really odd is that on the test D system, I get "bash" (not -bash) running ssh, yet the .bashrc is getting read and vars inside are being set!21:06
systemdleteper the docs and specs, that shouldn't be happening yet it is21:06
systemdleteOTOOOOOOOH, it is a testbox with test VMs that do get some changes for my testing purposes.21:07
systemdleteso maybe something I've mod in the past is biting me now21:07
systemdleteI can do a reset to find out for sure21:08
systemdleteI have learned a few interesting things here today, but I feel like this is starting to drag on our limited support resources.  So I might just let this rest.21:08
fsmithredasz09, that output looks the same as mine.21:08
asz09gnarface, it appears "asz09 cdrom floppy audio dip video plugdev users netdev bluetooth lpadmin scanner". I'm not sure what's happening either, but i'm convinced it might have something to do with the error message I posted. My display manager seems to be lightdm. Than you for the attention21:09
fsmithredI can't figure out how your problems are connected.21:09
systemdletethanks for the help, all.21:10
systemdleteI'll be paying more attention to shell configs from now on.21:10
fsmithredsystemdlete, my money is on you messede with something21:10
fsmithredmessed21:10
systemdletemine too21:10
systemdlete(well, let's hope that's all it is)21:10
asz09fsmithred, it might be related to this? https://paste.debian.net/132298021:11
fsmithredasz09, try this in a terminal: /usr/sbin/xfpm-power-backlight-helper --get-brightness21:22
asz09fsmithred, i got 681821:26
fsmithredok, I was curious to see if you got an error message. I got 11 when I run it.21:26
fsmithredon an old thinkpad with the brightness turned down21:26
fsmithredis dbus-daemon running?21:27
fsmithredps ax | grep dbus21:27
asz09seems like it is https://paste.debian.net/1322981 . Using an old thinkpad too ;) haha21:29
fsmithredI'm really just guessing now. Maybe apply microsoft logic: aptitude reinstall <stuff>21:30
fsmithredmaybe start with xfce4-power-manager21:31
fsmithredor the policykit stuff21:31
asz09I tried it already, dont know what to do anymore. Just got this tho, from a troubleshoot: update-rc.d: error: initscript does not exist: /etc/init.d/polkit21:34
gnarfaceasz09: i'm guessing the audio problem is separate, and common, but there's so many of them21:36
gnarfacefirst thing would be to try some simple tests, like "speaker-test -c 2 -t wav"21:37
fsmithredI don't have that init script, either21:37
fsmithredapt-file find init.d/polkit  returns nothing.21:38
fsmithredwhat is looking for the non-existent file?21:39
gnarfacefrankly i've generally had abysmal luck with slim and usually the first thing i do is switch to something else like lightdm21:39
fsmithred^^^ good suggestion21:40
fsmithredthat init script doesn't exit on my beowulf, either21:40
asz09Thank you so much guys.. I'll try to use another manager maybe. Hopefully its something related to Apparmor or something21:41
gnarfaceasz09: wait, are you using sysvinit, or did you pick a different one?21:41
fsmithredThis comes up on a search for part of the error message. I don't know if it will help, but I've gotten good answers from ToZ before: https://forum.xfce.org/viewtopic.php?id=1119021:42
fsmithredI think you can boot with apparmor=0 in the boot command to disable it21:43
gnarfaceasz09: also, just as a minor diversion, did you get anything from that speaker-test?21:44
asz09Sysvinit. Speakers not working either!21:47
gnarfaceasz09: need more detail. does it throw an error, or does it say it's working but just not make sound?21:48
asz09I will try to disable apparmor and some other stuff I configured. I will be back on after a reboot21:48
asz09https://paste.debian.net/132298221:49
fsmithredaplay -l21:54
gnarfacehmm, alsa errors are sometimes a bit obtuse, but "no such file or directory" generally actually means it can't support the format, which... for this format probably means that what it picked as the default soundcard isn't actually a soundcard22:05
gnarface(or if it is the driver isn't loaded, anyway)22:06
gnarfaceyea, i'd check "aplay -l" and "aplay -L" next22:06
fsmithredI'm starting to remember a problem where a bunch of modules didn't get loaded and it looked like devices were missing22:24
gnarfacewell, it could be loading and just badly broken too22:50
gnarfacewe have to do a bunch more tests to be sure22:50
rrqthis line "ALSA lib confmisc.c:855:(parse_card) cannot find card '0'22:50
rrqsomewhere in the config it declares "card" as a string "0" rather than a number 022:51
rrqmost likely in ~/.asoundrc22:52
rrq(In system config only /usr/share/alsa/cards/Maestro3.conf stands out as a [unlikely] candidate problem source)23:03

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