|
You have confused the poo poo out of me. What are you trying to do?
|
# ? Nov 16, 2022 01:08 |
|
|
# ? Apr 19, 2024 21:48 |
|
Saukkis posted:'if [ $(w -h | grep -v "^root " | wc -l) -eq 0 ] ; then reboot ; fi' Assuming you want to do something if there are no non-root logins, which is how I read your wc -l -eq 0: code:
E: You want to use "grep -q -v" as -q will force grep to return success if it encounters an actual error but it will continue to return failure if there's no match. v1ld fucked around with this message at 03:44 on Nov 16, 2022 |
# ? Nov 16, 2022 03:39 |
|
Why hasn't systemd reinvented utmp for us? Why do we still have to parse binary files to figure out who's logged in.
|
# ? Nov 16, 2022 03:49 |
|
The classic Kernighan & Pike book, The UNIX Programming Environment, is dated and simple by today's modern UNIX standards but it devotes chapters to the original UNIX dream of pipes as compositional tools, and how to chain programs together with them. Highly recommended reading even today as it leads to simpler shell code in the long run. Much modern shell code uses mainstream programming language control flow instead of exploiting some of the power in the shell's ability to control execution using process success/failure. Chunks of the book will seem unnecessary and useless, but the shell programming chapters are pure gold. IIRC they develop a cheap and simple version control system using some elegant shell scripts.
|
# ? Nov 16, 2022 04:00 |
|
I'm rereading it. I think you want awk for your poo poo.
|
# ? Nov 16, 2022 04:04 |
|
jaegerx posted:I'm rereading it. I think you want awk for your poo poo. Aho-Weinberger-Kernighan. QED. Bad joke. But it's cool that you mentioned awk right after I mentioned K&P. E: Actually, I forgot that it was last page in this very thread that I saw the mention of how he's still hacking on awk. For which I'll atone with this cool interview: https://www.youtube.com/watch?v=EY6q5dv_B-o There's a super cool anecdote about Doug McIlroy in there that frankly blows the mind. The long story starts at 38:40. The original UNIX crew were all so super talented people. v1ld fucked around with this message at 04:23 on Nov 16, 2022 |
# ? Nov 16, 2022 04:07 |
|
I have a phantom entry in my gub, any suggestions to track it down what's generating it? It's an old recovery entry from some old Fedora 33 or 35 kernel, I've looked for it before and couldn't figure it out and am deciding that it's now annoying me enough to ask... I have
I can see the initrd etc. under /boot but deleting them obviously won't don anything and it gets generated again somehow, I guess dracut is picking it up? I'm not quite sure if dracut reads grub configs or the other way around. I can also see the actual entry under /boot/loader/entries/3a1483c6483f405ca1e67505c7ac9311-0-rescue.conf, but it's also generated each time... Where the hell is this coming from? Why is it pulling / building an old fedora version?
|
# ? Nov 21, 2022 01:09 |
|
Seems it might be related to Dracut? https://unix.stackexchange.com/questions/179894/how-do-i-disable-the-creation-of-the-rescue-boot-image-on-centos
|
# ? Nov 21, 2022 11:58 |
|
Yea I think that's it, will need to do some proper testing but seems likely and definitely have that package installed, thanks!
|
# ? Nov 22, 2022 02:05 |
|
I wish whoever decided the "make grub appear" and "dismiss the menu and drop to the grub command line" keys should both be Esc hits their shin on a table. Not bad or anything, just enough to make up for the amount of time I've wasted trying to get the timing Just Right to trigger a grub menu without a key repeat dropping me out to the CLI.
Computer viking fucked around with this message at 11:46 on Nov 22, 2022 |
# ? Nov 22, 2022 11:33 |
|
Computer viking posted:I wish whoever decided the "make grub appear" and "dismiss the menu and drop to the grub command line" keys should both be Esc hits their shin on a table. Not bad or anything, just enough to make up for the amount of time I've wasted trying to get the timing Just Right to trigger a grub menu without a key repeat dropping me out to the CLI. Hold shift instead of tapping esc (or tap F4 if shift doesn't work for some reason).
|
# ? Nov 22, 2022 14:11 |
|
I get doubled keystrokes in grub, which makes picking the right OS be sort of a little game of towers of Hanoi, and I cannot figure out why. It’s also laggy, probably related.
|
# ? Nov 22, 2022 14:14 |
|
Subjunctive posted:I get doubled keystrokes in grub, which makes picking the right OS be sort of a little game of towers of Hanoi, and I cannot figure out why. It’s also laggy, probably related. You might check out what BIOS options your machine has for USB & peripherals, particularly "legacy USB support". That makes the bios emulate a PS/2 keyboard & mouse for old poo poo that doesn't talk to USB. And if you haven't, switch the bios to UEFI-only rather than legacy / compatibility. Basically at this point you should disable anything in the BIOS called "legacy". It's all generally enabled by default which sucks but what can you do.
|
# ? Nov 22, 2022 14:35 |
|
Klyith posted:Hold shift instead of tapping esc (or tap F4 if shift doesn't work for some reason). Shift didn't seem to work for me, and I've seen suggestions that it only works in BIOS mode - but if it was user error and I just gave up too quickly, that would be good. And I didn't know about F4. Next time, etc; thanks.
|
# ? Nov 22, 2022 16:28 |
|
Ubuntu still the desktop distro of choice?
|
# ? Nov 23, 2022 19:17 |
|
Lol no Fedora
|
# ? Nov 23, 2022 19:23 |
|
If you're going for the Aptitude software universe I'd always pick Debian over Ubuntu, but given I work with RHEL-based stuff yeah Fedora.
|
# ? Nov 23, 2022 19:25 |
|
Hrm, I see fractional scaling is still a shitshow.
|
# ? Nov 23, 2022 19:28 |
Combat Pretzel posted:Ubuntu still the desktop distro of choice? I've been very happy with my Fedora install.
|
|
# ? Nov 23, 2022 19:39 |
|
RFC2324 posted:Lol no Arch (or derivatives such as Manjaro) seem to be all the rage these days. I tried Manjaro in a VM once but an upgrade eventually broke something. Mint still seems to be a decent Debian/Ubuntu derivative, plus they hate snaps. KDE Neon if you want Ubuntu running the latest and greatest KDE. ElementaryOS if you want to pretend to have a Mac I interactive with some OpenSUSE machines at work. It seems entirely cromulent and whelming. Solus if you like the Budgie desktop and are also a weirdo who wants to rail against the big corporate distros. (It's a rare case of a minor distro made from scratch and not off one of the big distros) Kali if you're watched too much Mr Robot.
|
# ? Nov 23, 2022 19:42 |
|
Mint is good if you want a lightweight VM. Although if someone knows something lighter then pray tell.
|
# ? Nov 23, 2022 19:48 |
|
Nitrousoxide posted:I've been very happy with my Fedora install.
|
# ? Nov 23, 2022 19:52 |
|
Tesseraction posted:Mint is good if you want a lightweight VM. Although if someone knows something lighter then pray tell. I know Alpine is often used as the base for Docker containers that build from source. That probably doesn't translate cleanly to using as an actual VM as opposed to a build machine, though. I am admittedly very new and naive to this.
|
# ? Nov 23, 2022 19:53 |
|
Combat Pretzel posted:I used it for a while back then. I'm still a bit sour about it, tho, because for seemingly slightly workstationy servery orientated, their Open-iSCSI package back then didn't implement a specific patch to be fully functional, despite documentation pretending otherwise. I sure spent way too much time figuring that out. And Poettering still has too much influence. At this point escaping lenarts influence is about as likely as escaping linus's
|
# ? Nov 23, 2022 19:55 |
Kibner posted:I know Alpine is often used as the base for Docker containers that build from source. That probably doesn't translate cleanly to using as an actual VM as opposed to a build machine, though. I am admittedly very new and naive to this. Alpine is definitely not a workstation OS. Its a container or VM os to provide an extremely lightweight base for you to build the additional dependencies on for a single or small set of apps to work on.
|
|
# ? Nov 23, 2022 19:59 |
|
Yeah, alpine isn't a full OS, its a framework for minimal containers Does it even have a kernel with real hardware drivers, or just minimal stubs for docker devices?
|
# ? Nov 23, 2022 20:01 |
|
Combat Pretzel posted:Ubuntu still the desktop distro of choice? Now, maybe that's enough that you don't want to use Ubuntu anymore, which is fair. But if you're currently a Ubuntu user it's largely still the same as it's ever been.
|
# ? Nov 23, 2022 20:05 |
|
Combat Pretzel posted:Ubuntu still the desktop distro of choice? I abandoned Ubuntu in like 2009. OpenSUSE is nice and boring, just how I like it.
|
# ? Nov 23, 2022 20:09 |
|
windows 11 with wsl is the actual best desktop.
|
# ? Nov 23, 2022 20:12 |
|
RFC2324 posted:Yeah, alpine isn't a full OS, its a framework for minimal containers It actually has some interesting and strange live-stick options. But it still isn't good for any actual interactive usage.
|
# ? Nov 23, 2022 20:15 |
|
My experience interacting with alpine is "wait what, I have to use /proc to find any info?"
|
# ? Nov 23, 2022 20:20 |
|
Pablo Bluth posted:Arch (or derivatives such as Manjaro) seem to be all the rage these days. I tried Manjaro in a VM once but an upgrade eventually broke something. I'm pretty meh on Manjaro now, the whole "Arch but we hold things for 2 weeks of testing" is kinda bogus. They aren't really testing much of anything, so mainly what it means is you live with bugs longer. I'm thinking of hopping to a new distro at some point, but not sure where I'd go. Possibly I just do Fedora for more stability. I do like the rolling release style though. Sometimes it sucks when you get an update that has bugs, but at least it sucks for a short time. So I might do OpenSuse Tumbleweed to see if they're better managed. (But this time I format / as btrfs to get snapshots and rollback, and ignore the vocal btrfs-hater who doesn't know what they're talking about.)
|
# ? Nov 23, 2022 21:21 |
|
Klyith posted:I'm pretty meh on Manjaro now, the whole "Arch but we hold things for 2 weeks of testing" is kinda bogus. They aren't really testing much of anything, so mainly what it means is you live with bugs longer. I'm back to running Tumbleweed on one of my desktops (I needed a more recent kernel for the onboard wifi on this motherboard) after running it as my daily driver for a long time on my main desktop, and it's pretty solid. If you go with the btrfs and snapshots then odds are it would be great as a daily driver. The biggest issues I ran into were kernel updates coming out before the Nvidia driver was updated for them, and losing X, but I got in the habit of checking the update list to see if there was a significant kernel update without a corresponding Nvidia driver update. I have not tried running Tumbleweed with secure boot turned on, as with the Nvidia driver that's enough of a hassle that I've been forgoing it on my 15.4 install, and I haven't put in the time or effort to properly figure it out.
|
# ? Nov 23, 2022 21:31 |
|
xzzy posted:windows 11 with wsl is the actual best desktop. For that authentic "it's perfect except for this weird bug that would completely derail a normal user" Linux desktop experience, the sidebar in my Windows 11 file explorer windows randomly stays completely blank for minutes at the time on my laptop. Also, Fedora seems fine, both on the desktop and laptop. I've had more luck with version upgrades than on Ubuntu, too.
|
# ? Nov 23, 2022 21:39 |
|
I use Debian for a tiny NUC home server and a Chrome OS Linux container. Both of them are on stable (bullseye) and have backports (bullseye-backports). Between backports, pipx and flatpak, it covers what I want for newer packages.
|
# ? Nov 23, 2022 21:43 |
Klyith posted:I'm pretty meh on Manjaro now, the whole "Arch but we hold things for 2 weeks of testing" is kinda bogus. They aren't really testing much of anything, so mainly what it means is you live with bugs longer. You could try Fedora Silverblue if you're worried about update bugs since it's an immutable system that uses ostree to track the changes from the updates you can roll back to a previous system image if an update breaks something critical. That said, I've never encountered any gamebreaking bugs in my bog standard Fedora Workstation install.
|
|
# ? Nov 23, 2022 22:02 |
|
Has anyone heard anything about HDR support on Linux? I keep a windows install for gaming, mostly for HDR support but I'd love to have the option to move over. I had a nice OLED monitor so HDR actually looks good.
|
# ? Nov 23, 2022 22:12 |
|
Nitrousoxide posted:You could try Fedora Silverblue if you're worried about update bugs since it's an immutable system that uses ostree to track the changes from the updates you can roll back to a previous system image if an update breaks something critical. Nah I'm pretty chill with the odd bug or three. And everything in containers seems like it has its own occasional frustrations. That said, Silverblue is a very cool concept -- if you're gonna do containers, go all the way! But not what I'm looking for. a dingus posted:Has anyone heard anything about HDR support on Linux? I keep a windows install for gaming, mostly for HDR support but I'd love to have the option to move over. I had a nice OLED monitor so HDR actually looks good. Still in early development on wayland, so not gonna happen any time soon.
|
# ? Nov 23, 2022 22:45 |
|
Klyith posted:I'm pretty meh on Manjaro now, the whole "Arch but we hold things for 2 weeks of testing" is kinda bogus. They aren't really testing much of anything, so mainly what it means is you live with bugs longer. Some math: Manajaro = Arch + 2 weeks EndeavourOS = Arch + a few EOS pkgs that are optional => EndeavourOS = Manjaro - 2 weeks + a few optional EOS pkgs If you like Arch, EOS is a great alternative. After using it as daily driver for months now, I'd skip the group of EOS pkgs in the installer since none of those are particularly useful and all they do is add another repo you're dependent on. Removing them after the install seems a bit more work given some pkg dependencies. But it's not like Arch is the one true way or anything, lots of interesting distros and approaches out there.
|
# ? Nov 23, 2022 23:01 |
|
|
# ? Apr 19, 2024 21:48 |
|
So I'm coming across something a peculiarly haven't ever had to deal with before... I have a bunch of pip user installed packages that were installed for 3.10. On upgrading to Fedora 37 it now uses python3.11 which I guess broke a bunch of stuff again? I'm not sure what happened with other older upgrades, I guess I assumed it always worked and they transitioned to the newer python version or something... or maybe I just never used pip user installs before F36, as my old site packages (~/.local/lib/python3.{7,8,9} etc) had nothing in them. For work I use pyenv and don't really think about it but I had started using some pip user installs of applications for... reasons I don't remember; how do people usually handle this situation when using them for dev projects? I'm just now reading about pipx which I guess is kind of a solution but it also seems to hook into specific python versions, what happens with that when I upgrade to F38? or whenever the next break is? Why do I always feel like I have stockholms syndrome with python...
|
# ? Nov 24, 2022 00:58 |