linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

stinerman, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@stinerman@midwest.social avatar

I’ve literally done the rm -rf / thing. I thought I was in a different subdirectory, but I was in / and did rm -rf .

When it didn’t return after half a second, I looked at the command again and hit CTRL+C about 20 times in the span of 3 seconds.

I had to rebuild the install, but luckily didn’t lose anything in /home.

thayer, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes

I appreciate the writeup and that you’ve taken the time to post about it here, however I am 100% leery of managing remote access or credentials using closed source software. I’ll definitely keep an eye on the project, but it’s a hard pass for me until the app is fully open source.

crschnick,

Alright that is understandable, everyone has a different attitude towards that matter.

maryjayjay,

Anyone who isn’t an idiot agrees with the person you’re replying to

tigerjerusalem, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

sudo apt upgrade -y

To this day I can’t figure out why it killed the GUI and all terminal commands on a Mint install…

Menteros,

I stay away from apt. apt-update for me has never messed like apt has.

Mayonnaise,

I’m relatively new to Mint, but I thought that sudo apt update just checked for updates and sudo apt upgrade -y was for actually installing the updates. I don’t see why that would break it though.

tigerjerusalem,

You’re right, I messed up - I always switch between the two, because “update” makes more sense in my head. I fixed the text.

smitten, in XPipe status update: New scripting system, advanced SSH support, performance improvements, and many bug fixes

Wow, yep. Totally trying this out. Currently I have a directory full of scripts to ssh into each of my servers. Kinda want to get rid of that.

Goun,

Interesting, do you mind giving an example on what those scripts do? Why not just put the hosts into .ssh/config ?

smitten,

Most of them are literally just “ssh name@host”, some of them open ssh proxies (I have a weird network setup)

Keep in mind, I didn’t search for any better way to do this before doing it.

devnull406, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Connect via ssh to my home server from work

Using a cli torrent client to download stuff

Decide I need a VPN.

Install VPN again from CLI

Run VPN which disconnects my ssh connection

Even when I get home, the server is headless so I have to locate a keyboard and mouse before I can fix.

fl42v,

Dang, similar stuff happened to me on nixos. Had to instruct one of the relatives on how to reboot the machine and choose a previous generation in the boitloader 🤣

AapoL, in Error when installing AMDGPU drivers on Fedora

Ok, update. I removed some improper repos that the amdgpu-install had installed and I got things mostly working. Only problem is that rendering in Blender on GPU crashes it and I can’t seem to get good logs for the problem. I will try to get some logs and post them here.

genie, (edited ) in What I've Learned This Week

Thanks for putting this out for public benefit! I haven’t messed around with MacOS much but the things you’ve mentioned are nice to know.

I believe that’s a shell/bash standard variable, but I need to learn where it came from and how it works

You may know this already, but I’ve found the man (as in manual) utility to be one of the most useful things in GNU/Linux user space. I don’t have much insight into ‘${file##*/}’ off the cuff, but I can tell you there’s manual entries for file, sh, and bash that may help you track it down.


<span style="font-style:italic;color:#969896;"># simply type man [some-command]
</span><span style="color:#323232;">man file
</span><span style="color:#323232;">man sh
</span><span style="color:#323232;">man bash
</span><span style="color:#323232;">man man </span><span style="font-style:italic;color:#969896;"># very useful for getting started!
</span>

Manpages are local to your system so they’re extremely fast to pull up and searchable!

Here’s some online info on man if you’re interested:

(30 sec read) Unix stack exchange tips & tricks

(5 min read) It’s FOSS writeup

harsh3466,

Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down.

genie,

It’s definitely a skill that I haven’t mastered either! That being said I think it’s one of the pillars of being a bonafide “super user” and I’d like to set there one day :)

Maybe I’ll take inspiration from this post and write something up about what I learn in the future about manpages.

Cheers and happy tinkering!

harsh3466,

I agree, and I’d like to be there as well so that I can easily read and understand a man page.

ABeeinSpace, (edited ) in What I've Learned This Week

This is really great info! I never knew Multipass existed, thanks for sharing.

For macOS, Homebrew can be used to selectively replace certain parts of the coreutils with the GNU versions

Edit: On reviewing the script you mentioned, that’s exactly what it does. It uses Homebrew to replace all the coreutils in one go

harsh3466,

You’re welcome! I stumbled across Multipass when I was looking for virtual machine options for the m1 mac mini I’m working on. I specifically was trying to get away from using the mac coreutils for a consistent syntax experience, and Multipass has been working perfectly for that.

It was only after I’d been using Multipass already that I stumbled across that script, and planned to take a look at it to possibly implement on my machine. I didn’t realize that Homebrew allowed for replacing the coreutils with the GNU versions. Another thing learned!

AapoL, in Error when installing AMDGPU drivers on Fedora

Here’s also the dnf log:


<span style="color:#323232;">[aapo@aapo-fedora ~]$ sudo dnf install amdgpu-core
</span><span style="color:#323232;">AMDGPU 5.4 repository                           588  B/s | 548  B     00:00    
</span><span style="color:#323232;">Errors during downloading metadata for repository 'amdgpu':
</span><span style="color:#323232;">  - Status code: 404 for https://repo.radeon.com/amdgpu/5.4/rhel//main/x86_64/repodata/repomd.xml (IP: 13.82.220.49)
</span><span style="color:#323232;">Error: Failed to download metadata for repo 'amdgpu': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
</span><span style="color:#323232;">Ignoring repositories: amdgpu
</span><span style="color:#323232;">Last metadata expiration check: 0:00:43 ago on Tue 23 Jan 2024 04:14:52 PM EET.
</span><span style="color:#323232;">Dependencies resolved.
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;"> Package     Arch   Version
</span><span style="color:#323232;">                         Repository                                        Size
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;">Installing:
</span><span style="color:#323232;"> amdgpu-core noarch 1:5.4.50400-1510348.el8
</span><span style="color:#323232;">                         repo.radeon.com_amdgpu_5.4_rhel_8.7_main_x86_64_ 8.1 k
</span><span style="color:#323232;">
</span><span style="color:#323232;">Transaction Summary
</span><span style="color:#323232;">================================================================================
</span><span style="color:#323232;">Install  1 Package
</span><span style="color:#323232;">
</span><span style="color:#323232;">Total download size: 8.1 k
</span><span style="color:#323232;">Installed size: 0  
</span><span style="color:#323232;">Is this ok [y/N]: y
</span><span style="color:#323232;">Downloading Packages:
</span><span style="color:#323232;">amdgpu-core-5.4.50400-1510348.el8.noarch.rpm     19 kB/s | 8.1 kB     00:00    
</span><span style="color:#323232;">--------------------------------------------------------------------------------
</span><span style="color:#323232;">Total                                            19 kB/s | 8.1 kB     00:00     
</span><span style="color:#323232;">Running transaction check
</span><span style="color:#323232;">Transaction check succeeded.
</span><span style="color:#323232;">Running transaction test
</span><span style="color:#323232;">Transaction test succeeded.
</span><span style="color:#323232;">Running transaction
</span><span style="color:#323232;">  Preparing        :                                                        1/1 
</span><span style="color:#323232;">  Running scriptlet: amdgpu-core-1:5.4.50400-1510348.el8.noarch             1/1 
</span><span style="color:#323232;">ERROR: This package can only be installed on EL8.
</span><span style="color:#323232;">error: %prein(amdgpu-core-1:5.4.50400-1510348.el8.noarch) scriptlet failed, exit status 1
</span><span style="color:#323232;">
</span><span style="color:#323232;">Error in PREIN scriptlet in rpm package amdgpu-core
</span><span style="color:#323232;">  Verifying        : amdgpu-core-1:5.4.50400-1510348.el8.noarch             1/1 
</span><span style="color:#323232;">
</span><span style="color:#323232;">Failed:
</span><span style="color:#323232;">  amdgpu-core-1:5.4.50400-1510348.el8.noarch                                    
</span><span style="color:#323232;">
</span><span style="color:#323232;">Error: Transaction failed
</span><span style="color:#323232;">[aapo@aapo-fedora ~]$ 
</span>
KingThrillgore, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@KingThrillgore@lemmy.ml avatar

I had rEFInd and GRUB installed entirely by accident, and a botched update for Arch hosed my entire EFI setup making it impossible to boot Linux or Windows w/o a LiveCD. Thankfully it self repaired once I nuked rEFInd. I ended up going back to Ubuntu, but I hate snaps. I still would recommend Arch for most Linux users who want the power windows.

AapoL, in Error when installing AMDGPU drivers on Fedora

Also, if I basically remove everything, I will get this error:

`[aapo@aapo-fedora ~]$ amdgpu-install [sudo] password for aapo: ROCm 5.4 repository 154 kB/s | 208 kB 00:01
AMDGPU 5.4 repository 699 B/s | 548 B 00:00
Errors during downloading metadata for repository ‘amdgpu’:

  • Status code: 404 for repo.radeon.com/amdgpu/5.4/rhel//…/repomd.xml (IP: 13.82.220.49) Error: Failed to download metadata for repo ‘amdgpu’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried Ignoring repositories: amdgpu Last metadata expiration check: 0:00:01 ago on Tue 23 Jan 2024 03:47:14 PM EET. Package amdgpu-lib-1:5.4.50400-1510348.el8.x86_64 is already installed. Package amdgpu-dkms-1:5.18.13.50400-1510348.el8.noarch is already installed. Error: Problem: package rocm-hip-runtime-5.4.0.50400-72.el8.x86_64 from rocm requires rocminfo = 1.0.0.50400-72.el8, but none of the providers can be installed
  • conflicting requests
  • nothing provides /usr/libexec/platform-python needed by rocminfo-1.0.0.50400-72.el8.x86_64 from rocm (try to add ‘–skip-broken’ to skip uninstallable packages) [aapo@aapo-fedora ~]$ `
flashgnash, in Bazzite 2.2.0 has been released - now with the fsync kernel and HDR in game mode

I’m kinda tempted to switch my PC to bazzite from NixOS, have to imagine life would be easier that way

I’ve got so used to NixOS now though that the idea of switching off it is pretty unpleasant

quantumfoam, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

I once did an apt-get upgrade in the middle of when debian testing was recompiling all packages and moving to a new gcc version. I get it, using testing invites stuff like this. But come on, there should at least be a way to warn people beforehand.

fl42v,

That’s kinda weird: shouldn’t they recompile everything first and then replace repos’ contents?

xavier666,

Me: I want to change my car tire

Car: Hey, your car is going at 60 mph now. Do you want to change your tire now?

Me: Is it not possible?

Car: It’s your car, anything is possible with enough effort. As per Google one guy managed to change a tire of a bullock cart while it was moving at 2 mph.

Me: Sounds good. Let’s gooo!

This is the experience for Linux tinkerers.

quantumfoam,

In my case it was:

Me: I want to change my car tire, and i naturally assume we are parked safely in the garage. This is a routine maintenance thing after all.

Car: Sure thing! bork

Me: Umm, why are wrapped around a tree?

Car: Well, we were currently going 60mph, and we posted about it on this website.

Me: Why is there no warning that tells me that doing maintenance now will crash my car?

Car: Well like i said, there is, and it is on this website you should have gone to.

xavier666,

and we posted about it on this website.

In my personal experience, these sort of things happen rarely, unless you are using some sort of rolling-release distribution. For all my mission-critical docker apps, I wait for at least a week after a major update has been pushed and check the dev website.

DerpyPlayz18, in what's a normie KDE distro?

Fedora KDE spin. One of the easiest to use distros without all of the annoyances of Ubuntu (e.g. snaps).

BradleyUffner, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

One time I rebooted. The system never recovered.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #