Fork me on GitHub
#off-topic
<
2021-09-23
>
Stuart17:09:07

oh no. I just messed up with a rm -rf **.** command a rogue /. I realised and ctrl+C it pretty quick and most of what was displayed was "access is denied" but fuck

p-himik17:09:19

Heheh, yeah. zsh is quite handy in there. Not sure about *.*, but it will ask you to confirm if you use just *. Before I started using zsh, I once executed rm -rf Downloads/ * while in $HOME. Notice the accidental space in front of *. Fun times.

Alex Miller (Clojure team)17:09:04

I used to have a bash replacement for rm that would move files to the trash rather than delete

Stuart17:09:07

any tips on knowing if i've done any damage ? Do I just need to use the system and see whats broken?

Alex Miller (Clojure team)17:09:43

well I'm sure you can just restore from your backup RIGHT!?

👀 2
p-himik17:09:03

If you never fiddled with permissions and you weren't a superuser while executing rm, the system itself should be fine.

Ben Sless17:09:32

-i and moving to trash are good options

Ben Sless18:09:00

Sadly there's no "dry-run" option

scriptor18:09:52

I thought modern systems made you pass the --no-preserve-root flag to delete /

👍 1
Max19:09:45

> I used to have a bash replacement for rm that would move files to the trash rather than delete I do this with the trash brew package and alias rm=trash

teodorlu14:09:04

Thanks - I'll have to pay closer attention to #missionary.

Stuart19:09:24

I run Ubuntu on my main computer at home. Setting it up was a bit annoying as I have an old graphics card. I had to fiddle with installing NVidia drivers. and until I got those Nvidia drivers installed it would keep hard locking the whole system. The only way to recover was to power it off. I want to update to the latest Ubuntu from my older version, does anyone know if I do if I will have the same graphics card issue with me racing to fix the graphics drivers before it freezes? Or will it maybe keep my current graphics card drivers and settings?

Ben Sless19:09:30

can I ask what model of card?

William Edmisten19:09:43

I've had success running Ubuntu 20 LTS with an nvidia card, but it's a relatively modern card

p-himik19:09:58

> with me racing to fix the graphics drivers before it freezes? Well, you should perhaps be doing that from the root shell, without loading any drivers. Or do you mean that even that shell was freezing?

Ben Sless19:09:18

Regarding my own experience, Pop with RTX980 works with zero issues

Stuart19:09:41

Its an Nviida 760gtx

Stuart19:09:04

I didnt know I could fiddle with graphics card stuff from a shell. I was trying to use the proprietary drivers UI

Stuart19:09:19

but often it would only stay up for 2 - 3 mins before freezing

Stuart19:09:50

sometimes it would start up, show the login screen and then freeze and i couldn't even log in

p-himik19:09:50

Don't use high-level UI to fix broken graphics drivers. You wouldn't drive on a flat tire all the way to a car service. You can do everything you need via shell, although the learning curve is a tad more steep than for the relevant UI.

Ben Sless19:09:51

From looking at nvidia's website, your model should be supported

Ben Sless19:09:59

where did you install the drivers from?

Stuart19:09:17

In Unity > Software and Updates > Additional Drivers

Stuart19:09:20

and allowed proprietary drivers

Stuart19:09:05

Maybe at this point I should look at just getting a new system, one that comes packaged with some linux so I know all the hardware is ok

William Edmisten19:09:52

That guide is for Ubuntu 20 but I think it should be similar in fairly recent earlier versions

luizmineo19:09:12

The upgrade should update your kernel and nvidia driver as well. This kind of problem usually is caused by the nouveau driver, which you can disable with a property in grub, until you install the proprietary driver. Also, you can use the ubuntu-drivers cmd to auto install proprietary drivers

Stuart19:09:23

I used to run Debian, I had the same issue setting that up, it would hard freeze a lot till I fixed gfx card issues. Upgrading to the lates Debian would start hard locking again soon after boot and I never manged to get it stay up long enough to fix the drivers. Im worried upgrading Ubuntu will result in the same