I only discovered this recently, and it’s very handy.
Piping scripts directly to bash is a security risk. You can always download the scripts, inspect them and run locally if you so choose.
Didn’t the original creator of these scripts recently pass away, or am I misremembering?
Edit: Yeah he did, but I guess others have been able to keep the project going https://github.com/community-scripts/ProxmoxVE/discussions/237
Piping scripts directly to bash is a security risk. You can always download the scripts, inspect them and run locally if you so choose.
This entire trend needs to die. Package managers exist. Use them. Shun and shame sites that promote shell script installers.
Apples and oranges.
Package managers only install a package with defaults. These helper scripts are designed to take the user through a final config that isn’t provided by the package defaults.
No need to be elitist about such things.
EDIT: this particular repo is highly regarded in the community. It is very akin to the AUR. It’s not some haphazard collection of scripts.
Package managers only install a package with defaults. These helper scripts are designed to take the user through a final config that isn’t provided by the package defaults.
This is trivially solved by having a “setup” script that is also installed by the package manager.
No, package installers support configuration. Plenty of packages (e.g. postfix) prompt for configuration at install time.
Heellll no, the scripts are publically available to read over if you’re sketched out. They save you so much time to actually get to using the service. 98% of my homelab is from these same helper scripts too.
RIP tteck
You can install with package managers and include with it a helper script to setup the service. No big deal.
But can you spot the difference between
http://myservice.com/script.sh
andhttp://myserv1ce.com/script.sh
if you use a font that doesn’t make it clear? If you get people used to just copy/pasting/running scripts then there’s a risk they’ll run something entirely different by accident.There’s no good reason to install things this way.
But this is a trusted source with years of credibility. Why would any sensible competent tech user copy paste from other places because this one worked.
You’ll be pissed when you hear about Linux game server manager then. It’s all helper scripts over https
Why would any sensible competent tech user copy paste from other places because this one worked.
Because sites like this and people like you are normalizing the practice. I have seen numerous curl | sh commands pasted on lemmy telling people “how easy it is to install blank”.
Have you ever looked at what was once ttek scripts? They’re a spaghetti of calls to other scripts. It’s not pretty. And not intuitive to audit.
They work so what is your objection ?
If you are worried pipe it into chatgpt with the prompt
“tell me why this script is safe to use”I thought I was being clear that I have audited some of the scripts. They are built referencing other scripts instead of functions, and these rely on URLs. It’s difficult to follow.
Don’t ask chatgpt to audit code.
Fun fact, a malicious server can detect the difference between you loading the script for inspection in your browser, and you doing
curl | sh
, and could serve an entirely different script.Yeah - it’s remarkable that I receive pushback about it. I guess it’s down to the technical immaturity of your average home-gamer vs. people who support Linux systems for a living?
Of course, Linux sysadmin needs linux to remain a ceaseless whirlpool of busywork, that’s what they’re paid for. Imagine having a tool that cuts the bullshit out of using linux, it would put them right out of business if the users could just do the things they want to do without having to beg the middleman.
🤣
OMG this is so dumb.
Edit: I’m thinking this was satire?
Why else would so many of them step on the brake with both foots, shut down any way to streamline them out of the picture, while proposing impossible alternatives or even no alternatives. And of course it’s always about "for your security and safety "
This wasn’t satire?
🤣 🤣
There is no functional difference to piping a script vs running an AUR or other user repository install.
How do you “undo” whatever that script did?
In the case of these ones you just remove the LXC/VM it created.
Neat. Now you have a snowflake install. How do you upgrade it?
Upgrade what? The LXC/VM you just removed because of a wonky script?
You went on with this for way too long, my guy. We get it, you don’t like the helper scripts.
Upgrade what? The LXC/VM you just removed because of a wonky script?
Did you purposefully misunderstand me? How did you not know that I meant “how do you update the thing you installed with a rando shell script” and not “how do you update something after removing it”?
You go into the LXC’s console and type
update
, or use whatever package manager is available in the LXC.
I’m pretty sure for most of them you just type
update
and it will update.
I asked repository maintainers and they said “LXC is not for apps” and of course docker is a good way to waste your weekends. So we don’t have repositories, we have scripts.
If you disagree, go tell them
https://discuss.linuxcontainers.org/t/where-can-i-find-the-biggest-lxc-container-repository/14946
Until then, people who have sacrificed enough of their weekend to the linux gods will be pipe internet text into their root consoles
Until then, people who have sacrificed enough of their weekend to the linux gods will be pipe internet text into their root consoles
“I’ll do what’s easy even if it’s not good” is a terrible approach to, well, anything. I would expect people in this community to look for guidance on what the best way to do things is. Seems I’m wrong.
Well look, the people at helper-scripts, they have done the legwork, often as groups, the probably that you even COULD do a better installation section is already very unlikely … no more than that it’s implausible. These people are more dedicated, they started earlier and they’re already done, you are not going to do a better job than them, even if you tried, by the time you did, which realistically, unless you’re doing linux for money, you probably won’t even finish, but even then by the time you’ve re-invented the entire wheel, they will have progressed further, and there is more of them than there is of you, you will NEVER catch up.
But listen, I hear you, I hear your paranoia, your belief that there are bad people out there out to get you. Well I’m sorry but I have to tell you, those people simply do not care enough to break in to helper-scripts. Even if they did they’d get found out. It hasn’t even happenned yet even though the effort has been a huge success of people just like you coming together and dealing to put an end to the endless linux bullshiterry and making things actually work.
The odds that someone will manage to infiltrate without anyone figuring it out are so low that they are in fact insignificant.
Unless you have the resources of multiple militaries at your disposal, there is simply NO justification from trying to do your own helper-scripts, by yourself and then keep them for yourself. None, it’s mental illness to even attempt.
It’s not just this site though is it? I have been seeing a proliferation of
curl | shell
bullshit for some time now. Lots of sites doing it and people are posting those commands in forums, etc. telling others how easy it is to install that shiny piece of software! “But people should know better” I hear you whine, “They should read scripts before executing them.” But we all know people won’t do that. Especially not the sort of people who are arguing in favor of this practice, and certainly not the newbs these are targeted at.Read the scripts ? Why would anyone do that ? To truly understand even a relatively simply 10 page script can easily take an entire afternoon, this is a completely unrealistic demand.
There is a piece of infrastructure missing, whether it’s no place to put ready to use LXC files, software installation script or configuration.nix files, there is a HUGE gap between the software that actually works, and the ability to go from nothing to a working computer.
I have used my computer for my entire life, well over 30 years and even having spent my ENTIRE summer doing linux bullshittery, I still barely have anything working. Everything is delivered in a near broken mostly unusable state and that’s after you’ve spent multiple days to just get there.
Almost nothing works and you simply don’t have enough time left in your life to even try making it work.
So yes, people should pipe scripts into root shells without reading them because that’s what any real person would do. They really really should stop listening to all the nannies telling them to waste all their time re-inventing the wheel and achieving nothing.
Maybe computers just aren’t for you.