linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

teawrecks, in Laptop companies: which one?

I had a System76 10 years ago. The customer service was excellent (several months after receiving my laptop, they sent me a replacement keyboard, because they didn’t like the one it shipped with). The build quality was meh, it was a plastic body and didn’t hold up well to wear and tear, but it’s in my closet and still works. I haven’t tried their aluminum bodies.

I now have a Framework. It arrived with trackpad issues, and one of the HDMI adapters didn’t work at all. They shipped me replacements for both at no cost to me (except time). It’s been nice knowing that any other issues I do have can be replaced piecewise. Also I like that the webcam/mic have physical kill switches.

wwwgem,
@wwwgem@lemmy.ml avatar

Very nice to read this feedback. I’m very sold to Framework after all the great things posted here. An impeccable customer support like the one you describe means a lot about a company.

bizdelnick, (edited ) in is there a foss project to automatically sort files

Such AI can be coded in <100 lines shell script. One of simplest implementations:


<span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">
</span><span style="color:#323232;">find . -type f -print0 | while IFS= read -d $'
haui_lemmy,

Thats pretty much how I‘d do it. Now I need to sort through a decade of old backups and deduplicate them. Also need to distinguish between „loose“ files and program/website structures which usually have different file types inside. Probably need to auto archive them into tar.gz or something.

TeddE, (edited ) in I feel like I'm missing out by not distro-hopping
@TeddE@lemmy.world avatar

Let’s start simple: You should consider hoping from Linux Mint to LMDE if you haven’t already.

As a user, you have no obligation to participate in the politics between the Ubuntu and the Mint Development team, but if you’ve followed the controversy and agree that Ubuntu is being a bully, this would be a small yet material way to show support.

what am I missing?

Every Linux distribution has a purpose - a reason its author thought it was worth the effort of creating it. Some are grand, others are silly, etc. When you explore distros, you’re telling the community which ideas resonate with you. Popular ideas will replicate, unpopular ideas will be abandoned.

Also, switching distributions makes it harder for business to ‘capture’ the Linux demographic. The mere act of switching occasionally means that tools to import/export/manage your data stay relevant. This literally fights enshitification.

Finally, and this is a matter of personal taste, but I like trying different versions of Linux for the same reason I try different flavors of ice cream: It’s fun; and even if now and then I get a bad flavor, I feel enriched by the experience.

(Edit: it’s to its)

Rossphorus, (edited ) in I feel like I'm missing out by not distro-hopping

I was surviving with Ubuntu, I had my complaints but I figured ‘that’s just how it is’ on Linux, that it was the same everywhere. I didn’t even realise what I was missing until I switched.

I got a hardware upgrade at one point, so in order to get those new drivers ASAP I tried an Arch-based distro, with plans to switch back once drivers became available. I never moved back.

The two big reasons I stayed was ironically enough the lack of good Ubuntu documentation, and the PPA system. Ubuntu is used a lot, but there’s not really formal documentation anywhere, only random tutorials online (most likely out of date and never updated) and people on forums talking about their problems. By contrast the Arch wiki is the gold standard of Linux documentation, there’s just no comparison. Even on Ubuntu I found myself using it as a reference from time to time.

Regarding PPAs, the official Ubuntu package list is strangely small so if you’re like me and find yourself needing other software, even mainstream software like Docker, you’ll be faffing about with PPAs. So if you want to install Docker, instead of typing sudo apt install dockerYou instead have to type:


<span style="color:#323232;"># Add Docker's official GPG key: 
</span><span style="color:#323232;">sudo apt-get update 
</span><span style="color:#323232;">sudo apt-get install ca-certificates curl gnupg 
</span><span style="color:#323232;">sudo install -m 0755 -d /etc/apt/keyrings 
</span><span style="color:#323232;">curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg 
</span><span style="color:#323232;">sudo chmod a+r /etc/apt/keyrings/docker.gpg 
</span><span style="color:#323232;"># Add the repository to Apt sources: 
</span><span style="color:#323232;">echo  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu  $(. /etc/os-release &amp;&amp; echo "$VERSION_CODENAME") stable" |  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update
</span>

These are the official install instructions, by the way. This is intended behaviour. The end user shouldn’t have to deal with all this. This feels right out of the 90’s to me.

Instead of PPAs, Arch has the Arch User Repository (AUR). Holy moly is the AUR way nicer to work with. Granted, we’re not quite comparing apples to apples here since the AUR (typically) builds packages from source, but bear with me. You install an AUR package manager like yay (which comes preinstalled on my flavour of Arch, EndeavourOS). yay can manage both your system and AUR packages. Installing a package (either official or AUR) looks like yay packageNameHere. That’s it. A full system upgrade like sudo apt update; sudo apt upgrade is a single command: yay -Syu, a bit cryptic but much shorter. The AUR is fantastic not just for the ease of use, but for sheer breadth of packages. If you find some random project on github there’s probably an AUR package for it too. Because it builds from source an AUR package is essentially just a fancy build script based on the project’s own build instructions, so they’re super easy to make, which means there’s a lot of them.

You might argue ‘but building from source might fail! Packages are more reliable!’, which is somewhat true. Sometimes AUR builds can fail (very rarely in my experience), but so can PPAs. Because PPAs are often made to share one random package they can become out of date easily if their maintainer forgets or simply stops updating it. By contrast AUR packages can be marked out of date by users to notify the maintainer, and/or the maintainer role can be moved to someone else if they go silent. If a PPA goes silent there’s nothing you can do. Also, since an AUR package is just a fancy build script you can edit the build script yourself and get it working until the package gets an update, too. PPAs by comparison are just a black box - it’s broken until it gets updated.

Moral of the story? Don’t be afraid to just give something a go. Mint will always be waiting for you if you don’t like it.

Hjalamanger, (edited ) in Linux Mint 21.3: Empowering tech-savvy Moms with the Perfect Desktop Experience
@Hjalamanger@feddit.nu avatar

…brings joy for my daughter who recently upgraded to GNU/Linux from Windows 7.

Okay, amazing writing (:

ipsirc, in I feel like I'm missing out by not distro-hopping
@ipsirc@lemmy.ml avatar
sag,

5

mactan, in Windows NT Sync Driver Proposed For The Linux Kernel - Better Wine Performance

is this what used to be called winesync?

hallettj, (edited ) in NixOS - edit system files
@hallettj@beehaw.org avatar

I did some digging around in the manual, and I tested this option which seems to work:


<span style="color:#323232;">security.pam.services.doas.fprintAuth = true;
</span>

On my machine that adds this line to /etc/pam.d/doas:


<span style="color:#323232;">auth sufficient /nix/store/fq4vbhdk8dqywxirg3wb99zidfss7sbi-fprintd-1.94.2/lib/security/pam_fprintd.so # fprintd (order 11400)
</span>

Edit: Note that the NixOS option puts in the full path to pam_fprintd.so. That’s necessary because NixOS doesn’t put so files in search paths.

Without doing more research I don’t know how to add arbitrary options to pam files in case you run into something that isn’t mapped to a NixOS option yet. The implementation for the pam options is here; there might be something in there that would work.

wwwgem,
@wwwgem@lemmy.ml avatar

Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one.

wwwgem,
@wwwgem@lemmy.ml avatar

Just realized that I had this line in my config already but the change was not applied until I reboot. 😳

2xsaiko,
@2xsaiko@discuss.tchncs.de avatar

Arbitrary options are internal so are not shown in the options search. They’re at security.pam.services.<name>.rules.

Here’s the options that get added using the public options including fprintAuth: github.com/NixOS/nixpkgs/blob/…/pam.nix#L621

wwwgem,
@wwwgem@lemmy.ml avatar

Thanks! I’m still not used to the diversity of all the NixOS documentarian and was not aware that arbitrary options can be found there.

hallettj,
@hallettj@beehaw.org avatar

Although they’re not in the search, they are in the manual so you can find them searching that page. This one is listed as,


<span style="color:#323232;">security.pam.services..fprintAuth
</span>

But it does take some inferences to find this, and to realize that you can put doas in place of ``

2xsaiko,
@2xsaiko@discuss.tchncs.de avatar

No, that one is in the search as well. It’s a normal option. search.nixos.org/options?show=security.pam.servic…

What isn’t and also isn’t in the manual is the rules options. Those are all internal.

wwwgem,
@wwwgem@lemmy.ml avatar

As I said I’ve actually done it before asking… But I didn’t reboot and and that was needed for the change to take effect ¯_(ツ)_/¯

fragment, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

I deleted bash on my work computer one week into the job 🫠

martinb,

csh FTW eh 🤣

FQQD, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@FQQD@lemmy.ohaa.xyz avatar

I copied a program into the /bin/ folder while in a file browser with sudo permissions and somehow overwrote every file except the one I was moving. It, of course, couldn’t boot, but copying the bins from a live iso made it at least boot able. Reinstalled Linux after that, of course.

hawgietonight, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

Not the installation strictly speaking, but my most “funny” fuckup was setting up xfree86. There was a configuration for crt monitor scan frequency that you had to setup. I messed up something and the monitor started to squeel like crazy and quickly hit hard reset in panic.

The monitor didn’t die, but it had a slight high pitch noise to it after.

aard,
@aard@kyu.de avatar

Back then I was testing modelines to see the maximum I could push to my 14" monitor. I then backed it with a 1200x1600 virtual screen.

My girlfriend got sick from watching me scrolling around and bought me a 19" display which could do that resolution - and ended up frustrated when I added a larger virtual screen.

hawgietonight,

A 19" monitor was quite big for the day, and expensive! I hope your gf didn’t beat you up too much for that :)

Delta_44,

I know little about crt because I was born in 2000. Can you explain why did the monitor started to make scary sounds?

I know that crt monitors didn’t have any method to report the supported frequency, aside from more recent models, correct?

hawgietonight,

Yeah, monitors were somewhat dumb, just received and did what the vga output asked to do.

The noise most likely came from the semiconductors that controlled the magnet field that directed the rays onto the screen. These components are selected for a specific speed that the monitor can handle. So going under or over it’s spec can make something resonate in the audible range, and could even destroy the components if stressed too much.

The thing is that for each resolution and refresh rate you had two values to configure, one for the vertical speed in Hz, and horizontal speed in kHz. These values were usually specified in the owners manual. Typos can happen, and this was quite a risky operation.

aard,
@aard@kyu.de avatar

A good starting point for a wikipedia rabbit hole covering the software aspects on how to drive a display: en.wikipedia.org/wiki/XFree86_Modeline

reallyzen, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@reallyzen@lemmy.ml avatar

Generated my grub configuration as grub.conf

This one took a stupid amount of time to debug - but on the other hand, when grub failed it did with “can’t find any bootable thingy” and not “missing configuration file” as, in my later opinion, it should.

Life Linux is a harsh mistresses, sometimes.

BlueEther, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@BlueEther@no.lastname.nz avatar

I’ve broken systems far too many times in the last 24 years, since Mandrake 6.x, to count:

  • I’ve dd a disk or more
  • I’ve rm *
  • I’ve chmod
  • I’ve brought down the network, with every intention tar it would come back - on a remote box
  • I’ve failed to RTFM far too many times
glibg10b, in What's (are) the funniest/stupidest way(s) you've broken your linux setup?

I wanted to use fio to benchmark my root drive. I had seen a tutorial saying that the file= parameter should point to the device file, so I pointed it at /dev/sda. As you might expect, the write test didn’t go so well.

BlanK0, (edited ) in Lazarus hackers now push Linux malware via fake job offers

Still the exploit is easier to avoid compared to windows viruses and stuff. Even with the linux popularity increasing there is already out there good solutions to prevent this kinda stuff like have SELinux installed, use firejail to run suspicious files, use proxies to visit weird sites (you can use proxychains + tor, a bit overkill but works if you don’t have a local proxy), etc.

Not to mention that one of the attack vectors of this exploit requires using a systemd feature which is the sysnetd which isnt going to work on other init systems. Reason why a lot of times minimalism can be superior to just having all the features + unnecessary ones out of the box.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #