this post was submitted on 25 Mar 2024
0 points (NaN% liked)

Linux

48073 readers
698 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'll start with mine. yes part of this was to brag about my somewhat but not too unusual setup. But I also wanna learn from your setups!

Anyways: I primarily use Gentoo Linux.

I have two headless servers: a Raspberry Pi 4B and a Oracle cloud VM (free tier). Both running OpenRC, and both were running mainline kernel with custom config (I recently switched the Pi to PiFoundation kernel due to some issues). The raspberry pi boots from SSD and has no sd card inserted.

Both servers were running musl libc instead of glibc for a while. This gave me a couple of random issues, but eventually I got tired and switched back to glibc.

I have a desktop running gentoo and a laptop running arch, but hoping to switch the laptop to gentoo soon.

Both are daily driving wayland (the desktop had nvidia card and used for gaming). The desktop is running a kernel with a minimal config that compiles in 2-3 minutes.

What's your unusual setup like?

all 11 comments
sorted by: hot top controversial new old
[–] 2xsaiko@discuss.tchncs.de 1 points 7 months ago (3 children)

I have NixOS running on my main desktop with some unusual changes:

  • / is mounted as tmpfs, with /etc, /nix and /var being mounted from the actual system partition (this actually isn't too uncommon on NixOS)
  • For swap, zswap and dynamically allocated swapfiles using swapspace daemon (this is imo the best swap setup if you don't need hibernation)
  • Akonadi (KDE's PIM server) using PostgreSQL instead of MySQL
  • ISO8601 date format, for this I have glibc's en_DK locale which does this copied to en_SE because Qt has en_SE as the locale with ISO date
  • A couple changes to make the layout more like macOS because I can:
    • Partitions are either mounted or auto-symlinked (if they can't be mounted there, such as for the system partition) under /Volumes
    • I patched udisks to also mount devices under /Volumes
    • User home directories are under /Users and root's home is /var/root
    • Keyboard layout changed as far as I can to be mostly like Mac's so I don't have to rethink layouts as much when switching between this and my MacBook
  • Can't technically list this anymore since I've had to tear it down for unrelated reasons but NFS using Kerberos authentication for my NAS
  • This is apparently very unusual since a lot of games completely break with it but two monitors with the main monitor on the right
[–] LiveLM@lemmy.zip 1 points 7 months ago* (last edited 7 months ago) (1 children)

Question: are you using Flakes?

I've been kinda dipping my toes on NixOS but the flakes are really throwing a wrench my way.... Yet they are apparently NixOS' future so I'm just kinda stuck

[–] 2xsaiko@discuss.tchncs.de 1 points 7 months ago

Yeah. Flakes are essentially three things (or four if you count the new CLI):

  1. Lock files for inputs (like NPM)
  2. A defined output layout (so, every flake has its packages at packages. for example)
  3. Pure mode (don't worry about it unless you read from arbitrary locations in the file system or try to download files without a hash)

That's it, essentially nothing else changes. It's just a different entry point to Nix code including NixOS configurations.

Here's a great article (apparently, I have only skimmed it myself) explaining flakes more in detail: https://jade.fyi/blog/flakes-arent-real/

[–] qaz@lemmy.world 1 points 7 months ago

A fellow en_DK user, I thought I was the only one.

[–] agressivelyPassive@feddit.de 1 points 7 months ago (1 children)

What's the deal with / as tmpfs about? I'm so trying to understand nixos.

[–] 2xsaiko@discuss.tchncs.de 1 points 7 months ago

NixOS can boot from a file system that only has /nix, since essentially the kernel command line has init=/nix/store/.../init. Everything else will be created during boot by that if it isn't already there. So technically you could only mount /nix and you would get a blank system every time you boot (but that wouldn't be very useful in most cases). Mounting these is done in the initrd.

A lot of people have a setup where only select files are mounted from a persistent partition, such as /var/lib/postgresql, basically anything they want to keep across reboots, so that the rest is discarded when they reboot. This prevents the system from accumulating junk over time, from services you once used to have but no longer have running, and so on. Personally I found it too much of a hassle to keep track of what files I want to keep, so I save the entire /etc and /var. I still keep the tmpfs though because it's pretty cool.

[–] ikidd@lemmy.world 0 points 7 months ago (1 children)

Core2Duo with 2 GPUs running 6 monitors. Works like a charm for the last 5 years, it's my everyday desktop and development station.

Downvote away because Manjaro and Wayland.

[–] kylian0087@lemmy.dbzer0.com 1 points 7 months ago

I am mostly concerned about that Core2Duo. How do you manage to not overload it?

[–] echo64@lemmy.world 0 points 7 months ago (1 children)