Skip to content

u/tinycrazyfish

In this archive from Mar 2018 to May 2025

4
posts
148
comments
0
media
366
score
2 saved before deletion

Top posts

Use pam_gdm.so in console login

I'm trying to perform console login using the cryptsetup passphrase as password. I'm using systemd cryptsetup to unlock my drive, this create a user cryptsetup entry in the kernel keyring, I can effectively see it in /proc/keys gdm can autologin by retrieving that password, but I try to make it work...

9 points0 comments
Open on Reddit

dm-integrity on Debian

I try to make dm-integrity work on Debian, I created a luks device with integrity: cryptsetup luksFormat /dev/md0 --cipher aes-gcm-random --integrity aead I tweaked debian-installer to let me use it for /. Everything seems fine, the installation finished, but the initramfs fails to open the device....

1 points0 comments
Open on Reddit

Top comments

you could see it like this:

  • the hard drive stores data bit like a mechanical switch (on or off). When it loses power, the switch remains in position, the data is safe.
  • the RAM stores data bit like a cup of water (full or empty). But unfortunately this cup leaks, so if you wait too long the cup will get empty. When the RAM is powered the refresh mechanism will keep the full cups full, by regularly refilling them. When you lose power, all cups get emptied and data is lost. (If you freeze the RAM, it leaks more slowly, therefore the data remains a bit longer)

A magnetic hard drive will use magnet orientation to store data (like on/off switch). RAM uses a capacitor that will discharge shortly (like the leaking cup). A solid state drive (SSD) is more like the RAM (it keeps electrical charges), but it is much slower and complex than RAM to ensure the leak is very low (almost negligible) and the data remains for very long time when powered off.

26 points

A bloated kernel doesn't necessarily make it faster. By compiling your own kernel with only what is required, it will get a lot smaller, but only marginally faster.

Apple have total control over the hardware, but is is not faster than Linux. Apple is mostly compiling c/c++ with LLVM, which generates most of the time marginally slower binaries.

Some distributions or diy source based distributions are globally enabling aggressive compiling optimization flags such as LTO or PGO. This can speedup your programs, but it is significant only for some specific software (PGO may bring a lot, but it requires a considerable amount of instrumentation work). Are programs that are or need to be optimized, such flags are already enabled by the developer.

15 points

It is not, and those (most) who criticize in that way don't really understand what they are talking about.

There are multiple reasons:

  • It is musl-libc based, if you are only installing packages from the alpine repo, it won't be a problem. But if you start using binary packages, they may not work, or be difficult to make work (alpine has glibc if you really want..)
  • It is not systems based, it probably does not apply to you as you explicitly want OpenRC. But some (more and more?) typical desktop applications (desktop environment?) that rely on systemd. Alpine will probably never support systemd, and it's actually systemd's fault, because they rely on non-posix glibc-ism and they explicitly refuse patches to make it work with musl-libc.
  • As alpine is mostly used for lightweight container, there is not that much effort on desktop libs/apps. But it is much better than some years ago. At least all most common desktop apps made it in the repo.

So if all apps you want are available/working on Alpine, there is absolutely no reason to not use it as a desktop. It depends on your use case.

14 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.