I hear this is a rite of passage. I made it 4 weeks before I rekt all my shit (it was nvidia related). Where do I claim my sticker?

In all seriousness, now that I understand better these commands that I’ve been haphazardly throwing around, Id like to do a clean install. God knows what else Ive done to it. Can i just reinstall to my root partition and have my home partition work as expected?

  • JustPedro@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 month ago

    I overwrote my ssh private key with rsync. Fortunately I had special cron job running on my servers that updates ssh public keys on a server with ssh public keys from my github account, so I just had to upload a new key to the github and wait for a few hours.

  • MrsDoyle@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    My first adventure in Linux back in 2003. No idea how I achieved this, but from memory I just reinstalled and all was well.

  • inzen@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Spent half the day debugging wifi and kernel panic issues during boot. What finally fixed it was adding 5 sec delay to iwd service so wifi card firmware can do it’s thing (or at least I think thats why it helped).

    • No1@aussie.zone
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 month ago

      Ubuntu Additional Drivers offered me a choice between 11 different nvidia drivers.

      nouveau,and then a mishmash of nvidia versions, open, proprietary and server.

      Like OP was probably trying to do, had to manually remove the existing driver before you could select anything. All those options were greyed out because of a ‘manual installed driver’

      And guess what did this ‘manual installed driver’? Me? No. Ubuntu’s own uograde or running the command for ubuntu to select the ‘besr driver’.

      Fortunately, I’d been through nvidia hell several times, and knew how to manually perform the removal and install, but felt horrified for any new users that might stumble into this. With changing versions, it can be difficult when searching to work out which results are actually relevant, and which are obsolete.

      Always remember anything with a wildcard is your enemy. Triple check before you can trust it and hit enter.

      • Xanza@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 month ago

        You’re making it to be ridiculous when you just don’t understand the process…which is making it seem like it’s far more complicated that it actually is.

        You literally generally run a single command, like sudo ubuntu-drivers install which will choose the most current and best drivers for your GPU and install them… If you want to install a specific version then sudo ubuntu-drivers install nvidia:535. That’s it. If you’re on an Ubuntu version you should not be manually installing drivers via APT as there are literally applications whose sole purpose is to properly install gfx drivers…

        nouveau drivers come with Ubuntu.

        What you’ll have to do is purge the currently installed manual drivers and then use ubuntu-drivers to install your gfx drivers;

        sudo apt purge nvidia-driver-535 #or whatever your installed version is
        sudo apt autoremove
        
        • No1@aussie.zone
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          1 month ago

          You misunderstood what I wrote.

          I didn’t manually install anything.

          On my machine, Ubuntu upgrade/install AND sudo ubuntu-drivers install BOTH flag the drivers they installed as manually installed.

          Why do I want another driver? I found the open driver Ubuntu installed was flaky and provided substandard performance compared to the proprietary driver.

          When you go to the Additional Drivers, it says you have manually installed drivers and all options are greyed out.

          And I have my commands to remove drivers, and for reference, the commands you give won’t help a noob, and your steps are incomplete for earlier Ubuntu versions.

          • Xanza@lemm.ee
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 month ago

            I didn’t manually install anything.

            Like I said, you’re misrepresenting what’s happened here…

            You said specifically that you had to remove the existing driver, and those drivers don’t come pre-installed, nor do they get automatically installed. So you had to have installed them yourself for you to have to remove them to install the right driver. lol

            • No1@aussie.zone
              link
              fedilink
              arrow-up
              0
              ·
              edit-2
              1 month ago

              Reread my comment.

              “On my machine, Ubuntu upgrade/install AND sudo ubuntu-drivers install BOTH flag the drivers Ubuntu installed as manually installed.”

              That’s why I have to manually remove them to choose a better nvidia driver.

              I can’t say it any clearer

  • cmnybo@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    Reinstall using btrfs as the root files system and enable automatic snapshots. The data on your home partition will be fine, just make sure the installer doesn’t format it.

    • Ænima@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      I really need to learn how to do that. I installed SuSE something on my laptop and selected that file system but couldn’t find how to do the snapshot stuff. I’m sure I’m just dumb, but also exhausted, and mentally drained.

    • gerdesj@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      More technology does not fix daft manoeuvres! You do learn by your mistakes but keep the environment as simple as possible and add complexity later. Just like I didn’t back in the day! Mind you we lived in greyscale back then.

      I’ve been a Linux sysadmin (and I have a lot of customers) for around 25 years now and only during the last 18 months have I bothered with something funky like ZFS - Proxmox is why and that’s thanks to Broadcom deciding to fuck up VMware. I have done a lot of migrations and many more to follow. BTRFS is coming along but it is not for me quite yet.

      Backups are golden. Even a simple rsync of /home and /etc to a USB stick or two will do for starters. If you want a challenge then try getting the Veeam agent for Linux working, with secure boot. I suggest not yet (secure boot). However, Veeam do a community edition which is free for 10 workloads (VMs/agents). I recently recovered a HP laptop running Home Assistant to a Thinkpad and everything just worked apart from the network, which is pretty reasonable and it took about 20 minutes.

      So, I suggest that you get your backups in order first and then you can muck about with confidence. If you have some time and energy then do have a go at Gentoo and/or Arch. I ran Gentoo as my daily driver for some years and now I never fear anything IT related.

  • Quazatron@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Back the hell up. Seriously. I cannot overstate how peaceful life is when your ass is properly covered.

  • ch00f@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Migrating a 8 year old server to fresh new hardware. Can’t believe you can basically just rsync one computer to another

  • GravitySpoiled@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    Yes.

    I wouldn’t do it without tests and “enough” experience.

    I would backup first.

    Then I would install an atomic distro because I wouldn’t want to care about this ever again

  • pr06lefs@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Recently upgraded a laptop that had been on the shelf for 5 years up to latest version. Flawless one-step upgrade! nixos. Things never get in a tangle where installing and uninstalling packages leaves random artifacts behind. If you saved it to version control, you can return to a past system configuration and the only thing different is your home directory data.

    And yes, if you have a home partition and root partition, that’s exactly what you can do. That’s the beauty of that approach. But back it up!

  • paradox2011@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    I feel your pain 😅🫠

    Yeah, just to add another confirmation to the other comments, if you have a separate home partition you can reuse it with a new / partition and expect it to work fine. The only stuff that gets saved in your home folder is comfiguration files for your apps, along with whatever actual files you have stored. You can even swap distros (Ubuntu/Arch) and keep your home folder, though sometimes the config files and settings don’t translate perfectly.