News for hackers. Stuff that matters.
Re:Micro – a modern and intuitive terminal-based text editor by walrus01 on Saturday November 06, 2021 @01:57PM (#29132314)
This looks great as a software project. And a good alternative to Nano.

But from the website: "curl https://getmic.ro | bash"

NO!

We need to stop getting people comfortable with the idea of just curling random stuff into their shell.

Even worse is software that suggests you sudo curl it into bash. What could possibly go wrong?

Download and build it yourself. Or download and install a packaged .deb or .rpm or whatever is the equivalent for your platform.

Do not just blindly curl into your shell things coming from people you don't know and trust to the level that they are personal friends and you would loan them your house keys or your car.

Re:Micro – a modern and intuitive terminal-based text editor by Meekro on Saturday November 06, 2021 @02:11PM (#29132433)
Why is this more dangerous than installing a deb, which can also run arbitrary code as root?
Re:Micro – a modern and intuitive terminal-based text editor by walrus01 on Saturday November 06, 2021 @02:13PM (#29132457)
a .deb at least went through some cursory level of examination by the people who downloaded the source, built it and are authorized by the debian project to submit new .deb files to the debian package servers.

not just any random person can submit a .deb and have it go live on the gpg-key authenticated debian mirrors.

https://wiki.debian.org/Packaging

https://www.debian.org/doc/manuals/debmake-doc/index.en.html

curl into bash can be as quick as "ooh look shiny new thing on website, let's copy/paste this string of text into my shell"

Re:Micro – a modern and intuitive terminal-based text editor by Meekro on Saturday November 06, 2021 @02:20PM (#29132524)
I agree that debs that were audited and distributed in the package manager are better in that way. I guess my objection is that "curl https://getmic.ro | bash" often gets a hostile reaction here on HN whereas "wget https://github.com/zyedidia/micro/releases/download/v2.0.10/... && dpkg -i micro-2.0.10-amd64.deb" does not.
Re:Micro – a modern and intuitive terminal-based text editor by bscphil on Saturday November 06, 2021 @06:37PM (#29134477)
The latter absolutely should get just as hostile a reaction. The only thing it provides you over the former is that it at least guarantees you that the author went to the trouble of creating a deb.

Actually, it should probably get even more hostile a reaction, since installing it that way usually means you won't get any updates for it. If you absolutely must install software from a (trusted) source other than your distribution, adding a source and then using `apt` is the way to go.

Re:Micro – a modern and intuitive terminal-based text editor by selfhoster11 on Saturday November 06, 2021 @06:13PM (#29134299)
If you need to install from the author's site, that means that there is no Deb available in the official repos, or that it's outdated. In both cases, you end up installing something that the author compiled.
Re:Micro – a modern and intuitive terminal-based text editor by qbasic_forever on Saturday November 06, 2021 @05:58PM (#29134184)
The reality is you need to install a random PPA or download a random deb from the author's website, github, etc. because the debian release is woefully out of date. So you're back to installing random binaries again.
Re:Micro – a modern and intuitive terminal-based text editor by bscphil on Saturday November 06, 2021 @06:38PM (#29134487)
If you need the latest available versions of the software you use, you should probably use a distribution that has that as a goal. Debian is built with the intention of providing stability, under the assumption that most of its users can afford to go a couple of years without feature updates in the software they use.
Re:Micro – a modern and intuitive terminal-based text editor by anlar on Sunday November 07, 2021 @11:13PM (#29146080)
It is more about streamlined process of package management to which Linux users are used. At least with deb/rpm package I understand where package stuff goes and how to uninstall it (of course, packager could mess up this with arbitrary install scripts).

And each 'curl https://' packager has its own idea where his software should be installed. And many of them are not even providing automated way to delete their application.

Re:Micro – a modern and intuitive terminal-based text editor by laurent123456 on Saturday November 06, 2021 @04:37PM (#29133611)
Since the script comes from GitHub repo, and the source is also on the repo, isn't building the source the same as getting the shell script and running it? I mean if one is compromised, the other might be compromised too.
Re:Micro – a modern and intuitive terminal-based text editor by nodesocket on Saturday November 06, 2021 @07:46PM (#29134938)
Literally every time somebody on HN has to write a comment shaming for curling into bash. We get it. You should download the script, inspect it, and then execute it.
Re:Micro – a modern and intuitive terminal-based text editor by jameskeim on Sunday November 07, 2021 @11:18PM (#29146094)
This is not the same as "sudo curl https://getsomefile.ro | bash". That is dangerous. While I understand your point, it's really not the same thing. This checks your system for its architecture and then downloads the correct binary to the directory you run it from. I know this because it's very easy to copy the URL, drop it in your browser and read the script. That's what I did before running it. And it is certainly safer than adding some random software repository which is what a lot of instructions suggest.
Re:Micro – a modern and intuitive terminal-based text editor by mekster on Sunday November 07, 2021 @01:11AM (#29136980)
I suppose using a package managers that random people can commit stuff into would be a no go for you too.

I think complaining about streamlined remote script execution is just being pedantic.

If you're so worried, wget to see and run.