I have been using Arch with systemd for some years now and I would like to try out Gentoo in order to learn OpenRC and get used to manually controlling the system with config files instead of having it all served on a silver platter with some *ctl command as per systemd.

I have read the installation guide for x86_64 systems two times now, and in the following week, I would like to try installing a minimal system (no graphical stuff).

Any advice from people that already use Gentoo? Especially things that they wish they knew before trying for the first time? Like, what not to waste time on initially? For example, to simply get an Arch system up and running, I didn’t have to learn how to write unit files, but I accidentally wasted a week on that before just enjoying my system first. 😅

A few of my own thoughts:

  1. How much time and effort should I put into fine tuning the global USE flags if my initial goal is to get a system up and running?
  2. With systemd, I enable --nowed that which I wanted to “autostart” (iptables and sshd, for instance). Is there an equally intuitive counterpart with OpenRC?

Thanks in advance! 🐧

  • Magiilaro@feddit.org
    link
    fedilink
    Deutsch
    arrow-up
    2
    ·
    5 hours ago

    For 1: As a beginner keep away from global use flags, stick to per package use flags. Global use flags can make things very complicated.

  • Hund@feddit.nu
    link
    fedilink
    arrow-up
    3
    ·
    7 hours ago

    My advice would be to not overthink things. Whatever you do, there’s always a way to undo and/or change it

  • ShimitarA
    link
    fedilink
    English
    arrow-up
    3
    ·
    12 hours ago

    A few personal notes here https://wik/ i.gardiol.org/3-linux-gentoo see the su pages as well

    Gentoo is a great choice! I use it an all my devices from servers to laptops and workstations . It’s fun, solid, stable and efficient.

    Good choice, and… Good luck… Dm for any issue.

  • Daniel Quinn@lemmy.ca
    link
    fedilink
    English
    arrow-up
    16
    ·
    20 hours ago

    As this is your first go, I’d recommend not tinkering with USE flags at all. Take the defaults, find what you don’t like, and consider tweaks later. USE flags can end up like a sort of “dependency hell”, with one package not working correctly because it expects another package to have something you’ve excluded. It’s uncommon, but frustrating when it happens. It’s best to start with the defaults.

  • nyan@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    15 hours ago

    Any advice from people that already use Gentoo? Especially things that they wish they knew before trying for the first time?

    This is more things-about-bootloaders I wished I’d known/remembered when installing more recent systems, but:

    • If you want to use GPT partitions on a system with legacy BIOS boot, remember that you will need an additional unformatted small partition at the beginning of the disk (this tidbit of information used to be in the handbook, but has been removed)
    • If you’re trying to install GRUB on a UEFI system, and it looks like everything should work but the system fails to boot, read the troubleshooting section of the GRUB page in the wiki for information on how to handle defective UEFI implementations.
    • Do not try to enable Secure Boot if this is your first rodeo. Get the rest working first.

    How much time and effort should I put into fine tuning the global USE flags if my initial goal is to get a system up and running?

    Not much, unless there’s something you really want to exclude (-systemd, for instance). Most of the time the default USE flags will give you a workable, feature-rich system (and allow you to use more binary packages).

    What you need to pay attention to is your choice of profile, which sets your default USE flags. Profiles in the desktop series enable a lot of USE flags. For the most basic command-line system, you’re better off picking default/linux/amd64/23.0 (or default/linux/amd64/23.0/split-usr if you want the old FHS setup where /bin and /usr/bin etc. are different directories—if you don’t care about this, stick with the default and ignore split-usr). Avoid no-multilib, hardened, and anything marked “(exp)” or “(dev)” unless you have some specific reason for wanting that profile.

    With systemd, I enable --nowed that which I wanted to “autostart” (iptables and sshd, for instance). Is there an equally intuitive counterpart with OpenRC?

    I think you want the rc-update command, specifically rc-update add [service] default (assuming you want the default runlevel, which you nearly always do). There’s a man page.

  • arran 🇦🇺@aussie.zone
    link
    fedilink
    arrow-up
    2
    ·
    15 hours ago

    You can (and generally do) install gentoo in a Chroot, I recommend using btrfs with subvolumes on your current install, then switching when everything works, that way you can roll back.

    But since you’re on arch you probably already know a fair chunk of what is necessary.

    1. Use flags are more about features, there are other flags like cpu architecture. I don’t recommend you do too much on your first build, except for having some sweeping ones like X and/or Wayland. Then once you have it running you can do a rebuild. I also recommend taking subvolume snapshots before doing major changes.
    2. Yes. https://wiki.gentoo.org/wiki/OpenRC#Runlevels
    • printf("%s", name);@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 hours ago

      Cool! That sounds quite straightforward. 😊 I guess at the very least I’ll single out my graphic drivers (Intel)? 🤔 I wonder though, how much space and processing power can one actually save with USE flags. Like, if one were to really “squeeze” them for optimization. 😆

      • nyan@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago

        I guess at the very least I’ll single out my graphic drivers (Intel)?

        You shouldn’t need to concern yourself about this until you’re looking to install X or wayland (at which time you’ll want to put VIDEO_CARDS="intel i915" or similar in make.conf—read the wiki to see which drivers match your specific chipset; my example stanza is for a Kaby Lake system). The basic drivers should autoload unless you compiled a custom kernel and left them out by mistake.

      • arran 🇦🇺@aussie.zone
        link
        fedilink
        arrow-up
        2
        ·
        14 hours ago

        I would like to know too. But I guess it really depends on a per app level b/c of libraries, frameworks, and languages/runtimes.

  • fozid@feddit.uk
    link
    fedilink
    arrow-up
    3
    ·
    17 hours ago

    After 15 years on arch, last year I looked at Gentoo, artix and void. I chose void and have no complaints. It’s a very unopinionated distro, uses runit, rolling release, nice package manager, and works well with just compiling packages you want from source. My arch was heavily optimised and clean, but runit is so simple to use and boot times are insane. After post, my boot is around 3 seconds. Shutdown is about 1-2 seconds.

  • z3rOR0ne@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    20 hours ago

    Not that I’m trying to dissuade you, as I am on Gentoo and have been for about 1 year now, but if you’re only interested in other init systems, did you consider trying Artix?

    I’d still say go with Gentoo if you want fine grained control over nearly every aspect of your system, as compiler flags, eselect profiles, and just overall minimalism make it superior for tinkerers imho.

    That said, if you just wanted to experience other init systems like openrc, then Artix might be a good option. Prior to jumping to Gentoo, I was on Artix Linux with runit init system for 6 years. It was good, but I wanted to know more about Gentoo. There were some definite tradeoffs from Artix with runit, but I appreciated the fine grained control I got with Gentoo’s compiler flags, so I stayed on Gentoo.

    The only advice I’d say when installing Gentoo is to choose your profile carefully during initial install and to choose your stage 3 tarball accordingly (just think about your ultimate use case). Also, if you need to use wifi, make sure to install wpa supplicant while chrooted into the live environment.

    Anyways, hope this helps.

    • printf("%s", name);@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      19 hours ago

      Thanks for these amazing tips! But instead of a tarball, you threw me a curveball! Sorry… I’m sleepy and my pun brain has taken over… I hadn’t considered Artix! And now I see that it’s even compatible with OpenRC! Not that I have any preferences on init systems, though. Maybe I should try that first. I’ll think it over! Thanks! 😊

  • GustavoM@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    4
    ·
    16 hours ago

    There is absolutely not a single reason to use Gentoo, unless you have a really old PC that you really, REALLY need to use it.

    • Magiilaro@feddit.org
      link
      fedilink
      Deutsch
      arrow-up
      2
      ·
      5 hours ago

      Gentoo is great if you want to proper learn Linux and love to tinker and build a personalized linux system.

    • ShimitarA
      link
      fedilink
      English
      arrow-up
      4
      ·
      12 hours ago

      Its fun, it’s original, it’s a learning experience. what else would one need?