linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

alt, in Linux-hardened and Flatpak, Distrobox, Podman, Docker

Basically, you want to not disable kernel.unprivileged_userns_clone.

For a temporary solution that has to be redone after reboot, there is sysctl kernel.unprivileged_userns_clone=1.

For a lasting solution, consider echo kernel.unprivileged_userns_clone=1 | sudo tee /etc/sysctl.d/99-enable-unpriv-userns.conf.

In either case you’re foregoing security for the sake of convenience/functionality, so I understand why you would rather not act upon either of them.

I don’t know what the solution is that would be analogous to installing bubblewrap-suid. Perhaps, it’s worth exploring the projects found within the github page of Awesome Fedora Security for some pointers.

13617, in This color picker on Flathub got rated 12+

Fortnite ratings be like:

danielquinn, in How to keep all email locally in a useful format that can be searched across devices?
@danielquinn@lemmy.ca avatar

I still have every email I’ve ever received, going back now more than 20 years. My solution isn’t terribly fancy, but it gets the job done.

I have a Synology here at home running a mail server. You don’t need a Synology specifically, just a simple mail server with access to a lot of disk space. The server isn’t on the Open web or anything and doesn’t support SMTP. It’s just running IMAP to serve the local mail around the house.

I connect to it from Thunderbird on my various machines. I also use Thunderbird to connect to my actual mail servers to do my day-to-day mail stuff.

Every six months or so, I move old mail messages from my actual mail servers over to the archival one. Generally, I keep the mail on the archival server in folders; one per year, that keeps the loading time to a minimum. For example, come January 1st 2024, I’ll be moving mail from January 2023 - June 2023 to the /2023 folder on the archive.

Searching is done via Thunderbird just like you search any mail account, and on my desktop machine, I let Thunderbird keep copies of the mail locally for quick searching. On my laptop though, I ask it to not keep copies to save disk space.

chillytuna,

@danielquinn @crank That's pretty cool. How much storage does 20 years of personal emails actually take up?

danielquinn,
@danielquinn@lemmy.ca avatar

It’s actually not as crazy as you might think:


<span style="color:#323232;">$ du -sh .Maildir/
</span><span style="color:#323232;">13G	.Maildir/
</span>

That’s going back to 2000 1995, both sent & received. The first email I have in there is from a friend of mine offering to send me an MP3 she downloaded.

chillytuna,

@danielquinn Is that just for text or also for images & attachments? Either way, yeah, 13G is a tiny amount of space when you consider how much info is in there! I wish I had done something similar.

maxprime,

You were downloading and sharing mp3s in 1995?? Didn’t the file extension only come out in 1995?

umbrella, (edited ) in State of the Nvidia open source driver in late 2023?
@umbrella@lemmy.ml avatar

DONT get an nvidia GPU.

It works but its a nightmare sometimes. The drivers are still bad. Dont’t.

-nvidia user

hallettj, in Need some help with a Kali linux
@hallettj@beehaw.org avatar

Try sudo apt update before running the install command. The ISO might not be preloaded with a full package index, or it might be out of date.

If that doesn’t work take a look at /etc/apt/sources.list to see if maybe the ISO uses some minimal repo that doesn’t have the full set of packages.

sederx, in A response to the "Boycott Wayland" article

idk i feel the window manager space its losing a lot with wayland and i didnt have a great experience with any wayland versions of existing WM. without even talking about the nvidia shitshow, does sway still call you a bitch for even trying to run it on nvidia?? imma stick to dwm as long as it works

theshatterstone54,

I didn’t have a great experience

Neither did I. I use Qtile, and I’m waiting for some things on Wayland to improve. It’s close, but not there yet.

r00ty,
@r00ty@kbin.life avatar

I think this is ultimately the answer. I'm not going to judge wayland until I see it as ready and can truly replace X in all use cases.

I sometimes feel like the distros switching now is premature. But, maybe they know something I don't.

kurcatovium,

I believe they try to force it asap to make pressure on applications developers to really speed things up.

When I dumped windows for the first time (maybe about 5-6 years ago) I immediately stumbled upon articles about bad wayland needing decades to mature. And here I am couple years later running linux on wayland quite happily.

theshatterstone54,

Fedora is switching because Fedora is always trying to be first at everything. And because things are very close tp perfect, it means that when Fedora makes the switch, a bunch of users will use Wayland more, helping iron out the last few bugs and issues.

sederx, (edited )

i just tried again, its literally impossibile to compile dwl on ubuntu 22 since libwlroots-dev is too old so youd have to compile that manually… stuff like this is what keeps me away from wayland for now

theshatterstone54,

I tried on Debian 12 a few months ago and failed.

sederx, (edited )

yeah you need wlroots 16 which is not there, trying now to compile from source but you also need to compile wayland manually…

edit

tried anyway and after compiling libdrm wayland-server pixman and other stuff i give up. this is not worth it

RTRedreovic,

No, running sway with the --unsupported-gpu flag launches it without any remarks about your hardware. It’s been like this for a good while.

theshatterstone54, (edited ) in wayland, not even once

This OUTDATED article gets posted all the time. The full story is the guy is a massive FreeBSD fan so he is trying to convince more people to keep on using Xorg because he wants to make sure it isn’t abandoned. Reason for that being that Wayland is built with Linux in mind and would not work under FreeBSD without a lot of effort bwing put in as it uses some Linux-specific components or libraries.

Edit: Decided to write a response because I’m tired of this ancient and incorrect article being reposted. Please read it, correct any mistakes in the comments, etc. Thank you.

ptz, in change my mind: Ubuntu does the same thing as Android
@ptz@dubvee.org avatar

I don’t like Google’s Android or Ubuntu. lol

But I do like Android (AOSP) and Debian a lot though.

technologicalcaveman,

I like Calyx and Gentoo. They've been nice to me.

the_q, in Copy this code and paste it in the CLI. And no, it's not a forkbomb.

Downvote, block user and move on.

ransomwarelettuce, in 10 YouTube Channels Linux Users Should Explore

Broadie Robertson is pretty cool too!!!

GustavoM,
@GustavoM@lemmy.world avatar

Amen. He is a lost gem.

hornedfiend, (edited ) in gamescope through the heroic launcher is WAY better than steam

I mean…you’re mostly right, but I don’t know how setting a few flags like -H,-W,-h,-w is that big of an issue. I agree lutris and maybe heroic (I don’t use) have frontends for these,but I would hardly that “way better”.

Edit: grammar,typos

shea,

it’s incredible how out of touch this community is with the average end user. I’d wager that MOST people don’t know how, much less want to set custom flags for every one of their games. Believe it or not people actually like using nice GUIs and rely on simple intuitive frontends, and it’s a massive failure on Valve’s part considering they’re the largest, most mainstream PC gaming platform.

themoken,

Nobody running a FOSS third party launcher is an average end user. Also, people routinely add flags to typical games even on Windows (e.g. -skiplauncher)… It’s really not that big a deal.

caseyweederman,

Yeah. I don’t know what those flags are… Yet.
The moment a game launch fails in that particular way, I will be diving all the way into that particular deep end.

ThePhantomGM, in How to fix?

Firefox: is linux stupid?

FuzzChef, in Bcache is amazing!: Making HDD way faster!

I can’t quite figure out what would be the use cases where bcache would excel, except for hdds without cache or systems with very limited ram. Can you help me out with that?

Atemu,
@Atemu@lemmy.ml avatar

except for hdds without cache

The “cache” on HDDs is extremely tiny. Maybe a few seconds worth of sequential access at max. It does not exist to cache significant amounts of data for much longer than that.

At the sizes at which bcache is used, you could permanently hold almost all of your performance-critical data on flash storage while having enough space for tonnes of performance-uncritical data; all in the same storage “package”.

Uluganda,

In my case, it basically helps me improve random read significantly. My NVMe is fast, like 3GB/s in sequential and 500MB/s in random, but it’s only 120GB. By using it as a cache in a bcache system, once a random read is performed, the data will be copied from HDD to SSD and if the data is requested again the random read will happen from SSD instead of HDD.

Thus, using it to play modern gaming is actually do able. Game that requires fast random read, like Baldur’s Gate 3 and Starfield.

As a lot of people in my og post mentioned, random is more important that sequential. Bcache by default disable sequential cache so you wont fill you cache to fast if a big data is being read, like watching movie, copying video, etc. That’s where Raid0 comes to the rescue. Having Raid0 with 2 drives basically double my sequential read and having 3 triples it.

Max_P,
@Max_P@lemmy.max-p.me avatar

Basically the idea is that if you have a lot of data, HDDs have much bigger capacities for the price, whereas large SSDs can be expensive. SSDs have gotten cheap, but you can get used enterprise drives on eBay with huge capacities for incredibly cheap. There’s 12TB HDDs for like $100. 12TB of SSDs would run you several hundreds.

You can slap bcache on a 512GB NVMe backed by a 8TB HDD, and you get 8TB worth of storage, 512GB of which will be cached on the NVMe and thus really fast. But from the user’s perspective, it’s just one big 8TB drive. You don’t have to think about what is where, you just use it. You don’t have to be like, I’m going to use this VM so I’ll move it to the SSD and back to the HDD when done. The first time might be super slow but subsequent use will be very fast. It also caches writes too, so you can write up to 512GB really fast in this example and it’ll slowly get flushed to the HDD in the background. But from your perspective, as soon as it’s written to the SSD, the data is effectively commited to disk. If the application calls fsync to ensure data is written to disk, it’ll complete once it’s fully written to the SSD. You get NVMe read/write speeds and the space of an HDD.

So one big disk for your Steam library and whatever you play might be slow on the first load but then as you play the game files gets promoted to the NVMe cache and perform mostly at NVMe speeds, and your loading screens are much shorter.

LoafyLemon,

What are the implications in regards to the lifespan of the disk used as cache? Any potential downsides?

Max_P, (edited )
@Max_P@lemmy.max-p.me avatar

I don’t know, it’s going to depend a lot on usage pattern and cache hit ratio. It will probably do a lot more writes than normal to the cache drive as it evicts older stuff and replaces it. Everything has tradeoffs in the end.

Another big tradeoff depending on the cache mode (ie. writeback mode) if the SSD dies, you can lose a fair bit of data. Not as catastrophic as a RAID0 would but pretty bad. And you probably want writeback for the fast writes.

Thus I had 2 SSDs and 2 HDDs in RAID1, with the SSDs caching the HDDs. But it turns out my SSDs are kinda crap (they’re about as fast as the HDDs for sequential read/writes) and I didn’t see as much benefit as I hoped so now they’re independent ZFS pools.

ChristianWS,

So one big disk for your Steam library and whatever you play might be slow on the first load but then as you play the game files gets promoted to the NVMe cache and perform mostly at NVMe speeds, and your loading screens are much shorter.

I really love/hate how you can immediately understand the practical application of new technologies through the use of games.

wfh, (edited ) in Overheating laptop, should I try a lighweight distro - which one?

I have almost the same laptop (PS63 8M, without any nVidia dGPU).

One of the issues I had to solve was the touchpad spamming interrupts after waking up from sleep. It would keep one core at 100% indefinitely, keeping CPU frequency (and temps) quite high and burning through the battery.

Here’s the fix: bbs.archlinux.org/viewtopic.php?pid=1865745#p1865…

This behavior seems fixed on modern kernels since I’ve installed Fedora recently and didn’t have to do this workaround, but you can still check if this still applies to you.

You might also check if you can disable the dGPU in the BIOS (can’t check since I don’t have one), and/or play with power profiles either through Gnome or tlp (lower power profiles will make your laptop very sluggish though).

Maybe check if both your fans are running. I had to replace one of mine that was starting to fail a year ago.

Other than that, I’ve never had any overheating issues with this laptop.

LunchEnjoyer,
@LunchEnjoyer@lemmy.world avatar

I will definitely check this out, merci 🌼

wfh,

De rien ;)

neurospice, in on arch btw.

I just got into wayfire after using Hyprland and nobody prepared me for the cylinder. I will open windows and wait for the screensaver just to see the rotating cylinder. So much better than the cube

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #