DFP | Probably 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 |
---|---|---|
onefang | If 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 |
onefang | multitail --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/syslog | 04:32 |
onefang | man multitail to figure out what that mess means. lol | 04:32 |
DFP | Ah, thanks. That seems very similar in function. | 04:35 |
DFP | And I would know a very general command that I could apply differently, rather than one specific-purpose one. | 04:35 |
onefang | As 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 |
DFP | I would probably just alias common tail commands. Like I had 'jbf' for 'sudo journalctl -b -f'. | 04:40 |
onefang | I have a startup script that opens lots of tmux tabs in a termit window. That multitail command is one of them. | 04:42 |
DFP | Hmm, some logs in /var/log seem to be in binary format. Any suggestions on reading those? | 04:47 |
golinux | Leftovers from Debian? | 05:19 |
golinux | Did you migrate? | 05:19 |
onefang | Likely talking about the binary log files in /var/log like faillog, wtmp, and similar. There's a few of those. | 05:21 |
gnarface | DFP: try the "last" command | 05:24 |
onefang | They typically have their own viewer programs. "man faillog" for example. | 05:25 |
DFP | Ah, thank you! | 05:25 |
onefang | "last" would be for wtmp. | 05:26 |
onefang | Oh and btmp. | 05:26 |
gnarface | the man page suggests it can read any of them but defaults to wtmp | 05:26 |
gnarface | (i'm sure there's several other options, that's just the first one that came up in the search) | 05:27 |
gnarface | most the logs are plain text though and intended to be human readable | 05:27 |
onefang | I just used man on the ones that I knew off the top of my head. | 05:27 |
DFP | Most are plain text, but when they aren't -- my terminal is screwed. :D | 05:29 |
gnarface | so, 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 |
DFP | I 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. :D | 05:34 |
onefang | Use a file reader that doesn't do that. | 05:35 |
gnarface | DFP: it usually works | 05:35 |
gnarface | you may have to ctrl+c your previous command first but with a garbled terminal that might not be obvious | 05:36 |
gnarface | but yea, you could just open them in emacs instead | 05:37 |
gnarface | or maybe hexedit if you want to actually read them as-is | 05:37 |
onefang | I 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 |
rustyaxe | running 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 |
gnarface | rustyaxe: do you have "build-essential" installed and the build-dep for linux-image installed? | 05:42 |
gnarface | error 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 |
rustyaxe | build-essential yes, did build-dep on the linux-image and still same result | 05:52 |
rustyaxe | kernel is 6.1.0-13-rt-arm64. trying to get radioberry module built | 05:52 |
gnarface | as a test run to check your dependencies, you might try building the nearest-version kernel source package from the repos | 05:54 |
gnarface | the normal build deps are still often missing critical things | 05:55 |
gnarface | from my notes an example from older versions: bison flex libssl-dev swig python-dev libncurses5-dev bc python3 libpython3.5-dev | 05:56 |
onefang | Time 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 |
al1r4d | what do you mean, " I stopped doing this under Ubuntu, 'cause shit broke", nn_? | 13:32 |
gnarface | i couldn't say, but the kernel source package should build, and will probably be less effort if you do it right | 13:32 |
al1r4d | Sometimes 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 |
al1r4d | Strange 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 |
gnarface | i see | 13: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 |
onefang | Devuan only installs art kernel if you ask it to. | 13:41 |
onefang | Er I meant - Devuan only installs an rt kernel if you ask it to. | 13:42 |
nn_ | I probably did, then. Thanks | 13:42 |
HumanGeek | hello what is udev ? related to systemd ? there is alternative etc ? | 16:34 |
gnarface | HumanGeek: there's eudev, yes | 16:35 |
gnarface | it's just the thing that automates making /dev/ nodes, you probably want to have it | 16:36 |
HumanGeek | gnarface: 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 |
HumanGeek | short story : sddm not start, whe, i do a startx (tty login) i3 start but i loose my keyboard and no mouse | 16:46 |
gnarface | HumanGeek: devuan has live isos you can test here: https://files.devuan.org/devuan_daedalus/desktop-live/ | 16:46 |
HumanGeek | i just see debian kernel-base required udev but there is mdev in repo that if i m not wrong is the gentoo udev alternative | 16:47 |
HumanGeek | gnarface: i m aware and use it in server but i want to keep my debian testing in order to improve debian other sysinit support | 16:48 |
HumanGeek | and less and less .deb support sysinit ... | 16:48 |
HumanGeek | and more suopport there is in debian less devuan have to work | 16:49 |
HumanGeek | if you always use debian as upstream | 16:49 |
rustyaxe | really 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 |
rustyaxe | well in this case, whispering as its getting set down to 0% for some reason | 17:02 |
gnarface | could be a number of things | 17:03 |
rustyaxe | happened with pulseaudio, still happening with pipewire; using xfce4 desktop -- it's an issue on amd64 and aarch64 both | 17:06 |
gnarface | did 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 |
rustyaxe | im suspicious indeed of pavucontrol doing fuckery | 17:08 |
gnarface | maybe pipewire has something other than pavucontrol, i'm not sure | 17:09 |
gnarface | but even with bare alsa, this has happened to me before | 17:09 |
rustyaxe | either way pavucontrol generally runs in the tray | 17:09 |
gnarface | (turned out to be WINE) | 17:09 |
rustyaxe | yea im generally only running wsjtx or js8call on here | 17:09 |
rustyaxe | (basically software modems) | 17:09 |
gnarface | losing volume settings when waking from sleep isn't unprecedented | 17:10 |
gnarface | could be a driver issue | 17:10 |
gnarface | could just be the volume slider on some embedded web video too though | 17:10 |
rustyaxe | It doesnt sleep and i dont even have a web browser | 17:16 |
rustyaxe | its pretty much single purpose machine ;) | 17:16 |
gnarface | so you're not even rebooting when the volume is lost? | 17:17 |
gnarface | maybe you can get the volume changes logging | 17:17 |
gnarface | or something | 17:17 |
rustyaxe | Nope 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% mixer | 17:19 |
gnarface | oh, like mid program | 17:20 |
gnarface | with no user input | 17:20 |
rustyaxe | Im 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 use | 17:20 |
gnarface | now that's weird | 17:20 |
rustyaxe | Yup | 17:20 |
rustyaxe | Just sitting there doing my thing and notice noone is hearing me-- check mixer, its at 0 | 17:20 |
gnarface | suspect driver issue | 17:20 |
rustyaxe | hmm not sure what chipset the various usb sound widgets we used are, but surely not all the same | 17:20 |
rustyaxe | also it happens with the internet audio on the mini PC (i had a pi4b there before with usb sound widget) | 17:21 |
rustyaxe | internal | 17:21 |
gnarface | but it couldn't be getting stray commands from some other usb device could it? a gamepad maybe with an uncentered joystick? | 17:21 |
gnarface | IR sensor? | 17:22 |
gnarface | faulty keyboard? | 17:22 |
rustyaxe | Shouldnt be, it's only got power, ethernet, and audio hooked to it | 17:24 |
rustyaxe | pretty much same as the pi had, which also had this | 17:24 |
rustyaxe | im really thinking pavucontrol is somehow involved. maybe apt purging it will help | 17:24 |
gnarface | well if you're not using pulseaudio i'd think you shouldn't be using it | 17:25 |
gnarface | but i don't know for sure about pipewire | 17:25 |
rustyaxe | pipewire emulates asound api, and thus sadly keeps some of the broken tools from pulse | 17:25 |
rustyaxe | might just say screw it and go back to alsa with dmix | 17:26 |
gnarface | well, it would be a good way to test anyway | 17:26 |
gnarface | you could narrow it down | 17:26 |
rustyaxe | i have seen some weird things in qpwgraph with pavucontrol running in that sometimes audio ends up routed THROUGH pavucontrol (wtf?) | 17:26 |
gnarface | might it be responding to hotplug events? | 17:27 |
rustyaxe | Hopefully purging pavucontrol sorts it but im not optimistic. Interestingly, i have similar setup on my laptop and dont have this issue | 17:27 |
gnarface | usb or hdmi hotplug events may cause pavucontrol/pipewire to react | 17:28 |
rustyaxe | udevadm monitor should show that | 17:28 |
rustyaxe | Nothing there, but illl leave it logging to a file to see | 17:28 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!