|
Meh, GPU hardware acceleration in Chrome seems busted when running it with Wayland via their Ozone stuff. And systemd-resolved seems to keep forgetting/not resolving my local poo poo. I keep to need restarting it.
|
# ? Nov 28, 2023 23:17 |
|
|
# ? Jun 8, 2024 08:38 |
|
I've yet to have decent experiences with resolved. It's especially bad for me on a laptop where things change quite often. I usually end up just disabling it after I fight with it for a few minutes.
|
# ? Nov 29, 2023 01:08 |
|
AlexDeGruven posted:I've yet to have decent experiences with resolved. It's especially bad for me on a laptop where things change quite often. I usually end up just disabling it after I fight with it for a few minutes. I'm actually using it in my router. It lets me do some cool stuff with multiple uplinks and VPNs. Not that I'm going to disparage anybody who just wants to edit /etc/resolv.conf. I went through a 10 year period where step 1 was "disable network-manager", after multiple sessions fighting with it for control over my own system.
|
# ? Nov 29, 2023 01:12 |
|
Combat Pretzel posted:That said, my power usage grievances with NVidia are gone. Combat Pretzel posted:Meh, GPU hardware acceleration in Chrome seems busted when running it with Wayland via their Ozone stuff. Your power grievance may be gone, but here's a new grievance to enjoy. Nvidia proprietary only provides VDPAU and NVEN/DEC for hardware decode. Chrome only supports VA-API. So you need to jump through your choice of hoop to make VA-API work with the nvidia driver. (I'll note that chromium only started doing hardware decode successfully in Wayland with an AMD GPU pretty recently. Maybe 6 months ago?)
|
# ? Nov 29, 2023 02:06 |
|
Combat Pretzel posted:Meh, GPU hardware acceleration in Chrome seems busted when running it with Wayland via their Ozone stuff. And systemd-resolved seems to keep forgetting/not resolving my local poo poo. I keep to need restarting it. That sounds a bit like LLMNR is enabled, but restarting shouldn't help with that. LLMNR caused a bit of confusion at work when servers were unable to resolve addresses in their own subnet, but worked fine for others.
|
# ? Nov 29, 2023 06:07 |
|
Klyith posted:Your power grievance may be gone, but here's a new grievance to enjoy. Nvidia proprietary only provides VDPAU and NVEN/DEC for hardware decode. Chrome only supports VA-API. Trying to get Chrome to work with Wayland, the log spam says something about being unable to find a Vulkan related entrypoint and then says it gives up for GPU acceleration. Saukkis posted:That sounds a bit like LLMNR is enabled, but restarting shouldn't help with that. LLMNR caused a bit of confusion at work when servers were unable to resolve addresses in their own subnet, but worked fine for others. --edit: Yeah, I set Domains=home to get my .home tld to work. It still works after booting into the system. Combat Pretzel fucked around with this message at 16:47 on Nov 29, 2023 |
# ? Nov 29, 2023 16:39 |
|
Here's a random one, I periodically get SELinux denials for virsh attempting to execmem. I've looked it up in the past and my search terms were apparently bad and have just ignored it for the longest time. I finally found something to search for and realized it's a boolean you can flip, however it doesn't really explain anything. https://access.redhat.com/documenta...achines-in-rhel quote:virt_use_execmem Anyone ELI5 what this means (in the context of a virtual machine / virt) and why you would turn it on (since it is disabled by default)? And/or some elaboration on what executable memory/stack are? This wikipedia page is about the best explanation I could find but doesn't really explain like I'm an idiot why you would want to have executable memory or what it means. Guess my managed language background is biting me in the rear end.
|
# ? Nov 29, 2023 23:34 |
|
Each executable file in Linux has a data segment, a code segment, and then as it runs memory (RAM) is allocated on the heap and stack. For security code should only be running from the code segment so it's harder for malicious code to be downloaded and run from the data segments or memory. It looks like kernel based virtualization (i.e. uses the Intel VT or AMD-V professor extensions) don't need to execute code from memory, but userland/software only virtualization does need it.
|
# ? Nov 30, 2023 18:07 |
|
Why does bash return 1 when I log out?code:
cruft fucked around with this message at 18:15 on Nov 30, 2023 |
# ? Nov 30, 2023 18:12 |
|
Anything with a JIT will need execmem, though, so node or Ruby-with-yjit, etc.
|
# ? Nov 30, 2023 18:14 |
|
It's something to do with the --login option but I ain't digging deeper than that because it's probably some esoteric backwards compatibility crap. If you leave it out it returns 0. edit - the edit explanation is better.
|
# ? Nov 30, 2023 18:15 |
|
xzzy posted:It's something to do with the --login option but I ain't digging deeper than that because it's probably some esoteric backwards compatibility crap. If you leave it out it returns 0. I edited my post with the answer. It's a `.bash_logout` file installed by Debian that runs `/usr/bin/clear_console`, which fails because my terminal is not a console. I should probably open a bug with Debian to append `|| true` to that, but
|
# ? Nov 30, 2023 18:16 |
|
lol that’s ridiculous
|
# ? Nov 30, 2023 18:20 |
|
Subjunctive posted:lol that’s ridiculous At least it's consistent. Once I saw the `.bash_logout` file I didn't create, it was clear what was going on. If you run a shell script that doesn't explicitly exit, the exit value is whatever the last executed command returned.
|
# ? Nov 30, 2023 18:22 |
|
yeah, I mean it’s ridiculous that they would put that there and let it gently caress with the exit code instead of just adding || true or similar
|
# ? Nov 30, 2023 18:24 |
|
Subjunctive posted:yeah, I mean it’s ridiculous that they would put that there and let it gently caress with the exit code instead of just adding || true or similar Well, I went 25+ years before it affected me, so The return code of your login shell probably isn't something that comes up enough to consider.
|
# ? Nov 30, 2023 18:25 |
|
it’s the principle of the thing!
|
# ? Nov 30, 2023 18:27 |
|
Subjunctive posted:it’s the principle of the thing! However, I ain't going publicly on the record complaining about it since I can't be arsed to open a bug. I'm probably the first person in 25+ years to even notice. e: Since we have completely derailed the other conversation, how's it going today, Subjunctive?
|
# ? Nov 30, 2023 18:28 |
|
cruft posted:Why does bash return 1 when I log out?
|
# ? Nov 30, 2023 18:44 |
|
ExcessBLarg! posted:You can bypass this with an "exec true". alias logout="exec true" is the kind of innovative thinking I've come expect from the top minds on the Something Awful forums.
|
# ? Nov 30, 2023 18:47 |
|
cruft posted:I'm probably the first person in 25+ years to even notice. I have a set of scripts that ssh into remote hosts but instead of providing a command to ssh directly, ssh takes a set of commands from stdin. This creates a login shell on the remote side (something which I've never really cared about despite displaying motd and all), and so when the ssh session ends it runs clear_console, as you've discovered, which returns 1, which gets returned by ssh itself. For a long time I didn't really care about the return value of ssh because a downed remote host wasn't a failure condition for the scripts themselves. But at one point I did need to test if ssh returned 0 (essentially to determine if my script should follow a legacy pathway) and I discovered it never did. I was dumbfounded at first, until I ran a "set -x" in the remote session and saw the culprit. I thought about it for a while, the number of machines affected, and decided to put "exec true" at the end of my remote commands.
|
# ? Nov 30, 2023 18:56 |
|
I feel like exit 0 would feel better to me, a little more self-documenting? dunno
|
# ? Nov 30, 2023 19:14 |
|
Subjunctive posted:I feel like exit 0 would feel better to me, a little more self-documenting? code:
If you mean just plain "exit 0" that runs ~/.bash_logout.
|
# ? Nov 30, 2023 19:48 |
|
wait .bash_logout stomps on an explicit exit code? now we’re talking
|
# ? Nov 30, 2023 19:53 |
|
Subjunctive posted:wait .bash_logout stomps on an explicit exit code? now we’re talking And anyone responsible for that behavior is probably asking all three of these WTF questions: 1. Why do you care about the exit status of a login shell? 2. Why does your ~/.bash_logout have a command that might fail? 3. Why is Debian so paranoid over information leakage from a previous shell session that they make clear console a distribution-wide default behavior when public terminals aren't a thing anymore?
|
# ? Nov 30, 2023 20:01 |
|
3 may just be a leftover - it was useful once, and none of the five people who have noticed it this decade could be bothered to make the security argument for it being ok to remove it now.
|
# ? Nov 30, 2023 20:07 |
|
ExcessBLarg! posted:
Okay but since we're splitting extremely pedantic hairs anyway, why do you need to exec true? Why not just run true? Or for that matter, why not just run :? Behold: code:
|
# ? Nov 30, 2023 20:50 |
|
cruft posted:why do you need to exec true? Now bash often does a fancy thing and will automatically exec the last line of a script where it determines its safe to do so, but since I'm passing commands to the input of a login shell I don't think it's smart enough to tell that true is followed by EOF. Plus in my case the "exec true" actually happens on an early conditional exit. cruft posted:Or for that matter, why not just run :?
|
# ? Nov 30, 2023 21:20 |
|
ExcessBLarg! posted:Because exec replaces the login shell process with true and (in my case) returns straight to sshd, so ~/.bash_logout never gets invoked. Oh, you're running `exec true` from the thing that invokes ssh. I thought you were putting that at the end of your .bash_logout. Makes sense. Weird, but then, what isn't. e: I understand your initial reply to me a lot better now. My use case was hitting ^D in the terminal
|
# ? Nov 30, 2023 21:37 |
|
Does anyone have any experience with the Trinity desktop environment? To me the idea of a desktop environment that looks and behaves like a desktop from 20 years ago while actually working on a modern system seems pretty cool. I have thought of putting it on my ThinkPad, but my ThinkPad's Linux install already has KDE Plasma and I am concerned that Trinity and KDE will gently caress each other up severely since they share a lot of things in common but wildly different versions. From what I can tell it doesn't have DPI scaling so using it on my main rig with its 4K display would be a no-go.
|
# ? Dec 1, 2023 07:19 |
|
Woolie Wool posted:To me the idea of a desktop environment that looks and behaves like a desktop from 20 years ago while actually working on a modern system seems pretty cool.
|
# ? Dec 1, 2023 09:29 |
Well here's a 'fun' discovery I'm running PopOS on a Microsoft Surface Book 3. I install Chrome via `sudo apt install google-chrome` I watch a youtube video and it's oddly choppy. Right click on 'stats for nerds' and it's dropping frames everywhere. I switch to firefox, no such issue. I browse to - chrome://gpu/ apparently it's decoding video via software rendering! I browse to chrome://flags/ and enable "Override software rendering list" thinking it's just some linux being unsupported forever, and now the window just hangs - unresponsive. I sudo apt remove google-chrome and install the flatpak version of chrome. Everything runs fine, https://webglsamples.org/ looking at these demos I get all the frames. chrome://gpu/ shows everything enabled except Vulkan and WebGPU. Fine, it's probably that way on windows, too. Coffee Jones fucked around with this message at 03:33 on Dec 4, 2023 |
|
# ? Dec 4, 2023 03:31 |
Yeah, flatpak rocks.
|
|
# ? Dec 4, 2023 03:59 |
I guess? Trying GZ doom via flatpak I got this working setting permissions to a specific wad directory and got it loading custom wads via flatseal . There's a bit of a learning curve - and a configuration burden But in some cases like IDEs that have to access everything it's a bit of "WHAT ARE YOU DOOOOOING??!????!!" My linux use is "Get me up to a point where I can compile and run my stuff" and have never actually changed things like default desktop environment Still having a answer to "My favorite app isn't available in my OS's package repository (like say, a quake sourceport)- how screwed am I?" and the answer being "not screwed at all if there's a snap or flatpak" is a world of difference from twenty years ago when I started with linux. Coffee Jones fucked around with this message at 05:56 on Dec 4, 2023 |
|
# ? Dec 4, 2023 05:36 |
|
Flatseal is essential if you want to run a Flatpak that actually needs to access files.
Dead Goon fucked around with this message at 06:41 on Dec 4, 2023 |
# ? Dec 4, 2023 06:39 |
|
I really like flatpak but for IDEs I don't ever bother.
|
# ? Dec 4, 2023 13:06 |
|
Mega Comrade posted:I really like flatpak but for IDEs I don't ever bother. Same
|
# ? Dec 4, 2023 15:43 |
Terminal shells and IDEs are two things I would suggest installing directly to the host rather than trying to containerize them. I know podman is trying to create a whole workflow for using a shell in a container but, while I'm all-in on containerizing stuff, this seems like a dumb part of their project.
|
|
# ? Dec 4, 2023 16:48 |
|
I have a goofy problem where I get a "target is busy" option when umounting a filesystem I was manipulating as a chroot. The file system is just a file itself. I have to set up some binds for stuff like /dev and /dev/pts, but I only fail when unmounting the actual filesystem. If I umount again afterwards, it works fine. It doesn't happen every time. I am guessing something is still flushing/committing/whatever when I try to umount it, but I had exited the chroot well before that. Even trying to diagnose with fuser or lsof comes up with nothing, and the consequence of using those commands often causes the umount to actually succeed. I'm thinking I need to wait on some operations to finish saving to the image file that represents the filesystem. Are there any flushing commands like that I should be considering?
|
# ? Dec 4, 2023 23:17 |
|
|
# ? Jun 8, 2024 08:38 |
|
Should the installation images for modern distros support secure boot? I know lots of distros can do various secure boot configurations and there's instructions once you're up and running and need to update a kernel and so forth. I tried a couple and got secure boot errors, and so ok well I'll disable it and think about enabling it later. But that does sort of defeat the purpose. I verified the hash and signature on the install medium so it's not that, and I'm not like, worried about it or anything, more a curiosity.
|
# ? Dec 4, 2023 23:22 |