• @[email protected]
      link
      fedilink
      02 months ago

      make sure to add --no-preserved-root to make sure to update all the English libraries too so you can make sure only freedom fries are respected.

    • @[email protected]
      link
      fedilink
      English
      9
      edit-2
      2 months ago

      alias trash-put from trash-cli in both sudo and user.

      myrm() {
        trash-put "$@"
      }
      alias rm="myrm"
      

      This has saved my ass so many times. Especially when typing “rm * .png” instead of “rm *.png”

      Can restore the files using the cli or from system recycling bin.

      The alias to rm is probably not best. So getting use to using another name is probably best. But I’m never had a problem with it.

      • @[email protected]
        link
        fedilink
        12 months ago

        Or just use snapshots. If you are into aliases make an alias for rm to make a snapshot before deleting something.

      • @[email protected]
        link
        fedilink
        English
        12 months ago

        I’ve never ran into any issues from using rm but I like this idea and will be using it as I only see positives

        • @[email protected]
          link
          fedilink
          English
          22 months ago

          Downsides can be inconsistent behavior. As with any alias it’s not meant to be anything but a replacement in your shell. Scripts/SSH etc.

          Also, you gotta remember to empty your trash. :)

    • SinkingLotus
      link
      fedilink
      English
      442 months ago

      I mean… You’re not wrong. If there’s a French language pack on the system, it will remove it.

      Tap for spoiler

      Along with everything else.

      • Mensh123
        link
        fedilink
        72 months ago

        Did you actually run it?

        In this case, I hope you had a backup. Boot a live system to see if there’s anything left. Back that up, then reinstall.

  • qyron
    link
    fedilink
    112 months ago

    I once tried to delete something I was not supposed to and the system was quite adamant on advising against it. The system was to be reinstalled so I was just trying things.

    It’s been a while but I recall the system giving me a first warning that my command woud delete X, Y and Z, which could render the system inoperable.

    Then it questioned me if I was sure I wanted to proceed with the operation.

    The final warning was a sum of the potential damage I would do to the system and that it would be irreversible, without a full system install.

    So, three strikes.

    • Elvith Ma'for
      cake
      link
      fedilink
      42 months ago

      Have you tried to add * to the path? No more nagging about that pesky missing safety parameter…

      rm -fr /*
      

      Bonus points of you do:

      rm -fr $ACCIDENTIALLY_UNDEFINED_VAR/*
      
      • @[email protected]
        link
        fedilink
        12 months ago

        Well, technically those aren’t the same command (but works well enough if you’re trying to render a system unusable).

        rm -rf /* would not remove /.secret. It rm -rf / would

  • @[email protected]
    link
    fedilink
    English
    92 months ago

    While great, we should also have some safe guards so normies can use linux without destroying their entire system

  • Cassa
    link
    fedilink
    252 months ago

    I just uninstalled edge on my laptop (still windows for work/study compatability)

    EU laws!

  • @[email protected]
    link
    fedilink
    3
    edit-2
    2 months ago

    Android: screenshot dir? Use DIRECTORY_PICTURES env variable. Changing either? Lol, eat dirt pleb.

  • @[email protected]
    link
    fedilink
    62 months ago

    As a user, I hate when an OS gets in my way. Or insists that there is one right way to do something.

    As the tech support guy in my family, I’m grateful that windows denies permission, has big guard rails, and forces you to do updates.

    • @[email protected]
      link
      fedilink
      English
      12 months ago

      I suppose immutable systems are ment to stop the end user from bugging out the system but even regular Linux distrios need to assume that there users are incompetent cus I am.

      • anguo
        link
        fedilink
        12 months ago

        I managed to destroy my immutable linux install by resizing the OS partition while it was running.

        • Ziglin (it/they)
          link
          fedilink
          English
          12 months ago

          I would argue that that mistake is indeed on you and the possibility of failure likely predictable. (At least if you were shrinking it)

          • anguo
            link
            fedilink
            1
            edit-2
            2 months ago

            I was actually trying to increase it, by shrinking the windows partition. It feels like Universal Blue is a little weird in its handling of grub, and from what I understand, I wasn’t supposed to be dual-booting it on the same disk to begin with.

            Edit: But yes, I take full responsibility for that blunder.

    • @[email protected]
      link
      fedilink
      English
      92 months ago

      Bruh. For how many years did Windows make every luddite, child, and grandparent default Administrator with full, unprompted access to install viruses, run scripts, and delete system files?

    • @[email protected]
      link
      fedilink
      English
      7
      edit-2
      2 months ago

      Nah. Fuck forced updates. Only time I’m forced to use windows is for work.

      I have to play the “low battery” game when it starts notifying me during work. Unplugging and repowering the laptop right below 10% so it won’t restart and disconnect my VM and SSH sessions I’m using for work.

      I don’t care what anyone says. Updates that can’t have a forever “give me 1 more hour” indefinitely are just going to destroy work.

      Suddenly restarting in the middle of someone working is just awful design. I don’t care how many “warnings” there are.

      I’m connected to a remote session and doing work. If you restart my computer I could lose my work. The OS is not some self contained thing you can always save the state in.

      • @[email protected]
        link
        fedilink
        English
        6
        edit-2
        2 months ago

        Unplugging and repowering the laptop right below 10% so it won’t restart and disconnect my VM and SSH sessions I’m using for work.

        For SSH, assuming that the remote system is Linux, run tmux on the remote system and do your work in that. If your SSH connection gets killed off, you just ssh back in and tmux attach to your old tmux session.

  • Agosagror
    link
    fedilink
    English
    32 months ago

    I did this once by accident, I deleted every file that had KDE as a dependency recursively. As well as every file that KDE listed as a dependency, recursively.

    Lesson learnt

    • @[email protected]OP
      link
      fedilink
      English
      52 months ago

      You can’t kill windows with windows but you can kill Linux with Linux. Remember that.

      • @[email protected]
        link
        fedilink
        22 months ago

        You can definitely kill window with windows,it’s just done through the GUI and it’s a messy operation, like killing a whale with a chainsaw.

    • @[email protected]
      link
      fedilink
      5
      edit-2
      2 months ago
      E: Removing essential system-critical packages is not permitted. This might break the system.
      

      You can still do it if you really want, but even Linux rightly has some protections against breaking your system.

      • KubeRoot
        link
        fedilink
        English
        112 months ago

        I do want to clarify: it’s not Linux itself, but specific distributions (or rather their package managers). As far as I know, Arch’s pacman would do nothing to stop me 🥰

        • @[email protected]
          link
          fedilink
          32 months ago

          True, Linux applications (e.g. apt, dnf, pip, but also rm, sudo, and many more) would be more precise.

          For Arch, it’s probably not so easy to define “essential” packages, as it, for example, supports many different bootloaders. It is of course also a question of distro philosophy and target audience. Personally, I’ve noticed that “rm -r” as root prompts for every file on RHEL but does not on Arch…

        • @[email protected]
          link
          fedilink
          12 months ago

          Yeah, swapped out grub for systemd-init on a running Arch system not too long ago. Arch is cool with it. Be sure not to make any really bad typos while you’ve not got a boot manager, of course.

    • KubeRoot
      link
      fedilink
      English
      12 months ago

      I might be wrong, but I think that actually wouldn’t do anything, because grub is installed by the tooling from the package, not the package itself?

        • KubeRoot
          link
          fedilink
          English
          22 months ago

          I’m tempted, though I use rEFInd not grub, but fixing any damage should be easy with a live image handy…

            • KubeRoot
              link
              fedilink
              English
              4
              edit-2
              2 months ago

              Eh, I’ve previously fucked up my bootloader, all you need to do to fix it is boot up a live image, mount your root partition, arch-chroot into it, then follow normal steps to set the bootloader back up - it’s not scary if you know what you’re doing, just time-consuming

  • @[email protected]
    link
    fedilink
    82 months ago

    I once forgot to install the Linux package when I was installing Arch on a system. Linux even let’s you not use Linux, if you like.

    It didn’t boot.

  • @[email protected]
    link
    fedilink
    English
    232 months ago

    accidentally deleted every dependency VLC requires instead of deleting VLC. Absolutely recked EVERYTHING on my PC.

    I deserve it for trying to remove the best video player 😔