1
302
submitted 1 year ago* (last edited 1 year ago) by wfh@lemm.ee to c/linux@lemmy.ml

You're about to take your first steps in the wonderful world of Linux, but you're overwhelmed by the amount of choices? Welcome to this (I hope) very simple guide :)

The aim of this guide is to provide simple, clear information to ease your transition as a beginner. This is not a be-all-end-all guide nor an advanced guide. Because there is a lot of info and explanations everywhere, I will often (over-)simplify so as to keep the information accessible and digestible. Please refrain from asking to add your favorite distro/DE in the comments, I feel there is too much choice already ;)

Preamble

Make sure your hardware is compatible

Nowadays most relatively recent hardware works perfectly fine on Linux, but there are some edge cases still. If you don't use niche hardware and your wifi card is supported, chances are you're golden. Please note that nVidia is a bad faith player in the Linux world, so if you have a GeForce GPU, expect some trouble.

Make sure your favourite apps are either available or have a good replacement on Linux

If some proprietary app is essential to your workflow and is irreplaceable, consider running it in a VM, keeping a Windows partition for it or try and run it through Wine (this is advanced stuff though).

Be aware that Linux is not Windows/MacOS

Things work differently, and this is normal. You will probably struggle at the beginning while adjusting to a new paradigm. You may have to troubleshoot some things. You may break some things in the process. You will probably get frustrated at some point or another. It's okay. You're learning something new, and it can be hard to shed old habits forged by years on another system.

When in doubt, search for documentation

Arch Wiki is one of the greatest knowledge bases about Linux. Despite being heavily tied to Arch, most of its content is readily usable to troubleshoot most modern distros, as the building blocks (Kernel, systemd, core system apps, XOrg/Wayland, your DE of choice etc.) are the same. Most distros also maintain their own knowledge base.

Understanding the Linux world

What is Linux?

Linux, in the strictest definition, is the kernel, ie. the core component that, among other things, orchestrates and handles all interactions between hardware and software, of a large family of operating systems that, by metonymy, are called "Linux". In general understanding, Linux is any one of these operating systems, called distros.

What is a distro?

A distro, short for "Software Distribution", is a cohesive ensemble of software, providing a full operating system, maintained by a single team. Generally, all of them tend to provide almost the same software and work in a very similar way, but there are major philosophical differences that may influence your choice.

What are the main differences between distros?

As said above, there are a lot of philosophical differences between distros that lead to practical differences. There are a lot of very different ways the same software can be distributed.

  • "Point Release" (OpenSUSE Leap) vs. "Rolling Release" (OpenSUSE Tumbleweed): Point release distros are like traditional software. They have numbered releases, and between each one no feature updates take place, only security updates and bug fixes. Rolling Release distros package and distribute software as soon as it's available upstream (the software developer's repos), meaning that there are no versions and no specific schedule.
  • "Stable" (Debian Stable) vs. "Bleeding edge" (Arch): Stable distros are generally point release, and focus on fixing bugs and security flaws at the expense of new features. Each version goes through a lenghty period of feature freeze, testing and bug fixing before release. Stability here not only means trouble-free operation, but more importantly consistent behavior over time. Things won't evolve, but things won't break. At least until the next release. Bleeding edge distros, which often follow the rolling release model (there are outliers like Fedora which are mostly bleeding edge yet have point releases), on the other hand, are permanently evolving. By constantly pushing the latest version of each software package, new features, new bugs, bug fixes, security updates and sometimes breaking changes are released continuously. Note that this is not a binary, there is a very large continuum between the stablest and the most bleeding edge distro.
  • "Community" (Fedora) vs. "Commercial" (RHEL): Despite the name, Community distros are not only maintained by volunteers, but can also be developed by some company's employees and can be sponsored by commercial entities. However, the main difference with Commercial distros is that they're not a product destined to be sold. Commercial distros like Red Hat's RHEL, SuSE Linux Enterprise or Ubuntu Pro are (supposed to be) fully maintained by their company's employees and target businesses with paid support, maintenance, fixes, deployment, training etc.
  • "x package manager" vs. "y package manager", "x package format" vs. "y package format": It doesn't matter. Seriously. apt, dnf or pacman, to name a few, all have the exact same purpose: install and update software on your system and manage dependencies.
  • "general purpose" (Linux Mint) vs. "niche" (Kali Linux): General purpose distros are just that: distros that can do pretty much anything. Some are truly general purpose (like Debian), and have no bias towards any potential use, be it for a server, a desktop/laptop PC, some IOT or embedded devices, containers etc., some have various flavors depending on intended use (like Fedora Workstation for desktops and Fedora Server for, you guessed it, servers) but are still considered general purpose. They aim for maximum hardware compatibility and broad use cases. At the opposite end, niche distros are created for very specific and unique use cases, like pentesting (Kali), gaming (Nobara), music production (AV Linux) etc. They tend to have a lot of specific tools preinstalled, nonstandard defaults or modified kernels that may or may not work properly outside of their inteded use case.
  • "team" (Any major distro) vs. "single maintainer" (Nobara): Pretty self explanatory. Some distros are maintained by a single person or a very small group of people. These distros do not usually last very long.
  • "traditional" (Fedora Workstation) vs. "atomic" (Fedora Silverblue): In traditional distros, everything comes from a package. Every single component is individually installable, upgradeable, and deletable. Updating a package means deleting its previous version and replacing it with a new one. A power failure during an update lead to a partial upgrade and can make a system unbootable. Maybe a new package was bad and breaks something. Almost nothing prevents an unsuspecting user from destroying a core component. To mitigate risks and ensure a coherent system at each boot, atomic (also called transactional or immutable) distros, pioneered by Fedora Silverblue and Valve's SteamOS, were born. Like mobile phone OSes, the base system is a single image, that gets installed, alongside the current running version and without modifying it, and becomes active at the next reboot. As updates are isolated from one another, if the new version doesn't work the user can easily revert to a previous, functional version. Users are expected to install Flatpaks or use Distrobox, as installing (layering) packages is not as straightforward as with standard distros.
  • "OG" (Debian) vs. "derivative" (Ubuntu): Original distros are directly downstream of their components' source code repositories, and do most of the heavy lifting. Because of the tremendous amount of work it represents, only a few distros like Debian, Arch, Slackware or Fedora have the history, massive community and sometimes corporate financial backing to do this. Other distros reuse most packages from those original distros and add, replace or modify some of them for differenciation. For example, Debian is the parent of almost all deb-based distros like Ubuntu, which itself is the parent of distros like Mint or Pop!_OS.

What are the main components of a distro, ie. a Linux-based operating system?

All distros provide, install and maintain, among other things, the following components:

  • Boot and core system components (these are generally out-of-scope for beginners, unless you need to fix something, but you should at least know they exist):
    • A boot manager (GRUB, systemd_init, etc.): Boots the computer after the motherboard POSTs, lets you choose what to start
    • An init system (systemd, etc.): Starts everything needed to run the computer, including the kernel
    • A kernel (Linux): Has control over everything, main interface for software to discuss with hardware
  • Command-line environment, to interact with he computer in text mode:
    • A shell (bash, zsh, fish etc.): The main interface for command-line stuff
    • Command-line tools (GNU, etc.): Standard suite of command-line tools + default tools chosen by the distro maintainers
    • User-installable command-line tools and shells
  • Graphical stack for desktop/laptop computers:
    • Display servers (X11, Wayland compositors): Handle drawing stuff on screens
    • A Desktop environment (Plasma, Gnome, XFCE etc.): The main graphical interface you'll interact with everyday.
    • User-facing applications (browsers, text processors, drawing software etc.): Some are generally installed by default and/or are part of a desktop environment's suite of software, most are user-installable.
  • A package manager (apt, dnf, pacman, yast etc.): Installs, deletes, updates and manages dependencies of all software installed on the machine.

Which are the main Desktop Environments and which one should I choose?

As a new user, this is basically the only thing you should concern yourself about: choosing a first Desktop environment. After all, it will be your main interface for the weeks/years to come. It's almost as important as choosing your first distro. These are a few common choices that cater to different tastes:

  • Gnome: Full featured yet very minimalist, Gnome is a great DE that eschews the traditional Desktop metaphor. Like MacOS, out of the box, it provides its strongly opinionated developers' vision of a user experience. Fortunately, unlike MacOS, there are thousands of extensions to tweak and extend the looks and behaviour of the DE. Dash-to-dock or Dash-to-panel are great if you want a more MacOS-like or Windows-like experience, Blur My Shell is great if you love blurry transparent things, Appindicator is a must, and everything else is up to you. Gnome's development cycle is highly regular and all core components and apps follow the same release schedule, which explains why a lot of distros choose it as their default DE.
  • KDE Plasma: Full featured and maximalist, Plasma does not cater to a single design philosophy, is very flexible and can be tweaked almost ad infinitum. This may be an advantage for people who like to spend hours making the perfect environment, or a disadvantage as the possibilities can be overwhelming, and the added complexity may compromise stability, bugginess or completeness. There is not yet a single development cycle for core components and apps, which makes it a bit more difficult for distro maintainers and explains why there are so few distros with Plasma as the flagship DE. The KDE team is however evolving towards a more regular update cycle.
  • Cinnamon: Forked from Gnome 3 by the Linux Mint team who disliked the extreme change of user experience it introduced, Cinammon provides a very traditional, "windows-like", desktop-metaphor experience in a more modern software stack than the older DEs it takes inspiration from. Cinnamon still keeps a lot in common with Gnome by being simple and easy to use, yet heavily modifiable with themes, applets and extensions.
  • Lightweight DEs for old or underpowered machines: The likes of XFCE, LXDE, LXQt are great if you want to ressurect an old machine, but lack the bells and whistles of the aforementioned DEs. If your machine is super old, extremely underpowered and has less than a few Gb of RAM, don't expect miracles though. A single browser tab can easily dwarf the RAM usage and processing power of your entire system.

As for which one you should choose, this is entirely up to you, and depends on your preferences. FYI, you are not married to your distro's default desktop environment. It's just what comes preinstalled. You can install alternative DEs on any distro, no need to reinstall and/or distro-hop.

How do I install stuff on Linux?

Forget what you're used to do on Windows of MacOS: searching for your software in a seach engine, finding a big "Download" button on a random website and running an installer with administator privileges. Your package manager not only keeps you system up to date, but also lets you install any software that's available in your distro's repositories. You don't even need to know the command line, Gnome's Software or Plasma's Discover are nice graphical "App Stores" that let you find and install new software.

Flatpak are a great and more recent recent alternative to distro packages that's gaining a lot of traction, and is increasingly integrated by default to the aforementioned App Stores. It's basically a "universal" package manager system thet sits next to your system, that lets software developers directly distribute their own apps instead of offloading the packaging and distribution to distro maintainers.

Choosing a first distro

As discussed before, there is a metric fuckload (or 1.112 imperial fucktons) of distros out there. I advise you to keep it as mainstream as possible for your first steps. A distro with a large user base, backed by a decently large community of maintainers and contributors and aimed at being as fuss-free as possible is always better than a one-person effort tailored to a specific use-case. Choose a distro that implements well the DE of your choice.

What are great distros for beginners?

The following are great distros for beginners as well as more advanced users who just want to have a system that needs almost no configuration out of the box, just works and stays out of the way. Always read the installation documentation thoroughly before attempting anything, and follow any post-install requirements (for example, installing restricted-licence drivers on Fedora).

  • Fedora Workstation: Clean, sensible, modern and very up to date and should work out of the box for most hardware. Despite being sponsored by Red Hat (who are getting a lot of justified hate for moving RHEL away from open-source), this is a great community distro for both beginners and very advanced users (including the Linus Torvalds). Fedora is the flagship distro for the Gnome Desktop Environment, but also has a fantastic Plasma version. Keywords: Point Release, close to Bleeding Edge, Community, dnf/rpm, large maintainer team, traditional, original.
  • Linux Mint: Mint is an Ubuntu (or Debian for the LMDE variant) derivative for beginners and advanced users alike, that keeps Ubuntu's hardware support and ease of use while reverting its shenanigans and is Cinammon's flagship distro. Its main goal is to be a "just works" distro. Keywords: Point Release, halfway between Stable and Bleeding Edge, Community, apt/deb, smallish maintainer team but lots of contributors, traditional, derivative (Ubuntu or Debian).
  • Pop!_OS: Backed by hardware Linux vendor System76, this is another Ubuntu derivative that removes Snaps in favor or Flatpaks. Its heavily modified Gnome DE looks and feels nice. In a few months/years, it will be the flagship distro for the -promising but still in development- Cosmic DE. Keywords: Point Release, halfway between Stable and Bleeding Edge, commercially-backed Community, apt/deb, employee's maintainer team, traditional, derivative (Ubuntu).
  • If you want something (advertised as) zero-maintenance, why not go the Atomic way? They are still very new and there isn't a lot of support yet because they do things very differently than regular distros, but if they wort OOTB on your system, they should work reliably forever. Sensible choices are uBlue's Aurora (Plasma), Bluefin (Gnome) or Bazzite (gaming-ready), which are basically identical to Fedora's atomic variants but include (among other things) restricted-licence codecs and QOL improvements by default, or OpenSUSE's Aeon (Gnome). Keywords: Point Release, Bleeding Edge, Community, rpm-ostree, large maintainer team, Atomic, sub-project (Fedora/OpenSUSE).

Which power-user distros should I avoid as a beginner, unless I reaaaally need to understand everything instead of being productive day one?

These are amongst the very best but should not be installed as your first distro, unless you like extremely steep learning curves and being overwhelmed.

  • Debian Stable: as one of the oldest, still maintained distros and the granddaddy of probably half of the distros out there, Debian is built like a tank. A very stringent policy of focusing on bug and security fixes over new features makes Debian extremely stable and predictable, but it can also feel quite outdated. Still a rock-solid experience, with a lot to tinker with despite very sensible defaults. It is an incredible learning tool and is as "Standard Linux" as can be. Debian almost made the cut to "beginner" distros because of its incredible reliability and massive amount of documentation available, but it might be a bit too involved for an absolute beginner to configure to perfection. Keywords: Point Release, Stable as fuck, Community, apt/deb, large maintainer team, traditional, original.
  • Arch: The opposite of Debian in philosophy, packages often come to Arch almost as soon as the source code is released. Expect a lot of manual installation and configuration, daily updates, and regularly fixing stuff. An incredible learning tool too, that will make you intimate with the inner workings of Linux. The "Arch btw" meme of having to perform every single install step by hand has taken a hit since Arch has had a basic but functional installer for a few years now, which is honestly a good thing. I work in sofware. A software engineer who does every single tedious task manually instead of automating it is a shit software engineer. A software engineer who prides themself from doing every single tedious task manually should seriously reconsider their career choices. Arch's other main appeal is the Arch User Repository or AUR, a massive collection of user-created, automated install scripts for pretty much anything. Keywords: Rolling Release, Bleeding-edge, Community, pacman/pkg, large maintainer team, traditional, original.

Which distro should I avoid, period?

  • Ubuntu: despite having a huge mind-share as the beginner distro, Ubuntu suffers from it's parent company's policy to make Ubuntu kinda-Linux-but-not-really and a second-rate citizen compared to their Ubuntu Pro commercial product. Some of the worst takes in recent years have been pushing Snaps super agressively in order to get some "vendor-lock-in", proprietary walled-garden ecosystem with exclusive commercial apps, forcibly installing snaps even when explicitely asking for a .deb package through apt, baking ads and nags into major software or only delivering critical security patches to Pro customers. Fortunately, there are some great derivatives like Mint or Pop!_OS cited above that work equally well but revert some of the most controversial decisions made by Canonical.
  • Manjaro: Manjaro might seem appealing as a "user-friendlier" Arch derivative and some of its tools are fantastic to remove some configuration burden, but ongoing mismanagement issues and the fact that it needs Arch-style regular maintenance as updates often break stuff prevent it from being a truly beginner distro. Manjaro also has a highly irregular update schedule that's weeks behind Arch, making using the AUR extremely dangerous, as it always expects a fully up-to-date Arch system.
  • Any single-maintainer or tiny team distros like Nobara or CachyOS. They might be fantastic distros made by exceptional people (I have mad respect for Nobara's maintainer Glorious Eggroll and his work on Proton-GE), they are most often derivatives so the heavy lifting is already done by their parent distro's maitainers, but there is too much risk involved. Sometimes life happens, sometimes people move on to other projects, and dozens of small distros get abandonned every year, leaving their users dead in the water. Trusting larger teams is a much safer bet in the long term.
  • Anything that refuse to use standards for ideological reasons like Alpine Linux, Devuan or Artix. Don't get me wrong, not using any GNU tools or systemd is a cool technological feat and developing alternatives to the current consensus is how things evolve. However, these standard tools have a long history, hundreds if not thousands of maintainers and are used by millions, meaning there's a huge chance your specific issue is already solved. Refusing to use them should be reserved to very advanced users who perfectly understand what they're gaining and losing. As a beginner to intermediate level, it will at best make most of the documentation out there irrelevant, at worst make your life a miserable hell if you need to troubleshoot anything.

Philosophical questions, or "I've seen people arguing over the Internet and now I'm scared"

You've done your research, you're almost ready to take the plunge, you even read a lot of stuff on this very community or on the other website that starts with a "R", but people seem very passionately for or against stuff. What should you do?

Shoud I learn the command line?

Yes, eventually. To be honest, nowadays a lot of things can be configured on the fly graphically, through your DE's settings. But sometimes, it's much more efficient to work on the command line, and sometimes it's the only way to fix something. It's not that difficult, and you can be reasonably productive by understanding just about a dozen very simple commands.

I have a very old laptop/desktop, should I use a distro from its era?

Noooo!. Contrary to Windows and MacOS which only work correctly on period-correct computers, Linux runs perfectly well on any hardware from the last 20 to 30 years. You will not gain performance by using an old distro, but you will gain hundreds of critical security flaws that have been since corrected. If you need to squeeze performance out of an old computer, use a lightweight graphical environment or repurpose it as a headless home server. If it's possible, one of the best ways to breathe new life into an old machine is to add some RAM, as even lightweight modern sofware will struggle with less than a few Gb.

Should I be concerned about systemd?

No. In short, systemd is fine and all major distros have switched to systemd years ago. Even the extremely cautious people behind Debian have used systemd as default since 2015. Not wanting to use systemd is a niche more rooted in philosophical and ideological rather than practical or technical reasons, and leads to much deeper issues than you should concern yourself with as a beginner.

Should I be concerned about XOrg/Wayland?

Yes and No, but mostly No. First off, most distros install both Wayland and XOrg by default, so if one is not satisfying to you, try the other. Remember in the preamble when I said nVidia was a bad actor? Well, most of people's complaints about Wayland are because of nVidia and their shitty drivers, so GTX/RTX users should stay on XOrg for now. But like it or not, XOrg is dead and unmaintained, and Wayland is the present and future. XOrg did too many things, carried too many features from the 80's and 90's and its codebase is a barely maintainable mess. X11 was born in a time when mainframes did most of the heavy lifting and windows were forwarded over a local network to dumb clients. X11 predates the Internet and has basically no security model. Wayland solves that by being a much simpler display protocol with a much smaller feature set adapted to modern computing and security. The only downside is that some very specific functionalities based on decades of X11 hacking and absolute lack of security can be lost.

I want to play some games, should I look for a gaming distro?

No. General purpose distros are perfectly fine for gaming. You can install Steam, Lutris, Heroic, Itch etc. and use Proton just fine on almost anything. Even Debian. In short, yes, you can game on Linux, there are great tutorials on the internet.

Should I be concerned about Flatpaks and/or Snaps vs. native packages?

Not really. Flatpaks are great, and more and more developers package their apps directly in Flatpak format. As a rule of thumb, for user facing applications, if your app store gives you the choice between Flatpak and your native package manager version, choose the most recent stable version and/or the one packaged by the developer themselves (which should often be the Flatpak anyway). Snaps however are kinda bad. They are a Canonical/Ubuntu thing, so as long as you avoid Ubuntu, its spins and its derivatives that still include Snaps, you should be fine. They tend to take a lot longer to startup than regular apps or Flatpaks, the snap store is proprietary, centralized and Canonical controls every part of it. Also, Canonical is very aggressive in pushing snaps to their users, even forcing them even when they want to install an apt package. If you don't care, have fun.

I need/want program "x", but it is only available on distro "y" and not on mine. I've been told to ditch my beloved distro and install the other one, should I?

No. Generally, most software is intallable from your distro's package manager and/or Flatpak. But sometimes, your distro doesn't package this program you need, or an inconsiderate developer only distributes a random .deb on their Github release page. Enter Distrobox. It is a very simple, easy to use command line tool that automates the creation of other Linux distros containers using Docker or Podman (basically, tiny, semi-independant Linuxes that live inside your regular Linux), and lets you "export" programs installed inside these containers to you main system so you can run them as easily and with almost the same performance as native programs. Some atomic distros like uBlue's variants even include it by default. That .deb we've talked about before? Spin a Debian container and dpkg install the shit out of it. Absolutely need the AUR? Spin an Arch container and go to town.

Acknowledgements

Thanks to everyone who helped improve this guide: @GravitySpoiled@lemmy.ml, @tkn@startrek.website, @throwaway2@lemmy.today, @cerement@slrpnk.net, @kzhe@lemm.ee, @freijon@feddit.ch, @aarroyoc@lemuria.es, @SexualPolytope@lemmy.sdf.org, @Plopp@lemmy.world, @bsergay@discuss.online ...and many others who chimed in in the comments <3

Link to version 1: https://lemm.ee/post/15895051

2
222
submitted 13 hours ago* (last edited 13 hours ago) by marcie@lemmy.ml to c/linux@lemmy.ml

Generated via https://github.com/ublue-os/countme

10k added users since last post. Here are upstream Fedora numbers only

3
11
submitted 9 hours ago* (last edited 9 hours ago) by Jack_Burton@lemmy.ca to c/linux@lemmy.ml

I'm on Ubuntu Studio 24.04.3 LTS (Noble). I chose this over the newer 25.04 (Plucky Puffin) since 24 has support through 2027, and 25 only has it until Jan 2026. I figured this was the smarter move.

However, as was mentioned by one of you lovely people in my last post, some of my issues may be fixed in 25.04. My taskbar just froze up, and I found a sort of fix to restart Plasma, and it was mentioned this is fixed in Plasma 6, which is in 25.04. That said, I'm terrified of ruining everything haha, so I have more questions:

1: I'm assuming (hoping) this wouldn't be a full wipe and start over? It should just upgrade right?

2: Do I need to do the whole USB route, and if so is there an option to keep everything (I'm hoping, I put a LOT of work into this so far and I don't remember if that was an option on first install).

3: I remember a few apps I installed were specific to Noble, will this break those apps?

4: It seems like there should be an option to upgrade from the desktop, but I don't have that option. If I run

plasma-distro-release-notifier

I should get an update notification right? In which case I can just say "hell yeah!" and it'll do its thing?

I really appreciate all of you, you've made a super stressful experience slightly less stressful so cheers to you all!

4
6
submitted 9 hours ago* (last edited 5 hours ago) by chimay@lemmy.world to c/linux@lemmy.ml
5
20
submitted 12 hours ago by smeg@feddit.uk to c/linux@lemmy.ml

cross-posted from the Linux phones community as nobody there knew

Has anyone actually successfully installed PostmarketOS on an old device recently? I've had a long struggle through trying to prepare a Nexus 7 (2012) and the result seems to be a dead device before I even got to actually installing PostmarketOS.

The rough steps I followed are listed here:

  • Create backups
  • Get SBK
  • Build and prepare U-Boot
    • Actually flashing U-Boot seems to be where things went wrong
      • Running ./run_bootloader.sh -s T30 -t ./bct/grouper.bct -b ../re-crypt/repart-block.bin or ./run_bootloader.sh -s T30 -t ./bct/grouper.bct -b ../generated-wheelie-blobs/AndroidRoot/blob.bin from fusee-tools hung on waiting for bootloader to initialize
      • Running ./run_bootloader.sh -s T30 -t ./bct/grouper.bct -b ../u-boot/u-boot-dtb-tegra.bin failed like this
      • skipping that step and running ./utils/nvflash_v1.13.87205 --resume --rawdevicewrite 0 1024 ../re-crypt/repart-block.bin hung on [resume mode]
      • Consulting a different version of the docs and running ./wheelie --blob ./generated-wheelie-blobs/AndroidRoot/blob.bin seemed to work so I ran ./nvflash --resume --rawdevicewrite 0 1024 ./re-crypt/repart-block.bin which also seemed to work
      • I then powered off as instructed and the device has been completely unresponsive since

I've tried connecting to a charger, disconnecting and reconnecting the battery, and every combination of holding down buttons but it appears to be completely dead. Any suggestions as to what I did wrong or anything I might be able to do now? Obviously it's not the end of the world to have lost a 13 year old tablet that was just gathering dust, but at the moment I'm not feeling positive about ever trying this again on another device!

6
32
submitted 15 hours ago* (last edited 15 hours ago) by TheTwelveYearOld@lemmy.world to c/linux@lemmy.ml
Subject: [PATCH RFC 21/22] phy: apple: Add Apple Type-C PHY
Date: Thu, 21 Aug 2025 15:39:13 +0000[thread overview]
Message-ID: <20250821-atcphy-6-17-v1-21-172beda182b8@kernel.org> (raw)
In-Reply-To: <20250821-atcphy-6-17-v1-0-172beda182b8@kernel.org>

The Apple Type-C PHY (ATCPHY) is a PHY for USB 2.0, USB 3.x,
USB4/Thunderbolt, and DisplayPort connectivity found in Apple Silicon SoCs.
The PHY handles muxing between these different protocols and also provides
the reset controller for the attached dwc3 USB controller.

There is no documentation available for this PHY and the entire sequence
of MMIO pokes has been figured out by tracing all MMIO access of Apple's
driver under a thin hypervisor and correlating the register reads/writes
to their kernel's debug output to find their names. Deviations from this
sequence generally results in the port not working or, especially when
the mode is switched to USB4 or Thunderbolt, to some watchdog resetting
the entire SoC.

This initial commit already introduces support for Display Port and
USB4/Thunderbolt but the drivers for these are not ready. We cannot
control the alternate mode negotiation and are stuck with whatever Apple's
firmware decides such that any DisplayPort or USB4/Thunderbolt device will
result in a correctly setup PHY but not be usable until the other drivers
are upstreamed as well.

Co-developed-by: Janne Grunau <j@jannau.net>
Signed-off-by: Janne Grunau <j@jannau.net>
Co-developed-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Sven Peter <sven@kernel.org>
7
7

Dear fellow nerds,

I recently started to use aerc, synched locally with mbsync. Unfortunately, I'm facing a rather annoying problem with Gmail:

  • I read emails (flag "seen") and move them to the archive;
  • run the mbsync < account > command to sync;
  • the mails are correctly moved, however, they seem to lose the "seen" flag, and they revert to unread.

Am I missing something? Any idea what could be the problem? If it matters, I'm on a Wayland session on NixOS.

Thanks!

8
155
submitted 21 hours ago* (last edited 19 hours ago) by Jack_Burton@lemmy.ca to c/linux@lemmy.ml

It's been a week. Ubuntu Studio, and every day it's something. I swear Linux is the OS version of owning a boat, it's constant maintenance. Am I dumb, or doing something wrong?

After many issues, today I thought I had shit figured out, then played a game for the first time. All good, but the intro had some artifacts. I got curious, I have an NVIDIA GeForce RTX 3060 and thought that was weird. Looked it up, turns out Linux was using lvmpipe. Found a fix. Now it's using my card, no more clipping, great!. But now my screen flickers. Narrowed it down to Vivaldi browser. Had to uninstall, which sucks and took a long time to figure out. Now I'm on Librewolf which I liked on windows but it's a cpu hungry bitch on Linux (eating 3.2g of memory as I type this). Every goddamned time I fix something, it breaks something else.

This is just one of many, every day, issues.

I'm tired. I want to love Linux. I really do, but what the hell? Windows just worked.

I've resigned myself to "the boat life" but is there a better way? Am I missing something and it doesn't have to be this hard, or is this what Linux is? If that's just like this I'm still sticking cause fuck Microsoft but you guys talk like Linux should be everyone's first choice. I'd never recommend Linux to anyone I know, it doesn't "just work".

EDIT: Thank you so much to everyone who blew up my post, I didn't expect this many responses, this much advice, or this much kindness. You're all goddamned gems!

To paraphrase my username's namesake, because of @SnotFlickerman@lemmy.blahaj.zone and his apt gif (also, Mr. Flickerman, when I record I often shout about Clem Fandango)...

When some wild-eyed, eight-foot-tall GNU/LINUX OS grabs your neck, taps the back of your favorite head up against the barroom wall, and he looks you crooked in the eye and he asks you if ya paid your dues, you just stare that big sucker right back in the eye, and you remember what ol' Jack Burton always says at a time like that: "Have ya paid your dues, Jack?" "Yessir, the check is in the mail."

9
35
submitted 23 hours ago by user224@lemmy.sdf.org to c/linux@lemmy.ml
$ pacman -Si apt
Repository      : extra
Name            : apt
Version         : 3.1.4-1
Description     : Command-line package manager used on Debian-based systems
Architecture    : x86_64
URL             : https://salsa.debian.org/apt-team/apt
Licenses        : BSD-3-Clause  GPL-2.0-only  GPL-2.0-or-later  MIT
Groups          : None
Provides        : None
Depends On      : systemd-libs  libseccomp  perl  xxhash  dpkg  gnutls  bzip2  sequoia-sqv  xz  gcc-libs  lz4  bash  zlib  zstd  db  libgcrypt  glibc
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 2.63 MiB
Installed Size  : 8.24 MiB
Packager        : Alexander Epaneshnikov <alex19ep@archlinux.org>
Build Date      : Mon 11 Aug 2025 08:52:43 PM CEST
Validated By    : SHA-256 Sum  Signature

https://archlinux.org/packages/extra/x86_64/apt/

10
27
submitted 1 day ago* (last edited 9 hours ago) by someoneFromInternet@lemmy.ml to c/linux@lemmy.ml

Hello! I have a /home partition that is almost full, and there is another partition nearby with a lot of free space. I would like to reduce the size of this neighboring partition and add the freed space to /home. I would like to do this safely, without using a Live USB or bootable flash drive. Is this possible?

upd: gparted just worked(through a live usb stick)! Sometimes I try to use symlinks, but not this time :) Thanks everyone!

11
276
12
21
submitted 1 day ago* (last edited 1 day ago) by Tundra@sh.itjust.works to c/linux@lemmy.ml

Other than framework (out of stock) does anyone know of a good linux gaming laptop with a dedicated AMD GPU that I can buy in the UK?

any help would be appreciated!

13
606
submitted 1 day ago by elements@lemmy.world to c/linux@lemmy.ml
14
62
Made the switch (lemmy.world)

I have moved to Linux. Hopefully for a long time. Or even forever. Chose PikaOS with KDE. Based on Debian, but with latest kernels to improve gaming experience. And hopefully make it easier installing various Windows programs I need for work. Everybody got to start somewhere.

To be honest, I have tried Linux before with Ubuntu(back when those eee PC existed). I also used Manjaro and Arch. Even installed Arch without archinstall. Didn't exist back then. But I have to say Linux has definitely improved a lot. Almost everything just worked now. To be fair. I don't have nvidia gpu or Intel cpu anymore. Only AMD. So that could be part of why it went smoother.

One small annoyance I got was that my pc could not play from speakers when front audio port was connected by my headset. And now I need to figure out how to install Filemaker 19 pro on my PC. So I can work from home. Winehq is not encouraging

Can someone also recommend a really good replacement for Directory Opus but for Linux? Paid or free software do not matter. As long as it functions like Dopus does.

15
32

Like, I push a button or key combo and talk at my computer and it types what I talk.

If not, why?

I do not mind writing some code to get this working but my time is very limited right now.

16
10
submitted 1 day ago by arsus5478@lemmy.ml to c/linux@lemmy.ml

I use a small notebook so it comes in handy to double the title bar to have space to increase the title font to 16 or 18

On debian 12.11 this was the case, but I don't remember how I configured it or what style I used. The style I now use on debian 13 is adwaita

17
52
Introduction to Nix & NixOS (nixos-and-flakes.thiscute.world)
18
14
submitted 1 day ago* (last edited 1 day ago) by Eyedust@lemmy.dbzer0.com to c/linux@lemmy.ml

Airpods Max output as table. Not charging. Airpods Max output as table. Charging.

I do not claim this script. This was built off of Delphiki's fork of Faglo's original Airstatus. They did the complicated stuff. They're the real heroes. I'm just a UI/UX nerd. I like things to look nice.

Fork here: https://github.com/SleepyScribe/AirStatus

I've added a few changes to my Airstatus fork just for my peace of mind. The new output can be used as a tiling WM status monitor. I'm in the motions of diving into KDE JSON/XML/QML spaghetti to see if I can make a widget, but its not going well. However, you can still specify an output file that will update with the raw data in it's original, unaltered form. This should allow hoodoo programming wizards to hook up their own OS front ends for the data. I may see if I can make it so that the raw data clears the line before adding a new update, just because I can see the output file getting unwieldy after a while.

The new table will output battery levels from green-yellow-red depending on charge level. Caret and input are disabled while retaining the ability to break out with CTRL+C. Breakout is now clean with no text and clears terminal. This was to keep things as neat as possible if you should use it as a CLI monitor. Update interval is set to 4 seconds. Airpods and Airpods Pro should have columns for left/right/case. I can't test as I gave mine away to a friend.

Let me know if you have or see any issues, I'll try my best to address them. Font is Recursive NerdFont DuoTone if you're curious. Its a mono that changes to a casual style for bold and/or italic text. There's also normal sans and casual sans versions. Has ligatures.

19
26
submitted 2 days ago* (last edited 1 day ago) by arsus5478@lemmy.ml to c/linux@lemmy.ml

debian 13.0, downloaded yt-dlp with wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O ~/.local/bin/yt-dlp

the python script is in that directory, but if I execute yt-dlp on the terminal it returns bash: yt-dlp: command not found

what should I do?

SOLVED: add .local/bin to your $PATH

20
12
submitted 2 days ago by gi1242@lemmy.world to c/linux@lemmy.ml

Hi All,

I recently tried out the KDE/Plasma search (Baloo).

  1. Indexing full content was too slow (I have some 100GB of data), and I disabled it.

  2. Indexing filenames only was reasonably quick.

  3. The search was very restrictive (full words only, miscategorized files). To make it usable for me, I had to get a list of all files and dump it to fzf, which worked reasonably well.

  4. Using baloosearch6 to get a long list of files provides almost no noticable performance improvment over fd:

     > time ( baloosearch6 mimetype:application/pdf | wc -l )
     0.05s user 0.03s system 111% cpu 0.069 total
    
    
     > time ( \fd -H --no-ignore-vcs --xdev -tf -tl '.pdf$' | wc -l ) 
     0.24s user 0.15s system 364% cpu 0.107 total
    

    (Both commands found about 11,000 files. I'm using a SSD with about 500mbps read speed).

  5. If I try it again with a larger file set :

     > time ( baloosearch6 -d VSync/ '' | wc -l ) 
     0.23s user 0.10s system 123% cpu 0.264 total
    
     > time ( \fd -H --no-ignore-vcs --xdev -tf -tl --base-directory=VSync/ | wc -l )
     0.13s user 0.11s system 456% cpu 0.052 total
    

    This time baloo found 96000 files, and fd found 59000 files. (fd might have run faster cause of disk caching.)

fd used more CPU no doubt. But the wall time difference in performance is so small that it doesn't make sense to me to use an indexed search anymore.

Any thoughts?

21
11
submitted 2 days ago by that_leaflet@lemmy.world to c/linux@lemmy.ml
22
330
submitted 3 days ago by NeedyPlatter@lemmy.ca to c/linux@lemmy.ml

I was initially waiting for Windows 10 to be officially unsupported before I switched to Pop_OS, but today, I just got sick of looking at the Windows 10 UI and decided to jump the gun.

As a complete normie, I am so glad I didn't fuck up my computer because my laptops settings to get into the BIOS was completely different than how most videos instructed.

I've been playing around with it for a bit, and I most say that using this distro is a lot easier than I expected! The Pop Store is a lifesaver! I'm not sure if I could've made it if I had to manually install my browser and all that.

I feel like my laptop is now a bit slower and the graphics look a bit lower? Maybe I missed something when reading the rec specs. Oh well...

23
21

I'm making the switch to using Neomutt for my email, but I still have calendar data from several accounts I want to access locally. Is there something like neomutt, but for calendar data? Maybe an Obsidian plug-in, or some other OSS app I can configure?

I'm using EndeavourOS (Arch), with the Sway DE, and would prefer staying away from KDE/Gnome based apps.

24
7
Cheap SBC x86-64 ? (programming.dev)

Hi,

is it exist cheap ~$60 SBC in X86-64 ??

No thank you for Rapsberry PI
I used Raspberry PI SBC for a while now.

But it's really hard to found a Linux distribution that support

  • RPI (arm64)
  • sysVinit 💖
  • And that I like

Please don't bring systemD in this discussion thanks.

[^1]:

25
36
submitted 3 days ago* (last edited 3 days ago) by myotheraccount@lemmy.world to c/linux@lemmy.ml

Is there a firewall solution for Linux that will notify me of any connections that other processes try to establish, and let me allow/deny each connection manually?

I would like to get more concious about which tools are connecting to the internet, and how often.

view more: next ›

Linux

57274 readers
1193 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 6 years ago
MODERATORS