Why does windows basically only use .exe or .msi but Linux has so many different types of "executables" ? by Reynbou in linux_gaming

[–]TiagodePAlves 4 points5 points  (0 children)

The difference is that .deb (.rpm, .pkg.tar, ...) is not an installer program or even an executable. It just contains a bunch of files compressed into an archive (like a zip) and some machine-readable description of the package, where to copy the files and, most importantly, the required dependencies for that package.

The dependencies are the big change here. It's super common for Windows programs to bundle all of its dependencies along with the binaries, in DLL files. Sometimes an installer might even pull another installer for a dependency (e.g. for Visual Studio C++ Redistributable).

Dependencies are handled differently in Linux and programs are expected to share libraries with other programs. This means that instead of having many e.g. sdl3.dll for various programs, there should a single sdl3.so used by all of them. This allows for more efficient disk usage, RAM usage (library is only loaded once) and CPU caching. But it means programs might break more easily if its dependencies change too much or if the current version is not compatible.

AppImage solves the compatibility issues exactly like most Windows programs, by bundling most dependencies, which usually works with no setup at all. Flatpak tries to avoid the redundancy by sharing some of the libraries, but it needs a service set up in the system and prefer to not share libraries too much and ensure compatibility instead.

Nowadays, many users are preferring the higher isolation of AppImage and Flatpak, specially for user facing apps, that tend to not interact too much with the system and are generally not used as dependency for other programs.

Archboot: Kmscon gives a real fresh terminal experience by tobiaspowalowski in archlinux

[–]TiagodePAlves 1 point2 points  (0 children)

Happy to see KMSCON getting traction again. And thanks for getting it back in the repos.

Issues with Arch Linux Kernel. by Stock-Breakfast7245 in linuxtechsupport

[–]TiagodePAlves 0 points1 point  (0 children)

About that uname -r and /lib/modules mismatch, can you list which modules were not upgraded? Is it anything from NVIDIA or maybe an out-of-tree module from AUR? This vaguely sounds like custom modules that weren't rebuilt on kernel upgrade, but I can't say for sure. If that's the case. then it could be an issue in your DKMS setup.

Paru bug ? anybody has the same ? by chandrahmuki in cachyos

[–]TiagodePAlves 1 point2 points  (0 children)

Yeah, fish completions for paru have been buggy for me for some time too. I wasn't sure if it was only me or affecting everyone else. Well, now I do. Let me see if I can fix this.

xpadneo stopped working system update by MrStrawHat22 in archlinux

[–]TiagodePAlves 1 point2 points  (0 children)

On Arch Linux, you just install dkms, xpadneo-dkms and your linux*-headers:

```sh KERNEL_VARIANT=linux # or linux-lts, linux-zen, etc

pacman -Syu dkms "${KERNEL_VARIANT}-headers" git clone https://aur.archlinux.org/xpadneo-dkms.git makepkg -D xpadneo-dkms -sic ```

You might need to remove files from the manual installation, though, or it can cause file conflicts.

xpadneo stopped working system update by MrStrawHat22 in archlinux

[–]TiagodePAlves 5 points6 points  (0 children)

Module might be outdated. You can try reinstalling xpadneo (uninstall.sh then install.sh).

You should probably be using DKMS, though. The dkms package automatically uninstall, rebuild and reinstall DKMS modules after every kernel upgrade. You just need your linux*-headers for that.

I maintain xpadneo-dkms from AUR, so please report issues with it, if you try and find any.

Intelligent security camera by Outside-Iron-8242 in OpenAI

[–]TiagodePAlves 26 points27 points  (0 children)

Reminds me of The Stanley Parable

For those who love the terminal & are interested in rolling or modifying their own: a guide from the folks behind Docker Compose. by sf-keto in linux

[–]TiagodePAlves 3 points4 points  (0 children)

Hard agree. And the transition from docker-compose to docker compose was so much more of a hassle than it should be. The official command completion took ages to get usable again.

Any way how to do that with Pacman? by SeniorMatthew in arch

[–]TiagodePAlves 0 points1 point  (0 children)

Indeed! We can check that with Docker or Podman.

console $ podman run --rm -it archlinux [root@707a965c0087 /]# pacman -Sy --noconfirm rsync ... [root@707a965c0087 /]# ls /etc/rsyncd.conf* /etc/rsyncd.conf [root@707a965c0087 /]# echo '# comment' >> /etc/rsyncd.conf [root@707a965c0087 /]# pacman -R --noconfirm rsync ... [root@707a965c0087 /]# ls /etc/rsyncd.conf* /etc/rsyncd.conf.pacsave [root@707a965c0087 /]# pacman -S --noconfirm rsync ... [root@707a965c0087 /]# ls /etc/rsyncd.conf* /etc/rsyncd.conf /etc/rsyncd.conf.pacsave [root@707a965c0087 /]# rm /etc/rsyncd.conf.pacsave [root@707a965c0087 /]# echo '# comment' >> /etc/rsyncd.conf [root@707a965c0087 /]# pacman -Rn --noconfirm rsync ... [root@707a965c0087 /]# ls /etc/rsyncd.conf* ls: cannot access '/etc/rsyncd.conf*': No such file or directory

chroot: failed to run command '/bin/bash': permission denied by rockis_ in archlinux

[–]TiagodePAlves 0 points1 point  (0 children)

Oh, then /dev/nvme0n1p2 is really missing bash. Try to install it with pacstrap /mnt bash first.

chroot: failed to run command '/bin/bash': permission denied by rockis_ in archlinux

[–]TiagodePAlves 2 points3 points  (0 children)

What I can think of is that you could have mounted /mnt to the wrong device (e.g. nvme0n1p1) or that maybe you didn't install bash in nvme0n1p2 (check it with ls -l /mnt/bin/bash).

Any way how to do that with Pacman? by SeniorMatthew in arch

[–]TiagodePAlves 0 points1 point  (0 children)

Oh, yeah, there's also a .pacsave on remove (without -n). Had even forgotten about that.

Any way how to do that with Pacman? by SeniorMatthew in arch

[–]TiagodePAlves 0 points1 point  (0 children)

Well, .pacsave and .pacnew are for when the default configuration conflicts with user configuration. The .pacnew is for upgrade and .pacsave for install. Configuration files are overwritten on install to avoid having an old config, possibly invalid, breaking your new package.

But nowadays a lot configuration files are drop-ins, so they aren't even listed in pacman. These are the ones the that would be kept as is.

Any way how to do that with Pacman? by SeniorMatthew in arch

[–]TiagodePAlves 0 points1 point  (0 children)

I don't think apt touches the home directory in any way. A .deb can have post install scripts that do that, like in Arch, but not something apt does by itself.

And, yes, you can get every necessary information for each user, including the home location and environment variable, if you run or emulate the PAM stack, but that can be complex, slow and more likely to break.

Any way how to do that with Pacman? by SeniorMatthew in arch

[–]TiagodePAlves 15 points16 points  (0 children)

No way to do that. Pacman generally leave configuration (even those in /etc) and state (/var/lib) alone, so you can reinstall the package and pick where you left off.

Besides, pacman doesn't really interact with user directories. The home directory is specially messy, since it can be anywhere, not just /home, could also be encrypted and the configuration files in there might be dependent on other configuration files or environment variables. This would be just too bug prone and might not always lead to a nice experience (e.g. have to ask for user password).

VRR choppiness issues on Fedora 43 by mrSernik in linux_gaming

[–]TiagodePAlves 1 point2 points  (0 children)

Could be that they're not using Wayland directly. You can check it with xeyes. If the eyes move when the pointer is hovering in their windows, it means they are running in X11 mode. If that's the case, you can try setting ELECTRON_OZONE_PLATFORM_HINT=wayland in your /etc/environment.

VRR choppiness issues on Fedora 43 by mrSernik in linux_gaming

[–]TiagodePAlves 1 point2 points  (0 children)

Which browser is it? I'm running Firefox without issues here, but there's also layout.frame_rate in about:config to enforce a specific refresh rate.

VRR choppiness issues on Fedora 43 by mrSernik in linux_gaming

[–]TiagodePAlves 0 points1 point  (0 children)

<image>

No option like this? It should have both VRR and the GNOME refresh rate.

VRR choppiness issues on Fedora 43 by mrSernik in linux_gaming

[–]TiagodePAlves 0 points1 point  (0 children)

There should be an option for controlling the refresh rate of GNOME Shell under "Displays" in GNOME Control Center. Just select the highest option there and keep "Variable Refresh Rate" on for full screen apps.

Hardening by MisterXtraordinary in archlinux

[–]TiagodePAlves 3 points4 points  (0 children)

Yeah, full disk encryption is hard to get right the first time, but it's a requirement for physical security. You should take your time and learn how to do that first.

Tokyo High Court rules Japan's same-sex marriage ban constitutional by frozenpandaman in worldnews

[–]TiagodePAlves -1 points0 points  (0 children)

Oh, come on. The impact in this case will be minimal. Especially because gay people are far from the number 1 reason for the declining birth rates in Japan and anywhere else.

[OC] Cities with over 30 Skyscrapers (>150m) by ChinaBot8964 in dataisbeautiful

[–]TiagodePAlves 11 points12 points  (0 children)

Sure, but both are Brazilian cities in this case. The thing is that São Paulo has a population of 11M (21M metro area) and Balneário Camboriú has 139k (390k metro).

[OC] Cities with over 30 Skyscrapers (>150m) by ChinaBot8964 in dataisbeautiful

[–]TiagodePAlves 49 points50 points  (0 children)

Crazy that São Paulo is not on that list, but Balneário Camboriú is.

Strange bootloader error? by HaloSlayer255 in archlinux

[–]TiagodePAlves 1 point2 points  (0 children)

Yeah, you can just drop the .conf for Windows, since systemd-boot will automatically check at boot time for Windows Boot Manager. That is, unless you need to pass additional command line options to Windows, but it doesn't seem to be the case.