libera/#devuan/ Wednesday, 2023-10-11

DFPProbably a stupid question, but what commands exist for reading logs except 'journalctl'? Do I just, say, 'watch sudo tac /var/log/syslog' instead of 'journalctl -b -f'?04:27
onefangIf I just want to watch new stuff on one log file I use "tail -f /var/log/syslog".  For watching multiple log files in a tmux window I use the multitail command.04:30
onefangmultitail --no-repeat --mergeall --follow-all --retry-all /var/log/apache2/error.log /var/log/auth.log /var/log/mysql/error.log -ec "172\.16\.0\.|37\.220\.36\.58" /var/log/syslog04:32
onefangman multitail to figure out what that mess means.  lol04:32
DFPAh, thanks. That seems very similar in function.04:35
DFPAnd I would know a very general command that I could apply differently, rather than one specific-purpose one.04:35
onefangAs a bonus I usually do the tail command from mc, with the file being highlighted, so it ends up being "tail -f %f". B-)04:38
onefang%f means "currently highlighted file" in mc / midnight commander.  My file manager of choice.04:38
DFPI would probably just alias common tail commands. Like I had 'jbf' for 'sudo journalctl -b -f'.04:40
onefangI have a startup script that opens lots of tmux tabs in a termit window.  That multitail command is one of them.04:42
DFPHmm, some logs in /var/log seem to be in binary format. Any suggestions on reading those?04:47
golinuxLeftovers from Debian?05:19
golinuxDid you migrate?05:19
onefangLikely talking about the binary log files in /var/log like faillog, wtmp, and similar.  There's a few of those.05:21
gnarfaceDFP: try the "last" command05:24
onefangThey typically have their own viewer programs.  "man faillog" for example.05:25
DFPAh, thank you!05:25
onefang"last" would be for wtmp.05:26
onefangOh and btmp.05:26
gnarfacethe man page suggests it can read any of them but defaults to wtmp05:26
gnarface(i'm sure there's several other options, that's just the first one that came up in the search)05:27
gnarfacemost the logs are plain text though and intended to be human readable05:27
onefangI just used man on the ones that I knew off the top of my head.05:27
DFPMost are plain text, but when they aren't -- my terminal is screwed. :D05:29
gnarfaceso, when that happens, run the command "reset" (yes, it will work if you type it right, even if you can't read it while typing it)05:30
DFPI have read online that it doesn't always work. I could find the right ultimate reset command, but I'd rather not have the problem in the first place. :D05:34
onefangUse a file reader that doesn't do that.05:35
gnarfaceDFP: it usually works05:35
gnarfaceyou may have to ctrl+c your previous command first but with a garbled terminal that might not be obvious05:36
gnarfacebut yea, you could just open them in emacs instead05:37
gnarfaceor maybe hexedit if you want to actually read them as-is05:37
onefangI use the built in mc file viewer, it shows dots for unprintables that might mess things up, but can be switched to hex mode.05:39
rustyaxerunning into some issues trying to build an out-of-tree kernel linux -- have linux-headers installed but.. make[2]: *** No rule to make target 'arch/arm64/tools/gen-cpucaps.awk', needed by 'arch/arm64/include/generated/asm/cpucaps.h'.  Stop.05:40
gnarfacerustyaxe: do you have "build-essential" installed and the build-dep for linux-image installed?05:42
gnarfaceerror doesn't look familiar, could be a bug in the kernel you're trying to build. which version is it and where's it from?05:45
rustyaxebuild-essential yes, did build-dep on the linux-image and still same result05:52
rustyaxekernel is 6.1.0-13-rt-arm64. trying to get radioberry module built05:52
gnarfaceas a test run to check your dependencies, you might try building the nearest-version kernel source package from the repos05:54
gnarfacethe normal build deps are still often missing critical things05:55
gnarfacefrom my notes an example from older versions: bison flex libssl-dev swig python-dev libncurses5-dev bc python3 libpython3.5-dev05:56
onefangTime for my super desktops annual clean.  Back later.05:57
nn_Custom Kernel:  My tradition, since my slackware days, has been to download and compile a virgin kernel via git ( or CVS ).  I stopped doing this under Ubuntu, 'cause shit broke.  Are any of the debian patches essential to making the devuan userspace work?13:30
al1r4dwhat do you mean, " I stopped doing this under Ubuntu, 'cause shit broke", nn_?13:32
gnarfacei couldn't say, but the kernel source package should build, and will probably be less effort if you do it right13:32
al1r4dSometimes i compile a virgin kernel via kernel.org and i dont have any problem with that.13:32
nn_al1rd:  I cannot recall exactly what problems I ran into under Ubuntu, frankly.  It was a couple of years ago.  I'm glad to hear that a virgin kernel works for you, I'll run it up the flagpole and see if the system salutes.13:33
al1r4dStrange thing :/13:34
nn_Pgnarface: true it is probably less work.  I'm just a glutton for purity and/or punishment, depending on your perspective.13:34
gnarfacei see13:34
nn_IIRC, I ran into boot issues with my custom kernel, last time I tried.  Will mention it here if I have issues under devuan.One reason I do this is because I tend to have several distributions on my box, including a LFS partition, and I like it if I can use the same kernel across all of them.13:36
nn_One other question:  I believe that devuan installs a rt kernel.  I have 16 processors, with 24 threads.  But if I am running a kernel compile, my mouse becomes unresponsive.  I get it back if I do ctrl-z the kernel compilation.  I have not noticed this under other kernels.  Are these things connected, do you think?13:39
nn_I am running the make with 16 jobs, so I would expect to have sufficient power to respond to the mouse ...13:39
onefangDevuan only installs art kernel if you ask it to.13:41
onefangEr I meant - Devuan only installs an rt kernel if you ask it to.13:42
nn_I probably did, then.  Thanks13:42
HumanGeekhello what is udev ? related to systemd ? there is alternative etc ?16:34
gnarfaceHumanGeek: there's eudev, yes16:35
gnarfaceit's just the thing that automates making /dev/ nodes, you probably want to have it16:36
HumanGeekgnarface: i currently use debian testing without systemd. but i face some issue maybe systemd more or less related (not sure) and the help i get is install systemd ...16:45
HumanGeekshort story : sddm not start, whe, i do a startx (tty login) i3 start but i loose my keyboard and no mouse16:46
gnarfaceHumanGeek: devuan has live isos you can test here: https://files.devuan.org/devuan_daedalus/desktop-live/16:46
HumanGeeki just see debian kernel-base required udev but there is mdev in repo that if i m not wrong is the gentoo udev alternative16:47
HumanGeekgnarface:  i m aware and use it in server but i want to keep my debian testing in order to improve debian other sysinit support16:48
HumanGeekand less and less .deb support sysinit ...16:48
HumanGeekand more suopport there is in debian less devuan have to work16:49
HumanGeekif you always use debian as upstream16:49
rustyaxereally getting sick of *something* mucking with my volume control.. i need my volume to stay where i put it, so im not screaming into a radio....17:02
rustyaxewell in this case, whispering as its getting set down to 0% for some reason17:02
gnarfacecould be a number of things17:03
rustyaxehappened with pulseaudio, still happening with pipewire; using xfce4 desktop -- it's an issue on amd64 and aarch64 both17:06
gnarfacedid you check pavucontrol? maybe it has some auto-volume thing. chances are though it's some program you're running that does it.17:07
rustyaxeim suspicious indeed of pavucontrol doing fuckery17:08
gnarfacemaybe pipewire has something other than pavucontrol, i'm not sure17:09
gnarfacebut even with bare alsa, this has happened to me before17:09
rustyaxeeither way pavucontrol generally runs in the tray17:09
gnarface(turned out to be WINE)17:09
rustyaxeyea im generally only running wsjtx or js8call on here17:09
rustyaxe(basically software modems)17:09
gnarfacelosing volume settings when waking from sleep isn't unprecedented17:10
gnarfacecould be a driver issue17:10
gnarfacecould just be the volume slider on some embedded web video too though17:10
rustyaxeIt doesnt sleep and i dont even have a web browser17:16
rustyaxeits pretty much single purpose machine ;)17:16
gnarfaceso you're not even rebooting when the volume is lost?17:17
gnarfacemaybe you can get the volume changes logging17:17
gnarfaceor something17:17
rustyaxeNope just sitting there using the one program, not touching pavucontrol (wsjtx and js8calll dont even support volume setting) and it'll just randomly drop to 0% mixer17:19
gnarfaceoh, like mid program17:20
gnarfacewith no user input17:20
rustyaxeIm glad its 0% instead of 100%, but if it can go to 0%, whats to say it wont one day go to 100% or somewhere higher than the 17% i usually use17:20
gnarfacenow that's weird17:20
rustyaxeYup17:20
rustyaxeJust sitting there doing my thing and notice noone is hearing me-- check mixer, its at 017:20
gnarfacesuspect driver issue17:20
rustyaxehmm not sure what chipset the various usb sound widgets we used are, but surely not all the same17:20
rustyaxealso it happens with the internet audio on the mini PC (i had a pi4b there before with usb sound widget)17:21
rustyaxeinternal17:21
gnarfacebut it couldn't be getting stray commands from some other usb device could it? a gamepad maybe with an uncentered joystick?17:21
gnarfaceIR sensor?17:22
gnarfacefaulty keyboard?17:22
rustyaxeShouldnt be, it's only got power, ethernet, and audio hooked to it17:24
rustyaxepretty much same as the pi had, which also had this17:24
rustyaxeim really thinking pavucontrol is somehow involved. maybe apt purging it will help17:24
gnarfacewell if you're not using pulseaudio i'd think you shouldn't be using it17:25
gnarfacebut i don't know for sure about pipewire17:25
rustyaxepipewire emulates asound api, and thus sadly keeps some of the broken tools from pulse17:25
rustyaxemight just say screw it and go back to alsa with dmix17:26
gnarfacewell, it would be a good way to test anyway17:26
gnarfaceyou could narrow it down17:26
rustyaxei have seen some weird things in qpwgraph with pavucontrol running in that sometimes audio ends up routed THROUGH pavucontrol (wtf?)17:26
gnarfacemight it be responding to hotplug events?17:27
rustyaxeHopefully purging pavucontrol sorts it but im not optimistic. Interestingly, i have similar setup on my laptop and dont have this issue17:27
gnarfaceusb or hdmi hotplug events may cause pavucontrol/pipewire to react17:28
rustyaxeudevadm monitor should show that17:28
rustyaxeNothing there, but illl leave it logging to a file to see17:28

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