ITT: whooosh
Gyroplast
- 0 Posts
- 27 Comments
More essential IT skills to add to your resume:
- preserving the environment
- killing zombies
- managing real-time executions
- manual flushing of pipes
- handling mixed signals
Gyroplast@pawb.socialto
Arch Linux@lemmy.ml•Make pacman not put downloads in download-xxxxxx directoryEnglish
8·3 months agoI didn’t see any provisions in the code to change this behavior, and I could easily reproduce the issue by interrupting downloads half-way. And it truly sucks.
It looks like a possible regression while fixing a related issue, but I only had a very cursory look. Not passing blame, yet. :)
No issue or PR exists concerning this problem, yet. If you cannot be bothered to create one, I might do so myself this weekend.
Applies to hard- and firmware, too.
Standing on the shoulders of giants, while complaining how it’s too difficult to climb up there.
Gyroplast@pawb.socialto
linuxmemes@lemmy.world•Personally I'm grateful to not need 3rd party packagesEnglish
5·4 months agoTL;DR: Don’t think of the AUR as a package source, but as of an only mildly moderated, but ultimately free and open, sharing platform for PKGBUILDs, primarily useful for (self-)packagers, not necessarily non-technical end users.
Before the AUR, you had people individually hosting their PKGBUILDs anywhere, sometimes on GitHub or the BBS (yeah, it’s been a while), sometimes along with a repository URL you could add to your
pacman.confto install packages right away, and it was glorious. I didn’t have to write a working PKGBUILD myself from scratch, and I could decide if I trusted that particular packager to not screw me sideways with a pre-built package. An officialized “Trusted User” (TU) role emerged from this idea, which has recently been renamed to Package Maintainer (PM). This is fundamentally still how the AUR works, it just became much bigger, and easier to search for particular software. Packagers gift to you their idea of how software should be packaged, for you to expand upon, take inspiration from, or learn, or use as-is if you determine it to be good for your purpose.The AUR is ultimately a great resource for packagers, and still useful for users, but “true end users” get the
extrarepository, andcommunity, kind of, before that, and should try to avoid the AUR if they can, or at least be prepared to put in effort to establish trust, or get help.A handful of Package Maintainers are manually adopting and subsequently vetting for sufficiently popular packages to move them from the AUR to the official
extrarepository, which is deemed safe to use as-is, on a best-effort basis. Obviously, this is a bottleneck, as it is not feasible for the few volunteering PMs to adopt and maintain 10k+ AUR packages and be held to any quality standard. That’s why “you are on your own” with the AUR.On the positive side, there’s a voting system to determine package popularity. AUR packagers have a public list of maintained packages, and a comprehensive git commit history. Establishing trust is still crucial, and I feel hard pressed to name a reasonably popular/useful package that isn’t already in
extraor has been maintained in the AUR for a long time.The biggest risk, IMHO, for malware getting slipped into a package is orphaning a popular package, and having it adopted by a malevolent user. This is something I personally look out for. If the maintainer changed, I make sure to check the commit history to see what they did. Most of the time it’s genuine fixes, but if anything is changed without a damn good and obvious reason, hit up the AUR mods and ask for help. This is how malware is spotted. Also, typically only the version is bumped in a PKGBUILD on an update, which is a change I feel safe waving through, too. If the download URI changes, or patches are added, I do look at them to determine the reason, and if that isn’t explained well enough to understand, that’s a red flag. Better ask someone before running this.
source: personal involvement in Arch since 2002
Gyroplast@pawb.socialto
Programmer Humor@programming.dev•That's a quite interesting add-on
53·4 months agoYou spelled ‘worth billions of VC money’ wrong.
This reminds me of the tale of the coder tasked to write an input validator for IPv4 addresses. Poor bastard.
Another fun one:
0177.042.017.066PSA: Don’t zero-pad your IPv4 octets. Decimal is for simpletons.
Yes. 127.0.0.0/8 is reserved IPv4 address space for Loopback. It is perfectly valid, and occasionally useful, to use other loopback addresses that are functionally identical, like 127.0.1.1 or 127.0.0.53, which carry semantic information for the initiated, like “53? Must be DNS-related, obviously!”
Gyroplast@pawb.socialto
Arch Linux@lemmy.ml•New Motherboard with pre-existing Linux Install can't be found?English
5·5 months agoYou can fix this, and this certainly isn’t “basic”.
I figure you didn’t see your Linux option, because your EFI boot variables (boot order and boot loader locations) are stored “on the mainboard”, and you didn’t manage to reset those on the new board according to your current layout. Windows still boots, as it installs its bootloader in a generic location intended for removable devices, instead of properly registering itself with EFI boot variables. Because of course they do.
To fix this, I’d recommend a deep breath first, and then set BIOS to UEFI boot only, no CSM/legacy at all for now, no even as fallback. If you’re lucky, you can boot into your Linux system from the BIOS boot menu right now, and skip the archiso boot and chroot shenanigans. Have a look. Otherwise boot into the archiso as you did before.
Identify your EFI system partition(s) (ESP) Run
sfdisk -l /dev/nvme0n1andsfdisk -l /dev/nvme1n1, note the “EFI System” type partitions. Ideally, there’s only one atnvme1n1p3. Multiple ESPs would be trickier, but let’s assume your singular ESP isnvme1n1p3. Have a look at the ESP, to understand its layout and confirm this is really what you’re looking for:mkdir /esp,mount /dev/nvme1n1p3 /esp,find /esp. You should find the Windows bootloader atEFI/Boot/bootx64.efiandEFI/Microsoft/Boot/bootmgfw.efi.You might also find your grub bootloader in a subdirectory like
EFI/arch/grubx64.efi. Find all of your instances withfind /esp -iname grubx64.efi, and note the paths. If you find multiple grubx64.efi, I’d recommend to pick only the newest file, unless you know for a fact which one is supposed to be the one you want to use. Als -l <file>gives you the date of the file to check. If you don’t have any grub bootloader installed, yet, that’s fine, too.Create a boot entry with grub in a chrooted system If you can
arch-chrootinto your Linux system, make sure your ESP is mounted in your chroot as well, let’s say at/espagain, and your/bootdirectory must be mounted, too, otherwise grub-install will fail. Thengrub-install --efi-directory=/espshould do its magic just fine. Useefibootmgrto display/edit the EFI boot variables, and check if the entries in there look correct. The ESP will be referenced by UUID, and the list will look pretty busy, but you should recognize the EFI paths, and yourarchentry should be the BootCurrent value. Make sure you’ve got a/boot/grub/grub.cfgin place, otherwise grub won’t do you much good! Create one withgrub-mkconfig -o /boot/grub/grub.cfgfrom within your chroot, after editing/etc/default/grubif you need to add any kernel arguments for your system. Usually you do not, so fire away.If chrooting doesn’t work for you, btrfs can be a little tricky, you should be able to install grub with the ESP and boot partition mounted alone in the archiso. nvme0n1p1 looks like your boot partition, so it’d go down like this:
mkdir /esp /linuxboot mount /dev/nvme1n1p3 /esp mount /dev/nvme0n1p1 /linuxboot grub-install --efi-directory=/esp --boot-directory=/linuxbootYou can
pacman -S grubifgrub-installisn’t available on archiso, yet. Make sure you’ve got a/linuxboot/grub/grub.cfgin place here as well. Unfortunately you cannot usegrub-mkconfigeffectively without the chroot, but if you are at this point, and you’re dropped into the grub rescue shell, you can try a minimal, lovingly handcrafted grub.cfg: You need to obtain the UUIDs of your ESP, boot and root partition for the menuentries, and replace the placeholders with your values. You can get those values withlsblk -oNAME,UUID /dev/nvme1n1p3 /dev/nvme0n1p1 /dev/nvme0n1p2, in this order (ESP, BOOTPART, ROOTPART UUID). I assume your root subvolume is namedroot, and your kernel is namedvmlinuz-linuxon the boot partition, with avmlinuz-linux.imginitfs. You should adapt these filenames in the grub.cfg if they are different, of course, but I think this is a pretty good guess. :)insmod part_gpt insmod part_msdos set default="0" if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } terminal_input console terminal_output console set timeout=5 menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple' { load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 search --no-floppy --fs-uuid --set=root <BOOTPART UUID> echo 'Loading Linux linux ...' linux /vmlinuz-linux root=UUID=<ROOTPART UUID> rw rootflags=subvol=root echo 'Loading initial ramdisk ...' initrd /initramfs-linux.img } if [ "$grub_platform" = "efi" ]; then insmod bli fi if [ "$grub_platform" = "efi" ]; then menuentry 'Windows Boot Manager --class windows --class os $menuentry_id_option 'osprober-efi' { insmod part_gpt insmod fat search --no-floppy --fs-uuid --set=root <ESP UUID> chainloader /EFI/Microsoft/Boot/bootmgfw.efi } fiLet’s see how this goes.
Gyroplast@pawb.socialto
Programmer Humor@programming.dev•My version of a for loopEnglish
4·5 months agoWow… I… I did not expect such density of triggers in a single panel. Trolling truly is a art. The more you look, the worse it gets. I love it.
Gyroplast@pawb.socialto
Programmer Humor@programming.dev•You can't "skill issue" yourself out from every situationEnglish
8·6 months agoThey were holding it wrong, obviously.
What AI-generated, non-working, obviously incorrect garbage is this? Also, you want to define this as an alias to type the command 33% faster, too!
alias fc='ffmpeg -c copy -map 0:0 -f data - 2>/dev/null -i 'Amateurs.
In some retirement homes, we hear feeble cries for justice, lamenting “source tarballs are even cross-platform, just build yourself already as intended”, but nobody received that suggestion from their AI assistant, just a list of packaging services you should subscribe to instead.
“I’m not alone here. Gotta setup a k-line to this surfer’s cyberjack and ice his codes before he cracks my firewalls!”
Gyroplast@pawb.socialto
Arch Linux@lemmy.ml•Unexplained reboots and kernel panicEnglish
11·7 months agoI’m in. $10 on “this reported kernel panic is not resolved by any change to which nvidia kernel driver is loaded, patched or not, or how anything pertaining nvidia is configured”.
nvidia is at fault for many issues, agreed, but not this one.
Gyroplast@pawb.socialto
Arch Linux@lemmy.ml•[SOLVED] System freezes at boot and I'm not sure if it's a software or hardware problemEnglish
4·7 months agoYou could increase verbosity, and try working up your way from booting a bare minimum, to see when the system hangs, and if it persistently hangs at the same time, in the same way.
My usual go-to is to add
debug apic=debug init=/bin/sh vga=0 nomodeset acpi=offto kernel boot arguments and see if I consistently drop into the bare initramfs shell that way, without switching to any framebuffer graphics mode, while also avoiding potential ACPI breakage that may manifest as early boot freezes. Yes,vga=0is legacy BIOS only, feel free to skip that one if you’re booting UEFI. This is not likely to avoid your problem, anyway.If that works, remove the arguments, from the right, one after another, to re-enable ACPI, then KMS, then automatic framebuffer console setting. If you’re still going, change
init=/bin/shtoemergency, then torescue, then remove to boot normally, always with excessive debug output. At that point, boot should freeze again, as you’ve only increased verbosity. The messages leading up to the freeze should always give a hint as to what subsystem might be worth looking into further - be it a specific module that freezes, which can subsequently be blacklisted by kernel parameter, for example. Let the system tell you its woes before stabbing at its parts randomly.This does not assume you having a software fault. This procedure uses the kernel init and following boot process as diagnostics, in a way. Unfortunately, it is pretty easy to miss output that is “out of the ordinary” if you’re not used to how a correct boot is supposed to look like, but the info you need is typically there. I typically try this before unplugging all optional hardware, but both approaches go hand in hand, really. I’ve found in modern, highly integrated systems, there’s just not that much available to unplug anymore that would make a difference at boot time, but the idea is still sound.
If this becomes involved, you might want to look into using netconsole to send the kernel messages somewhere else to grab with netcat, and store them in a plain text file to post here for further assistance. You might just get a good hint when reading the debug kernel messages yourself already, though!
EDIT: If those two colorful, pixely dotted lines in the lower half of your literal screen shot happen to flicker into view during boot somewhat consistently right before freezing, my gut feeling says it’s likely a graphics-related issue. You might want to short-circuit your tests by trying only
debug nomodeset, a more brutaldebug nomodeset module_blacklist=amdgpu,radeon, or replacing your GPU with a known good model, as suggested.
Gyroplast@pawb.socialto
Arch Linux@lemmy.ml•Unexplained reboots and kernel panicEnglish
1·7 months agoDo I need to run the machine for longer or should it have crashed right away according to your hypothesis?
Sorry for mudding the waters with my verbosity. It should not crash anymore. I believe your kernel panic was caused when an idle CPU 6 was sent to sleep. Disabling C-states, or limiting them to C0 or C1, prevents your CPUs from going into (deep) sleep. Thusly, by disabling or limiting c-states, a kernel panic should not happen anymore.
I haven’t found a way to explicitly put a core into a specific c-state of your choosing, so best I can recommend now is to keep your c-states disabled or limited to C1, and just normally use your computer. If this kernel panic shows up again, and you’re sure your c-state setting was effective, then I would consider my c-state hypothesis as falsified.
If, however, your system runs normally for a few days, or “long enough for you to feel good about it” with disabled c-states, that would be a strong indication for having some kind of issue when entering deeper sleep modes. You may then try increasing the c-state limit again until your system becomes unstable. Then you know at least a workaround at the cost of some loss of power savings, and you can try to find specific issues with your CPU or mainboard concerning the faulty sleep mode on Linux.
Best of luck!
Gyroplast@pawb.socialto
Arch Linux@lemmy.ml•Unexplained reboots and kernel panicEnglish
41·7 months agoNo, it is not. There is an issue with the installed GPU not being supported by the initializing driver, but this is entirely irrelevant for the reported fault and panic happening more than 1600 seconds later.
Or would you argue the NIC is 100% the issue, because
r8169 0000:04:00.0 enp4s0: Link is Downis literally right in the logs?

In filenames? AMATEURS! Use obscure Unicode in your passphrases for maximum security. Ctrl-Shift-U, enter arbitrary code point, bam! 🦊 Works even better with a Compose key and a nice, chonky
.XComposefile to throw some gr∑∑k letters around, for instance, like some confused script kiddie. :)On topic: There are multiple variants of spaces in Unicode. You’re welcome, and now go and create something utterly deranged with that information.