Skip to content

u/InterestingAddendum

In this archive from Mar 2018 to Dec 2020

3
posts
76
comments
2
media
717
score

Thanks. While your sound card is not the same as the one in this bug report, the symptom seems to match.

Maybe this workaround works for you too.

The two files you have to edit are located in /usr/share/alsa-card-profile/mixer/paths/, and since they're owned by the alsa-card-profiles package, every time that package updates, you'll need to edit them again.

And after editing them, you'll need a PulseAudio restart as well.

2 points

The rustup script is recommended by the Rust team, but not by the Arch team.

And that distinction is very important, because I've also seen other popular tools (e.g. npm) suggesting their own installation/upgrade methods. But the Linux distro ecosystem is so diverse that, by using these "recommended" methods, a system breakage is almost imminent.

Now to actually answer your question: Use the rustup package from the community repo. More details here.

The only issue I have with this approach is that rustup won't install stuff system-wide (at least not by default).

1 points

You see the issue there? In reality, those permissions are automatically granted.

What do you mean by "automatically granted"? Please be more clear. Developers choose these permissions manually, on an individual basis. So there's nothing automatic about it, it solely depends on what functionality the program will use.

I guess I've been doing voodoo magic for testing builds of several applications.

I'm sorry, but when you say stuff like this:

With the AUR, you're locally building the package using the PKGBUILD, so you know exactly what's going on. Flatpaks don't work the same way.

And this:

questionable advantages of flatpak is that the author of a program can bundle any required libraries or software right in the flatpak

I instantly assumed you had never built a Flatpak app before. I mean, how can you claim to have used and built Flatpak apps before, but at the same time say that "building Flatpaks don't work the same way as building packages in the AUR"? They do work exactly the same say: You grab the manifest file (or a PKGBUILD) and run a command that will automatically download the sources, compile it and install it. How are they different?

About verifiability, if a package is distributed by a distro's packager, we have signature verification for ensuring that everything's fine and nothing's been tampered with.

And how do you verify that package maintainer didn't tamper with the package? Package signing is only useful to prevent third-party tampering, but you cannot guarantee that the package maintainer didn't mess with it. This can only be 100% verified with reproducible builds, and in the end you'd still have to build it yourself to be 100% sure.

But yeah, whatever. Flathub also signs all their Flatpak'd apps. What's your point?

Meanwhile, Flatpaks are aimed at everyone, including beginners. So, saying "RTFM" all the time is just not right.

But the default permissions of Flatpak apps are precisely design to make it out-of-the-box for beginners. So, again, what's your point?

They might not know that the program has access to their home folder or that it has access to your mic. Meanwhile, it's still said to be "in an isolated environment". You might be aware of the possible pitfalls but a general user won't be.

I feel like I'm repeating myself over and over again, but:

  • Where does the official Flatpak website say that all Flatpaks are running "in an isolated environment"? This is a feature, not a requirement.

Also, any permission should only be granted if the app will actually use it. Otherwise it's a bug in the manifest that must be fixed.

if you're careful enough to review every single manifest, why wouldn't you just setup a sandbox by yourself for the packages you install through your package manager?

And what would I use the setup that sandbox? Firejail? AppArmor? No, thanks. There is a much better technology called Flatpak already.

And it's definitely not suited to replacing package managers for system software.

And thank god for that, because I've never claimed such thing. I've stated that I only use Flatpak for proprietary programs or any open-source program that is not on Flathub.

One thing that needs work is that permission requests should be during runtime directly to the user, not hidden in a manifest file.

I'll be honest. It's getting really hard to not call you names...

Why would Flatpak ask for user permission about something that is mandatory for a program to work correctly? What Flatpak currently does is just fine: It asks you if you agree with all the default permissions a program will use:

$ flatpak install org.gimp.GIMP
Looking for matches…

org.gimp.GIMP permissions:
    ipc            network       x11       file access [1]      dbus access [2]
    tags [3]

    [1] /tmp, host, xdg-config/GIMP, xdg-config/gtk-3.0, xdg-run/gvfs
    [2] org.freedesktop.FileManager1, org.gtk.vfs, org.gtk.vfs.*
    [3] stable


        ID                            Branch          Op         Remote          Download
 1.     org.gimp.GIMP.Manual          2.10            i          flathub         < 876,5 MB
 2.     org.gimp.GIMP                 stable          i          flathub         < 112,8 MB

Proceed with these changes to the system installation? [Y/n]: 

Adopting something like the Android model would only over-complicate things. It's much easier to educate the user that permissions can be manually denied/granted, but again, at a cost of probably borking the program.

If you disagree with the permissions, don't use the program. It's simple.

1 points

What's sad is that most of it is still true.

No, it isn't.

I use Flatpak

Doubt it.

The issue is that the application, not you, is the one that determines which permissions are granted by default. Doesn't that feel one bit odd to you?

The mental gymnastics, holy fucking shit. It's the fucking developer who decides which permissions are required for their application to work correctly. If you're not happy with those permissions, you can:

  1. Override them after installation
  2. Build it yourself
  3. Fuck off

You see, there are libraries that don't really need to be bundled because they are well-maintained and have a stable API, so these libraries need not actually be frozen and yet, they are in flatpaks

The default Flatpak common runtime (org.freedesktop.Platform) contains all the necessary libraries for most programs to work. Still, some programs (especially proprietary ones), could still rely on an older version of a library, or maybe require a library not present in the runtime. So what's your solution to that? Add all libraries ever created to the runtime?

And I can guarantee you that if any of the bundled libraries used by TeamSpeak3 had a critical security vulnerability, Flatpak users would be the least affected by it, thanks to its very restrictive permissions.

Security bugs that have been solved months ago elsewhere will still be found in one of those flatpaks that do this bundling

What Flatpak applications are currently using vulnerable libraries? Can you please link them instead of implying that this is a common occurrence? Also, you know, Flathub is a community-driven effort, so if you happen to notice a program using a vulnerable library, feel free to send a pull request to update it.

You see the irony here? You're referring to a proprietary application. That's going to be the same or even worse in flatpaks.

Where's the irony?! And for the love of God, please do explain to me how a hypothetical vulnerability on TeamSpeak3 is more dangerous to Flatpak users if compared to using the official Arch package. Please don't ignore this one.

Meanwhile, almost all the open source software's dependencies will definitely be handled better in official packages.

So you're ignoring the existence and importance of having proprietary programs working. Gotcha. That does solve the problem!

Do you build a new flatpak for yourself every time you want to update one of them? Hell no.

I do build programs locally that are not on Flathub. What's unusual about that? That's what Flatpak is for.

You pull from flathub. It doesn't build locally by default, unlike the AUR.

What a fucking dumb argument, honestly.

I can ask you the same ret@rded question: Are you also building GCC from source? Or are you using the official, pre-built package from Arch? If so, how do you know you're not using a tampered version that injects malware into the AUR programs you're compiling?

Also, you're denying again that proprietary programs exist in the AUR. Just build the vmware-workstation package you'll notice how many libraries it bundles.

Except, it's not that obvious to a regular user.

Not my problem. Read the fucking manual, I'm not their babysitter.

but the way GNOME, RedHat and others have been pushing it, it's perfectly safe by default. A perfect sandboxed and safe way to run programs

You're so full of shit, no one from GNOME or RedHat ever said that. Plus, software itself is never perfect.

Here's how Flatpak is really advertised:

https://docs.flatpak.org/en/latest/introduction.html#reasons-to-use-flatpak

"Perfect sandboxing" isn't even mentioned once. Not even sandbox, for that matter. Having a tightly sandboxed Flatpak program is a plus, not a requirement.

0 points

Oh boy, you're absolutely wrong about every topic. Let's begin:

questionable advantages of flatpak is that the author of a program can bundle any required libraries or software right in the flatpak.

Please explain to me how adding a library that your program requires to function properly, is something questionable?

while their good old Arch packages have no such issues.

This claim is simply not true and so easily verifiable, that I'll simply give you just one example of a program present in the official repositories that uses their own version of common libraries: teamspeak3 (Qt5, libssl, libc++).

With the AUR, you're locally building the package using the PKGBUILD, so you know exactly what's going on. Flatpaks don't work the same way.

This right here just demonstrates you know absolutely nothing about Flatpak. How do you think Flatpak apps are build?! Jesus.

You most definitely can build a local version of every program available on Flathub, for example. You'd use flatpak-builder for that.

https://flatkill.org/

The issues mentioned in this are sadly very real. I don't like the attitude of the author towards flatpak, but sadly, he's right.

The first statement on that website is so misleading:

Almost all popular applications on flathub come with filesystem=host, filesystem=home or device=all permissions

This includes Gimp, VSCode, PyCharm, Octave, Inkscape, Steam, Audacity, VLC, ...

I personally only use Flatpak for proprietary programs, and I make sure to stay away from the ones using filesystem access. Steam is one of the programs listed as having said access, but that's simply not true. With the exception of read-only access to the Music and Pictures directories, Steam is restricted to ~/.var/app/com.valvesoftware.Steam/.

In order to be as flexible as possible, Flatpak has many levels of protection. Meaning that, while you can deny a program permissions for basic functionality, you can go full idiot and allow all permissions as well.

And that's why it wouldn't make any sense to deny home-folder write access for programs such as GIMP, VLC and VSCode. But you still can do it if you want: Flatpak has a sub-command called override, which allows you to override the default permissions of any installed Flatpak program. Or, if you want want a nice GUI to manage such permissions, you can use Flatseal. Just don't expect all features in the app to work properly after changing those.

My point here is: It's up to you to define what kind of permissions are acceptable or not. It's not a bug, it's a feature.

0 points

Flatpaks are more of a security nightmare than the AUR thanks to bundled, often outdated, dependencies

What?! That's just plain wrong. For instance, if you run a vulnerable flatpak'd program, your system will have a MUCH lower attack surface when compared to the same program installed via AUR, running unsandboxed. Also, the 'bundled libraries' thing you mentioned, is only an issue in proprietary programs, which Flatpak is absolutely great for!

With the AUR, you only need to read the PKGBUILDs.

You can also read Flatpak manifests before building a program, so I'm not even sure what you meant by that.

3 points

Hmm... I'm guessing you've disabled the generation of fallback images...? Because right now my ESP is occupying 424 MiB out of 1 GiB, and we both share very similar numbers, except I have 4 kernels, plus rEFInd installed as well.

3 points

You ran out of space in your EFI (boot) partition (/dev/sda2). That's why I always create them with 1 GiB or more - kinda overkill, yes, but that allows me to install many custom kernels too. Yours is 100 MiB because Windows considers that more than enough for their bootloader (and this partition was automatically created during the Windows installation).

As a workaround (for now), you could manually delete the current initramfs images, then generate new ones (copy the images elsewhere before deleting them, just to be safe):

# cp /boot/initramfs-linux{,-fallback}.img $HOME
# rm -f /boot/initramfs-linux{,-fallback}.img
# mkinitcpio -P

Ideally, though, you should find a way to resize the Windows Recovery partition (probably /dev/sda3?) - since it's usually the one adjacent to the EFI partition, thus allowing you to easily shrink it to increase the EFI one.

Giving an additional 100 MiB to the EFI partition should be enough (for a single kernel).

21 points

What is NETGEAR Armor?

NETGEAR Armor™ protects your connected home from Internet threats. Multi-layer cyber security is built into the WiFi router to protect all devices on the home network. Includes Bitdefender® Total Security to provide complete anti-virus and anti-malware protection for all Windows, macOS, Android and iOS devices.

Oh hell naaaaaaaw

191 points

The email section in the PKGBUILD comment is there precisely for people to copy and paste to email the maintainer.

That is merely a convention, not a requirement. The comment section in the AUR exists for a reason... And if a package maintainer chooses to display their email publicly, it will be displayed in their AUR profile.

Captcha's don't test that you're running a Linux machine.

And why would block non-Linux users from registering in the forums or the Wiki?!?!?!

And plenty of people copy/paste and run it without knowing what it does.

My point, exactly. When you're at the registration page and see it asking you to run an unknown command, the user basically assumes that when they run that command, their computer won't be wiped out. IMO that's a little hypocritical.

4 points

That's really cool of you guys.

But don't you think that if someone decides to copy a command that is merely a comment in a PKGBUILD, which has a reference to sudo, and even then that person willingly decides to execute it, it's kinda their own fault?

One, because that's not what PKGBUILDs are for. Two, because they're not sure of what that command even does. And three, if they aren't qualified enough to read and understand a PKGBUILD, they shouldn't be using it in the first place?

By the way, this whole situation just reminded me of something: When you try to create an account on Arch Forums (or Wiki, I'm not sure), it asks you to copy and run an "obfuscated" command so you can create your account. Whatever happened to captchas, I guess.

7 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.