A random guy telling the world how to install some new software. An illustration.
NVIDIA's Jenson Hwang launches NemoClaw to the OpenClaw community

YouTube
@bagder I couldn't find it on your e-log, but have you ever written about piping into bash, since it's such a common occurance?
@bagder lol. He really says OpenClaw would be more popular than Linux, because it has more GitHub stars than the copy of the Linux repo on GitHub. ๐Ÿ˜†

@bagder

I really like curl and have used it extensively over the years in various projects.

This installation method has been a cancer on tech for like 15 years now.

@bagder Please let this be a bad joke.

Please!
โ€‹โ€‹

@hannah @bagder

It's software to run code you never saw on your machine, migth as well start during installation

@bagder we should take that to the next level with a sh: protocol handler + QR codes!

https://codeberg.org/sjmulder/sh-handler

sh-handler

Combine the ease of QR codes with the power of curl|bash

Codeberg.org

@sjmulder @bagder

Brilliant, I like it! I think you can raise quite a lot of venture capital with that! No more typos, makes executing stuff from the web more secure!

(/s)

@bagder at least itโ€™s not โ€˜sudo bashโ€™?

Not that that makes me feel much better.

@bagder at least it's not being piped to some llm, i guess

install.md is horrifying

(not that i think the software itself is good or should be used. all genai shit is bad and should be shunned)

@bagder I always think of the pipegreppers union art when I see this in install docs

https://pipegrep.sh/

(edited to add a white background, this was unreadable before haha)

@bagder It still feels weird we decided it was okay to just run a bash script off the web without looking at it.

At least if the URL gets compromised it can only affect your own files.

@fds @bagder

I think the likelihood of nvidia.com getting compromised is low, but yeah this isn't great

I am not sure we decided itโ€™s okay. I surely wouldnโ€™t do it.
@kasperd Not everyone but imo it is definitely far more popular than it should be.

@fds @bagder the same folks who think this isn't a problem wouldn't think to (or perhaps be capable of) looking at and evaluating the script's safety.

Those who do think it's a problem are the same that would just grab the URL itself and go look.

You can lead a horse to water...

@fds @bagder not convinced it's any worse than downloading a tarball, unpacking it, and running the install script inside it locally
@fishidwardrobe @fds @bagder It is worse, as it might leave no trace. But regular users should do neither.
@uecker @fds @bagder what should they do, then? avoid running any programs they download?
@fishidwardrobe @fds @bagder Download programs from a trusted repository using a package manager.
@uecker @fds @bagder i'm sure the folks running your distro have checked every package themselves, so, sure.
@fishidwardrobe @fds @bagder It dramatically reduces the risk because of various checks being done. The XY utils backdoor was found by a debian developer. But there is also another benefit: if there is a compromise, it can be traced reliably.
@bagder 100 billion dollar black jacket right there. You should ask for one.
@bagder
Netflix and Chill?
No.
Meet Curl and Bash
@bagder i want an install.sh for curl which is downloadable with curl.
@bagder people running this kind of software are exactly the kind of people who would run a curl-pipe-bash, so it checks out.
@karl @bagder haha you gotta live life on the edge sometimes ๐Ÿ˜

@bagder Being a UNIX (these days, linux because that's the flow) guy ... NVIDIA driver blobs can kiss my skinny white butt. Was over it 20 years ago.

WHy do you hurt yourselves. I have emergency numbers for people that like to cut themselves and I don't actually see a divergence. This scares me. I've been upside down at Mach1+ and jumped out of perfectly good helos

@bagder have you considered making a โ€”install alias for -fsSL? ;)
@bagder People do this so much, I'm surprised there's not a burl alias like wcurl
@bagder
I feel like there's something really funny you could do here
I love blindly piping random shell scripts into bash. I'm surprised random guy didn't ask to use sudo too.

cc: @[email protected]
@bagder Can confirm, this is the standard way to install software now.
@SilverOwl @bagder Beware, yesterday I saw `llm "how to install XXX" | sudo bash`
@bagder Joke's on you: wget -qO- https://curl.se/install-curl.sh | sudo bash
@bagder if curl needs another command-line option, how about something like --run
@bagder The longer I look at this image, the worse it gets.
@mrgrumpymonkey @bagder It irritates me. That man is majorly dis-invited from my #linux geek club. With any luck the Unix gods will smite him.
@gtsadmin @bagder What I'd be curious of, is how many in the audience actually know what was being shown.
@bagder they are advanced in cyber cyber security: they have moved the "sudo" bit from the command line into the downloaded script ๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ
@slink @bagder There isn't actually a single sudo in the script either. It does however install both nodejs and ollama with the same curl | bash method, and I haven't looked at those.
@Varpie @bagder yeah, i did not actually check, thx
@bagder I don't trust nvidia for hardware, even less for software.
@mmu_man @bagder

curl OK
bash OK
curl | bash NOK !
I mean, it could have been wget into zsh !
@bagder let's be thankful it doesn't have weird """ligatures"""...??
@bagder When you run it on my Mac, it crashes immediately. The UI version just hangs there saying it's loading! #funtimes
@nom @bagder The vibe slopped future we all want
rustup.rs - The Rust toolchain installer

The Rust toolchain installer

It's "Enterprise Ready" Daniel!!!
@bagder I don't see random guys name on https://curl.se/sponsors.html ๐Ÿค”
curl - Project Sponsors

@zhenech random guy probably thinks curl project should be happy about free advertisement.. ๐Ÿ™ƒ
@bagder
@bagder as a security engineer I can say: "AaaAaaAaaAaaaah"