I’m planning to install Arch Linux for the first time. Any recommendations on setup, must-have applications, or best practices? Also, what’s something you wish you knew before switching to Arch?

  • NateSwift@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    43
    ·
    2 months ago

    The ArchWiki is amazing, probably don’t start by installing nothing but a window manager and adding things you need as you go

  • ndondo@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    3
    ·
    2 months ago

    EndeavorOS if you want to have an easy time. Also be comfortable reading documentation.

      • ndondo@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        2 months ago

        Mostly BC its low effort. The most intimidating thing about arch for me was the troubleshooting when things go wrong. I’m cool with that in general operation but not during the installation process. Endeavor makes it painless while still being a minimalistic install

          • twirl7303@lemmy.world
            link
            fedilink
            arrow-up
            6
            ·
            2 months ago

            Manually resizing/replacing the efi partitions for Windows dual boot was where I decided to stop and switch to a graphical installer.

            • brisk@aussie.zone
              link
              fedilink
              arrow-up
              1
              ·
              2 months ago

              Partitioning is something I don’t mess with on the terminal. Last time I set up a new drive I used SystemRescueCD first just to use gParted before installing arch (manually)

    • T (they/she)@beehaw.org
      link
      fedilink
      arrow-up
      2
      arrow-down
      2
      ·
      2 months ago

      If you don’t mind AI slop wallpapers every time you upgrade your system. I can’t wait to get rid of eOS on my desktop and just use regular Arch

      • ndondo@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 months ago

        I’ve only seen this on a system I hadn’t changed the wallpaper on. But agreed the stock ones suck

        • T (they/she)@beehaw.org
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          2 months ago

          I don’t know why but even if I am setting my own wallpapers I still get to see the stock ones (when booting, etc), it pisses me off because it is clearly AI made and it seems the community around eOS likes them and even make worst ones on their forum

  • Veraxis@lemmy.world
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    2 months ago

    Stick to the many guides available and you will be fine. One thing which I either missed or was glossed over in most guides is to install the Linux-firmware package. It is considered an “optional” package, but on all the machines I have ever used I have run into issues without it.

  • fuckwit_mcbumcrumble@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    2
    ·
    2 months ago

    Install it in a VM. Create snapshots. When you fuck it up then revert the snapshot.

    Once you’re decent at figuring out what to and not to do then try to get proficient at file system snapshots so you can do the same thing more or less on bare metal.

    • z3rOR0ne@lemmy.ml
      link
      fedilink
      arrow-up
      11
      ·
      2 months ago

      This, and take physical notes, or at least make notes in something you can refer to on a screen that is not your phone, ideally another desktop or a laptop computer with internet access in case something unexpected comes up during the physical install and you need to search the archwiki or the wider internet.

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 months ago

          I mean, its useful regardless of the OS. When my Windows install broke and a system image restore got botched it was useful having a laptop.

  • Pumpkin Escobar@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 months ago
    • archinstall is one of the better/best distro installs around - it just does what it says it will and is pretty intuitive
    • LUKS encryption is easy to set up in archinstall - strongly recommend encrypting your root partition if you have anything remotely sensitive on your system
    • If you do use encryption but don’t like typing the unlock password every reboot, you can use tpm to unlock - yes, this is less secure than requiring the unlock password every time you reboot, but LUKS + TPM unlock is still MUCH better than an unencrypted drive just sitting there
    • sbctl is a good tool for secure boot - If you want to get more secure, locking down bios with an admin password, turning on secure boot, sbctl works really well and is pretty easy to use. I would suggest reading up to understand what it’s doing before just installing/configuring/using it
    • yay is a solid AUR helper / pacman wrapper
    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      archinstall is still unstable as hell. I find that my best bet is to:

      1. Configure everything exactly like I want through the dialog
      2. Save the user and system preferences to their respective JSONs
      3. Mount a USB stick and copy the JSONs there
      4. Restart the archinstall process by loading from the JSONs, then hit commit
      5. When the above fails, restart the whole machine and jump to step 4, where it magically works
      • Pumpkin Escobar@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 months ago

        Ah, good to know. I haven’t really used that save configuration and reuse process, I just do the install directly at the end of configuring everything. But I can see the draw for using that, a shame it doesn’t seem to work that well.

  • liliumstar@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    14
    ·
    2 months ago

    I’ve been using Arch off and on for a long time, since it was horrible to install and updates did often break stuff. This is not the case now 🖖, and the Arch wiki is your friend.

    1. Consider using btrfs with automated snapshots using yabsnap. It includes a configurable pacman hook in case something goes awry. Also just nice to have snapshots in case you accidentally delete a file or something.

    2. Use paru, an AUR helper. Good for random things which may not be officially packaged. Expect to run into failures, and learn to diagnose them. Sometimes it’s just a new dependency the packager missed. For both paru and pacman, clean the cache once in a while or automatically, or things will get out of hand.

    3. Do the “manual” setup, at least the first time, so you have an idea what’s going on. Don’t forget to install essential stuff like iwd (if needed) when you do pacstrap, or else you might have to boot from live again to fix it. Once you’re done, take care to follow the important post install steps, like setting up a user with sudo, a firewall, sshd, etc.

    As for general setup, I’ve recently embraced systemd-networkd and systemd-resolved. Might be worth giving it a shot, since there is no default network manager like application. You can even convert all your wireguard client configs into networkd interfaces.

    Best practice: Keep a personal log of various tweaks and things you’ve configured, and set up automated backups (more of general guidance).

    Have fun!

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      Paru is a yay alternative. You can use either one. Just pointing this out since yay is mentioned in a lot of the other comments. I am not saying not to use paru. I am just pointing out that it is not something different. You can use paru instead of hay in any of the other comments in this thread. Or use yay instead of paru in this one.

  • Bonje@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    2 months ago
    • EndeavourOS is arch based with less hassle. Its more than good enough for most people. don’t get trapped by minimal install bs and other non-consequential opinionative approaches to software.
    • Select btrfs as your file system and use timeshift. If you fuck up or if your updates fuck something up. There are other ways of doing rollbacks and this is just what I became familiar with. I’ve used it two times in the past year, its worth it.
    • Bookmark the archwiki, 99% of the time the answer to the questions of ‘how to’ and ‘can i’ are in there
    • There are multiple DE’s. Pick what works best for you before you toss that bootable USB installer. You of course can switch later down the line, but experimenting now will save you config troubleshooting later, just stick to what feels/looks best. Look around on the web to see what appeals to your workflow. There are others like Cosmic and Wayland that are not included in the arch gui installer, in which case, follow the install procedures for the DE you want and remove the old ones to avoid config overlap.
    • Have Fun. If you are not, do something that is.
    • lambipapp@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 months ago

      I 2nd this wholeheartedly! Been using endeavourOS for years at this point! Before endeavourOS I was distro hoping the classics. I tried Ubuntu, fedora, popOS, Debian and way more throughout my time on linux. When I tried endeavour the first time I just stuck with it. It just worked, the updates are seamless and I just like get along with it.

    • Disonantezko@lemmy.sdf.org
      link
      fedilink
      arrow-up
      2
      ·
      2 months ago

      Wayland and Cosmic are not there yet for beginners, more like beta, watch videos from Brodie Robertson, I’ll wait half year at least to try that for newbies.

  • loo@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    2
    ·
    2 months ago

    Only update your system if you have some time on your hands afterwards, in case something breaks. Happened to me a few times before.

  • _____@lemm.ee
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    2 months ago

    The whole arch advantage (imo) is that you have a full understanding of what’s in your machine and how it works.

    As a beginner you won’t understand and that’s okay, but you should try different things (or don’t and just focus on what works for you) as long as the end result is you doing: pacman -Qe and going “hmm that makes sense”, and imo the undesired result is going “hmm what do these all do, why do I have 2000+ packages”

  • Corroded@leminal.space
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 months ago

    I didn’t read the documentation so I didn’t know you weren’t supposed to use sudo with yay.

    -Ss can be added to pacman to search for packages. Pretty useful if you don’t want to DuckDuckGo them every time.

    As for applications one neat one I don’t see recommended very often is xkill. You can use it to kill applications kind of like you would with the task manager in Windows. htop is probably a closer comparison to the task manager in general though.

    There are a lot of Arch-based distros that are incredibly easy to install if you want a very easy setup process that doesn’t involve a lot of terminal work.

      • Corroded@leminal.space
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        It does. It gives you this message

        -> Avoid running yay as root/sudo.

        I only ran Debian and Ubuntu based distros up until that point so I thought you always needed to install packages using sudo.

        I am pretty sure I ignored the warning initially because the first couple packages I tried to install with sudo and yay worked.

        This was a while ago.

    • LeFantome@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      You are better off using -Ss with yay than pacman. If you use pacman, it only searches the Arch repos. If you use yay, it also searches the AUR.

  • uiiiq@lemm.ee
    link
    fedilink
    arrow-up
    11
    ·
    2 months ago

    Use btrfs with snapshots. Verify you know how to boot into snapshot after a failed update and repair the system. This is the most important thing and lets you experiment much more freely.

  • Karcinogen@discuss.tchncs.de
    link
    fedilink
    arrow-up
    10
    ·
    2 months ago

    I wish I new how to easily install an AUR package manager when I first started.

    Step 1: go to the AUR and choose a package manager. I recommend paru, but there are plenty of others.

    Step 2: install git using pacman

    sudo pacman -S git 
    

    Step 3: copy the git clone URL for paru and pull it

    git clone https://aur.archlinux.org/paru.git
    

    Step 4: CD into the new directory

    cd paru
    

    Step 5: install paru

    makepkg -si
    

    Now when you find a package from the AUR you want, you can easily install it.

    paru -S [package]
    

    Also, when you update your system, you only need to run paru -Syu. You don’t need to run both pacman -Syu and paru -Syu.

        • azron@lemmy.ml
          link
          fedilink
          arrow-up
          3
          arrow-down
          2
          ·
          2 months ago

          Rust based is not a feature it is a slogan. Yay is the defacto standard and also actively developed. That being said use whatever works for you and AUR.

          • 9tr6gyp3@lemmy.world
            link
            fedilink
            arrow-up
            6
            ·
            2 months ago

            Pacman is the only standard package manager for Arch. Arch recommends against using third party package managers, including Yay.

            • Corroded@leminal.space
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 months ago

              Is there a chance that Arch says that so they don’t have to take on the responsibility of endorsing yay while also acknowledging its prevalence?

              Like if Nintendo made a statement saying they recommend against third party mods or repairs that deal with joycon stick drift because they don’t want to be held accountable or contacted about issues consumers run into a result of them.

              • thevoidzero@lemmy.world
                link
                fedilink
                arrow-up
                3
                ·
                2 months ago

                My understanding is this:

                It’s just the principle of AUR wrappers. Yes they are very useful, but anyone and their uncle can put a package in AUR name it whatever they want as long as it’s not taken. AUR wrapper makes it easier to install things without knowing much, but manually searching for something, finding it, and installing it involves conscious choices. Arch cannot be responsible for people installing malware from a software they recommended, that’s why it’s kept this way intensionally.

                Imagine if yay/paru came with the os, or could be installed from pacman, then people would just recommend doing that to new users and then they might just install whatever and break the system a lot more.

            • LeFantome@programming.dev
              link
              fedilink
              arrow-up
              1
              ·
              2 months ago

              Ya. Ok. But pacman does not let you use the AUR. Using the AUR is one did the primary reasons to choose Arch.

              So, if you want to use the AUR, you need to use something like yay or paru. And, if you do, you no longer need to use pacman.

              To be clear to the newbies, pacman -Syu updates your entire system ( except packages from the AUR ). yay -Syu updates your entire system, including packages from the AUR.

              If you just ran yay -Syu, running pacman -Syu will report that there is “nothing to do” since your system will already be up to date.

              The same is true if you sub paru for yay above.

              • 9tr6gyp3@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                2 months ago

                You definitely do not need to use any pacman wrappers to build a package from the AUR. Those tools make it easy, yes, but are not required.

                Building a package can be as simple as

                • git clone AURpackagehere
                • cd AURpackagehere
                • makepkg -si
  • onlooker@lemmy.ml
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    2 months ago

    Do yourself a favour and install it on a virtual machine first. Screwing up an install on Arch is frighteningly easy. The Arch Wiki is your friend, use it. Also, read the installation instructions before you begin the installation, not during. If this sounds like too much of a headache (understandably so), then give EndeavourOS a whirl.

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 months ago

      It’s all automated now, it’s pretty hard to mess up a standard install. It’s not like the good old days.

      • onlooker@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        Are you talking about archinstall or have they actually automated the default installation method?

      • thevoidzero@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        That’s what I thought, but then when arch install fcks up it seems even harder to fix. I ised it because I have been getting new computers so it was easier to run run it. It messed up the SSD in a way, and trying to run it again wouldn’t work because it can’t find the SSD that it did something to. It took a while to manually fix all that.

        Also idk why arch install doesn’t have easy way to partition home and root, the default suggestions’s root is too small, changing it requires manually making each partition, just take an integer(%) allocated for home and calculate from there.

        • PancakeBrock@lemmy.zip
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 months ago

          You boot into your installation media and type archinstall then pick the options you want. You can do it the manual way but Arch install works great.

            • PancakeBrock@lemmy.zip
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 months ago

              The past 2 years I’ve only been using Arch with KDE plasma. It was the one that clicked with me and got me to stay using Linux. Before I ran pop! Os for a little while and didn’t really like it or gnome then I went back to windows.