🌉 bridged from @GaumBeist@lemmy.ml by Tidepool
GaumBeist
@gaumbeist.lemmy.ml.ap.tdpl.io
technology Why is Everything Breaking?
54 1Technical debt has come to collect
fuck_ai It's the future, y'all!
11 1Anyone who got their sense of reality from media was doomed from the beginning. AI just exposed the flaws in trusting things you see/read/hear on the internet/tv/radio/telephone, it didn't "destroy the concept of objective reality."
linux Another topic to share your aliases and scripts
3 1Would you please explain that vim one?
android How many of you are actually switching away from android due to the upcoming "sideloading" restrictions? If not, how would your relation to android change?
12 1The sideloading restrictions were the straw the broke the camel's back for me. Finally made the jump to Graphene a few months ago
lemmyshitpost In this house, Dratini is a hero!
15 1Why is Oak 1/4 blurry and 3/4 upscaled?
fediverse Do you think Reddit users who tried fediverse link aggregators are correct?
2 0In every online community I have ever lurked (and even the few I participate in), I have found there are people who contribute negativity. It may be a single person, it might be a group, it may be the same people every day, it might just be the usual negativity that we all bring to the table from time to time. Past a certain size of community, it reaches critical mass and becomes a feedback loop of negativity.
Plus, as my friend loves to point out, humans are just wired to notice negativity more than positivity. And that makes sense from an evolutionary perspective: lack of positivity will kill you slowly, but things that can harm you could kill you immediately.
So barring the obvious solution (sticking to small, manageable communities in every aspect of your life), the next best thing is to pick what kind of negativity you are willing to be exposed to.
On Xitter, I found the negativity was from nazis, bots & nazi sympathizers and well-meaning goobers who would shove the nazis in your face like "look at this horrible thing this horrible person said!!! LOOK AT IT!!! PUT IT IN YOUR EYES AND HOLD IT IN YOUR MIND AND LET IT CONSUME YOU LIKE I DID!!!"
On Reddit I found a lot of people who were more invested in defending the status quo while the world slowly burned around them than risking change. Nothing as intense as Xitter, but still a cycle of panic as site administration continued to make the entire experience worse and more invasive, followed by a resentment toward anyone who continued to push for change past the socially acceptable amount of time.
On Lemmy, I have once again found outright hostility, but mostly from people who are sick and tired of living in a world that is hostile to those at the bottom of social hierarchies. Part of that theme is people who are hostile to viewpoints that make communities susceptible to corporate capture, and the resultant enshittification that follows. I consider them something like the protectors of the community, rabidly ensuring Lemmy won't be taken over by the people who let nazis and capitalists in.
I try not to engage; if that makes me a braindead lib, so be it. Sometimes when they latch onto me, I'll throw them a bone and fight back just so they feel vindicated, and hopefully to bleed some of the hostility so the feedback loop levels out instead of accelerating further
linux What lightweight DE do you use for older laptops?
15 1Sway. Ditch the DE and get with a keyboard controlled window manager. You can always install whatever specific DE apps you absolutely need.
I still use GNOME on my desktop, but I will always use a keyboard-controlled window manager on my laptops.
- 4 1
AntiX is "proudly antifascist," so unlikely to allow transphobia on their forums. It offers runit, sysVinit, dinit, s6-rc and s6-66 as its init systems. AntiX-core is the stripped-down system that lets you start from pretty close to scratch, so you get to mostly configure it yourself. It's based on Debian, and the sister distro of MXLinux, so it's guaranteed to work on older hardware. It's super lightweight and doesn't tax my Flex 2 (which isn't exactly powerful hardware)
linux What's your preferred method for upgrading your system drive?
6 0Clonezilla Live USB ftw
linux Has anyone seen a persistent clock/time synchronization issue on Fedora Silverblue (or Secureblue)?
2 0My secondary laptop had an issue where the time would be wrong whenever I booted it up. I'd make sure the system was set to the right timezone, but it always required me manually setting the time, even restarting ntpd (and making sure I had internet) didn't work.
The problem was pretty clear, because the time would be off by years: the issue was that the hardeare clock was set incorrectly in the BIOS, because I use it so infrequently that it would lose all charge in the interim and the BIOS would be reset. Setting the hardware clock correctly fixed everything.
linux Any really good source to learn advanced bash?
5 0Not to be that gal, but... the GNU site's Bash Reference Manual documents everything you could ever want to know right up until you get into weird edge cases and abusing bugs/unintended behaviors for your own nefarious purposes.
For that, others have pointed to YSAP, whom I will also recommend. I can't find it right now, but I swear in some videos he mentions a website or forum where people discussi Bash extremely in-depth, and that is end-game stuff (the stuff you learn right before you start auditing the code yourself or editing the source to enable your own custom behaviors)
linux Any really good source to learn advanced bash?
1 0Idk how versed you are on Bash Parameter Expansion or the
findcommand, so I'd like to expand (pun intended) a little more on Jo Miran's explanation (if you already know, I'll leave this for others who may not):find's-exec(and-execdir) option takes everything after it until a semicolon — which usually needs to be escaped, so the shell doesn't accidentally treat it as the command separator special character — as a command to run and arguments to pass to that command. Furthermore, when using the-execoption, find treats all instances of{}as places where it should substitute the files it matchedSo breaking down
-exec bash -c 'mv "$0" "${0/crunk/chunk}"' {} \;really just tellsfindto take the name of a file it found (in this example it would only matchdir1/crunk) and put it after the commandbash -c 'mv "$0" "${0/crunk/chunk}"'So now the command to run looks like
bash -c 'mv "$0" "${0/crunk/chunk}"' dir1/crunkthis command spawns a (sub)shell,
bash, tells it to run the next argument as a command,-c, gives it that command to run,mv "$0" "${0/crunk/chunk}", and passes filename as an argument,dir1/crunkSo now let's talk shell parameters
Usually
$0is a special parameter that references the shell (or script) that invoked the command. In the case of using the-coption, bash actually changes$0to be the argument after the command to run:dir1/crunkSo now the command looks more like
mv "dir1/crunk" "${0/crunk/chunk}"So let's finally get to the finish line: shell parameter expansion. Shell parameters (aka shell variables) can be written with curly braces around the name, so
$SHELLand${SHELL}refer to the same thing. But the curly braces can also let the shell know that if it sees certain special characters after the variable's name, it should do some transformations to the contents of the variable.In this case
${0/crunk/chunk}takes the contents of$0, searches for the first instance of the string ”crunk", and replaces it with "chunk" before inserting it into the command.So now the final command to run looks like
mv "dir1/crunk" "dir1/chunk”Also worth mentioning that the
-nameoption offindaccepts wildcards in its argument.I would also recommend using the
-execdiroption instead of-execin this specific case, because it will run commands from inside the directories where it finds the files. In this case, that means{}would expand to./crunkinstead ofdir1/crunk; this will be relevant in about 3 paragraphs.So now you can tweak the command to your needs. If you wanted to find more than one file that, for example, all had a "u" somewhere in the name, you could do so thusly
find dir1 -name ”*u*"And then if you wanted to change the "r" in the filenames to "l", you could do:
`find dir1 -name "u" -type…
0 1Presumably so the regex in the parameter expansion/replacement works, since you can't do that to the placeholder
{}string thatfinduses1 0- 3 1
- Yes........ in my opinion. The real answer is that it depends on the intended use of the system and the users' needs. It's as legitimate to treat
wheelas a catchall permissions group as it is to go around specifying permissions for specific users in your sudoers and udev rules - From my understanding, the kernel tends to reuse the same names when attaching devices, but it's not required to do so by the specs (i.e. there may be cases where the
/devfile name changes depending on what you have plugged in). Hence why the common advice is to not specify/devfiles in yourfstab, and why people use udev rules instead ofchmodandchown-ing the/devfiles
- Yes........ in my opinion. The real answer is that it depends on the intended use of the system and the users' needs. It's as legitimate to treat
linux Modest laptop arriving, what new Linux distribution should I try?
2 1I have a Lenovo Flex 2 15, which has an i3, 1080p display with intel graphics (although it's a 15" display) and upgraded to 16 GB of RAM
I use AntiX/MX Linux bc they're made with lower spec/older systems in mind. I started with AntiX-core to keep everything as lightweight (not a ton of background processes = low memory usage, low cpu usage) as possible
I use Sway bc 1. It's more lightweight than a full DE, and 2. Keyboard navigation is a must for laptops (trackpads only exist to inflict pain and misery on the world)
A couple great things about this setup is that it rarely overheats (as long as I keep it to a couple tasks at a time), and the battery can last for a 2 hours if I forget to plug it in
Even if you don't end up going with any of these suggestions, please take this to heart: never stop tweaking your system. You end up learning so much about it, and every little change makes it feel all that much more special to you
linux windows 10 ltsc iot inside qemu/kvm using virt-manager question
2 0Ooh, ooh! I know this one!
NAT stands for "Network Address Translation." The important idea is that when your guest machine (windows) tries to access the internet, it sends the traffic to your hypervisor (VirtualBox or qemu/kvm). Your hypervisor then passes it to your host OS, which changes the source IP address to its own, and changes the source port to one that will help it recognize traffic meant for the windows virtual machine. It then passes that traffic on to your router, which does a similar thing so that the broader internet can't just access any device on your home network willy-nilly. When the server your windows machine contacted responds, it addresses the traffic to your host machine's IP with the special port that lets your host know it's meant for the virtual machine.
To simplify this into an analogy with the postal service: 5 year old Billy (your windows VM) wants to write a letter to Ted (a server or device somewhere outside of your host machine). Billy writes his letter and addresses it to Ted, but in the return address field, he writes "Billy's Room." He then hands the letter to his mom (the host machine) to mail it for him; knowing that Ted probably doesn't know where the flying fuck "Billy's room" is, she quickly crosses it out and writes her home address. She then mails it. When Ted gets the letter, he responds and addresses it to Billy @ Billy's mom's house. She gets the letter, sees that it's addressed to Billy, and takes it to his room.
A bridge is a virtual interface that allows the virtual machine to send traffic directly to the hardware (networking card) without bothering the host machine. This allows it to get its own IP address on the local network, and for everything on that network it appears to be a separate machine from your host.
This is like if Ted and Billy get to writing letters all the time, and Billy's dad (you) realizes he can just set up a second mailbox outside the house for Billy and negotiate with the postal service so that the address on the mailbox is "Billy's room." Now Billy's mom never has to handle his mail or rewrite the addresses anymore, which is good, because Ted just mailed Billy a bomb (because no one, not even Billy, can know where Ted Kaczynski is).