Ignoring the interactive features (or lack thereof) in dash/ksh, removing bash is not really something that’s possible on most distros (excluding Alpine and possibly Debian) since it’s used in scripts everywhere. And if you need to have bash installed anyways, why opt for the less pleasant shell in daily usage?
she/they
- 0 Posts
- 34 Comments
If your DE/Launcher uses systemd scopes properly you might be able to see something in the journal. As an example somewhere in my logs I can see this:
Jan 17 17:52:50 sky systemd[2171]: app-niri-steam-40213.scope: Failed with result 'oom-kill'. Jan 17 17:52:50 sky systemd[2171]: app-niri-steam-40213.scope: Consumed 6h 32min 39.773s CPU time, 9.4G memory peak, 6.2G memory swap peak.That’s pretty clearly severe thrashing and an eventual OOM event caused by a game. If you’re not familiar, the command
journalctl -e -b -1gives you the last log lines from the last boot. Usedanduto navigate the pager andqto quit. This will only work if the launcher you are using sets up transient systemd scopes and doesn’t just fork-exec into the application (Fuzzel does the wrong thing by default, as do many others).I’ve also seen large Steam downloads causing such issues, so capping your download speed might help. As could enabling ZRAM.
Edit: Also, this is most likely completely unrelated but do note that Neon is basically abandoned. You should very much consider switching to a maintained distribution, whether that’s another Ubuntu spin or Fedora or something else entirely.
But /etc/fstab has the same UUID for every drive, I have no idea what to do with it.
That would be because every entry (except
/bootand/tmp) is a subvolume of the same btrfs volume. Your other drives just aren’t in there.You might want to read
man fstaband maybe the Arch wiki pages for fstab and NTFS. It’s not that difficult as long as you make sure to not reboot with a broken fstab (usingnofailis also a good idea). And yes you can just mount them to/mediaif you want, as long as the mount point is an empty directory.Ubuntu Studio might have achieved this in a different way but since you’re in Arch land now it’s probably better to do what the Arch documentation recommends.
From what I can tell, it has to do with the drives mounting on /run/media, and apparently /run is a temp folder or something.
Probably not. Yes
/runis a tmpfs, but that doesn’t affect any other filesystems mounted inside of it - those have their own permissions (or don’t in the case of FAT).Since the drives are being mounted in
/run/mediathey’re probably being mounted by your file manager, not via/etc/fstab. You could instead have them mounted on boot by the root user via/etc/fstab(the classic way) orsystemd.mount(slightly friendlier), or configure polkit to allow mounting drives without a password (more reasonable if you’re talking about external or thumb drives).The permission issue is probably for a different reason. Are you sure the filesystem(s) you’re mounting supports POSIX style permissions? FAT doesn’t, and NTFS requires a special flag for it. The files might look like they have permissions, but they’re coming from the mount options and modifying them will either fail outright or not do anything.
Edit: Run
lsblk -fto see all connected drives, partitions and file systems and their file system type.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•What are some of your most useful or favorite terminal commands?
4·2 months agoI’m not much of a one-liner collector but I like this one:
vim +copen -q <(grep -r -n <search> .)which searches for some string and opens all instances in vim’s quickfix list (and opens the quickfix window too). Navigate the list with
:cnand:cn. Complex-ish edits are the obvious use case, but I use this for browsing logs too.Neovim improves on this with
nvim -q -and[q/]q, and plenty of fuzzy finder plugins can do a better version using ripgrep, but this basic one works on any system that has gnu grep and vim.Edit:
This isn’t exactly a command, but I can’t imagine not knowing about this anymore:
$ man grep / -n # double space before the dash!brings you directly to the documentation of the
-noption. Not the useless synopsis or any other paragraphs that mention-nin passing, but the actual doc for this option (OK, very occasionally it fails due to word wrap, but assuming the option is documented then it works 99% of the time).
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•The Quest for Reasonably Secure Operating Systems
3·2 months agoThe GNU utils vs BSD utils issue should be easy to work around with a bit of symlinking and
PATHmodification:> type find find is /bin/find > type gfind gfind is /usr/local/bin/gfind > sudo mkdir -p /usr/local/opt/gnuutils/bin/ > sudo ln -s /usr/local/bin/gfind /usr/local/opt/gnuutils/bin/find > PATH="/usr/local/opt/gnuutils/bin:$PATH" type find find is /usr/local/opt/gnuutils/bin/findor in script form:
#!/bin/sh # install as /usr/local/bin/gnu-run # invoke as gnu-run some-gnu-specific-script script-args export PATH="/usr/local/opt/gnuutils/bin:$PATH" exec "$@"/usr/local/opt/...is probably not the best place to put this but you get the idea, you can make it work with POSIX tools. I don’t know that much about Chimera Linux but I’d be very surprised if nobody has thought of doing this systematically, e.g. as part of a distributable package.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•Do Ubuntu derivatives use the TPM out of the box for cryptographic operations?
6·2 months agoThis is probably the main reason every mainboard has TPMs now, since all common operating systems (Android, iOS/MacOS and Windows) do it.
From what I heard the Ubuntu installer offers a version that doesn’t suck (if secure boot is enabled at install time) so using that is probably fine, but I would beware of trying to DIY it since it’s easy to do incorrectly, most guides are wrong, and you will likely end up with easily bypassable encryption.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•Confession: I don't know what passwords in Linux are for
9·3 months agoIf your privileged user doesn’t have a password, in some cases this could lead to any program being able to elevate their privilege quietly, unlike UAC.
I think this is the most important part. There really isn’t any protection against random processes trying to do some version of
exec sudo $0except for the fact that it requires a password.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•Is the FOSS world in danger of a corporate takeover, thanks to pushover licenses?
6·3 months agoThe FSF says this is the case but the actual legal situation is less clear, especially in the EU. Linking does not necessarily constitute a derivative work. Even decompilation of a (proprietary) library in order to link to it might be acceptable depending on the circumstance.
This isn’t something that can be fixed with a license, it’s a direct result of EU copyright law. Historically companies have tended to err on the side of the FSF interpretation, but it is on somewhat shaky grounds.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•Is the FOSS world in danger of a corporate takeover, thanks to pushover licenses?
2·3 months agoSure it’s a problem when that happens. It’s not the only problem, and honestly in the case of coreutils it’s not really the most relevant one.
Do you think it’s likely that corporations will take over UNIX-likes with proprietary coreutils extensions forked from uutils? Because that’s the one thing that is legal to do with an MIT/BSD licensed coreutils but not with GPL licensed ones.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•Is the FOSS world in danger of a corporate takeover, thanks to pushover licenses?
2·3 months agoGPL has been battle tested in court
Well… parts of it have been. Others have not. Notably the FSFs view on whether or not linking to a GPL-licensed library constitutes a derivative work (and triggers the GPLs virality) is not universally shared by legal scholars. In the EU in particular linking does not necessarily create derivative works, despite what the FSF says. This has not been tested in court.
Some other parts like the v3 anti-tivoization hasn’t gone to court either, but that has lesser ramifications (assuming you’re not TiVo).
THAT’S how we have corporations profiting from GPL. Not because GPL allows anyone to use it.
What distinction are you trying to draw here exactly? They can do it precisely because the GPL (v2) allows it. The GPLv3 has some extra restrictions but doesn’t do anything about closed source drivers (beyond the linking thing) or the Google Play Services type of proprietary extensions.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•Is the FOSS world in danger of a corporate takeover, thanks to pushover licenses?
34·3 months agoFunny you say that because OS X shipped (and probably still ships) plenty of copyleft licensed software such as Bash. The Linux kernel is used in Android and ChromeOS.
If you want to stop corporations from profiting off your work, putting a GPL on it isn’t gonna do it. In fact no free software license will do it, because by definition they allow anyone to use and ship your software.
All of the 5 people who use (non-ESR) Firefox on their 2002 Pentium 4s will certainly be very unhappy about this.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•swww renamed to awww, due to the author's guilt from obliviously naming it "final solution"
2·3 months agoThe term used is “Solução final”, and it’s a pretty literal translation. It’s absolutely possible to make the connection between the terms, but it does require bot ha somewhat in-depth education on the Holocaust and some linguistic sense. Now it’s entirely possible that LGFaé’s history teachers really dropped the ball on the first part, but it’s not clear to me that this is what must’ve happened here.
Speaking for myself I would be embarrassed but not especially surprised if some phrase that I use frequently has a similarly unfortunate meaning, especially regarding an African or Asian genocide. As bad as all genocides are, you just can’t be well educated on all of them, especially with just a regular K-12/A-level/equivalent history education which also has to do things like teaching people how to read (something most of the world is currently failing at).
I don’t have deep knowledge on the topic but you might want to look into EDID, which is how your system knows what resolutions the monitor supports. Incorrect detection of maximum resolutions and refresh rates is a semi-common problem on Linux and the fix for that is a custom modeline; setting one will be compositor dependent on Wayland (on X11 xrandr will do).
However it’s also possible that all the cables you have are bad and/or don’t support 8K.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•swww renamed to awww, due to the author's guilt from obliviously naming it "final solution"
94·3 months agoIn defense of the author and their education… They’re Brazilian so English probably isn’t their native language, and their history education was almost certainly in Portuguese. I don’t think it’s necessarily an indictment of their education that they weren’t taught about the English translation of a German phrase, and I don’t think it’s reasonable to apply the same standards of subtext awareness to native and non-native speakers either.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•What do you see as the arguments for and against adding Server Side Decorations in GNOME?
10·3 months agoThat’s true from a technical perspective. But in reality devs (especially ones who aren’t making “Linux apps” but are doing things like porting a previously Windows-only game to Linux) will occasionally ship a broken Wayland client. The compositor could then still give that a basic titlebar with window buttons like KDE and Cosmic do, or alternatively it can refuse to do it and make the novice user annoyed at the system as a whole.
I’m not really convinced that requiring all Wayland clients to draw their own decorations was the correct decision in the first place, but even if we accept it, I think there’s still a convincing case for fallback SSDs.
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•What do you see as the arguments for and against adding Server Side Decorations in GNOME?
7·3 months agoNow if there was just an official API from all window managers that can check this configuration
This actually does exist. Reasonable Wayland Compositors will negotiate with their clients on whether they should use CSDs or SSDs. To an extent Qt does this: It prefers SSDs but it can draw CSDs if the compositor can’t draw SSDs (or signals that it doesn’t want to), which is why proper Qt apps are perfectly usable on GNOME Wayland despite missing SSDs.
It would be possible to go even further and make apps that display menu and tool bars on compositors that prefer SSDs (like Plasma/KWin) and nice GTK-style decorations on others. It just happens that most apps either really want to draw their CSDs (mostly because they’re made for GNOME, a.k.a. anything using Libadwaita) or they don’t really have a use for them (like regular Qt apps).
Oinks@lemmy.blahaj.zoneto
Linux@lemmy.ml•What do you see as the arguments for and against adding Server Side Decorations in GNOME?
14·3 months agoThe biggest drawback of not providing any SSDs even as a fallback is obviously… what if the app just doesn’t draw CSDs? ~~There are many new Linux users who try to get something like DaVinci Resolve running and then can’t maximize it because it doesn’t have CSDs. For these users it just makes using Linux feel broken for basically no reason.~~¹
This is also a burden for application developers. Maybe the DaVinci Resolve devs should just fix their app (from what I heard it’s a massive PITA in all aspects imaginable), but is it really reasonable to also expect e.g game devs to add dependencies on libdecor or whatever solely to unbreak window mode on GNOME Wayland?
¹ Edit: I have since learned that Resolve actually does draw CSDs, it just doesn’t draw the window buttons. That’s certainly a choice… I think the overall point isn’t too affected but this specific app isn’t a good example since it would still be broken if GNOME had fallback SSDs.
Bad RAM is still a thing (even on regular PCs), there’s a reason ECC memory has a market (true ECC, not the stuff that DDR5 has built-in). But I agree that it’s likely just an OOM/Thrashing situation. Linux famously doesn’t handle them very well, and the behavior OP is seeing is very much consistent with that.