linux

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

ipacialsection, (edited ) in Edit: Flatpak (possibly regression) issue caused by either xdg-desktop-portal-gtk and/or xdg-desktop-portal-gnome
@ipacialsection@startrek.website avatar

It still sounds to me like something’s up with the disk. Can’t think of any solutions to suggest but I would run a SMART health check on it:


<span style="color:#323232;">sudo apt install smartmontools  
</span><span style="color:#323232;">sudo smartctl -a /dev/sda
</span>

If you prefer a graphical tool, you can do the same thing with GNOME Disks, which also has options for disk benchmarking.

In the resulting report, the overall health state should be “PASSED”, the “Type” column should show “Pre-fail” and “Old age” values, and the “Media-Wearout-Indicator” should be close to 100. If the overall health state is “FAILED”, then you will want to back up your files immediately and consider getting a new SSD.

jackpot,
@jackpot@lemmy.ml avatar

ive tried that actuqllt, it said there was no dev/sda. it did aay there was a dev/nvme0. scanned it and it ‘passed’ but i can try again

ipacialsection,
@ipacialsection@startrek.website avatar

/dev/nvme0 is probably your SSD. But if it passed you probably have nothing to worry about

jackpot, (edited )
@jackpot@lemmy.ml avatar

wait i think ive had a breakthrough, all system packages SEEM to run fine but all flatpak applications are effected. this seems to be flatpak related

jackpot,
@jackpot@lemmy.ml avatar

just tested it, vlc system package opens in .2 seconds but flatpak opens in 30 seconds.

db2,

Who’d have ever thought that having 47 copies of a library instead of using a shared library wouldn’t work out great. 🙄

jackpot, (edited )
@jackpot@lemmy.ml avatar

i do it for the sandboxing and flatseal. any suggestions?

db2,

Not specifically. It’s probably actually a configuration problem though, for any other program I’d delete or default the settings. Not sure how to do that for flatpak itself as I won’t use it.

jackpot,
@jackpot@lemmy.ml avatar

why wont you use it

db2,

The only use case I can see with any validity is for the sandboxing features, and I have no need of that currently.

32b99410_da5b,

You mean 1 copy and 46 links.

Flatpak isn’t a disk hog and this urban legend is dumb.

db2, (edited )

You mean 1 copy and 46 links.

That’s a shared library with extra steps. It’s also loaded 47 times. Thanks for playing.

jackpot,
@jackpot@lemmy.ml avatar

this impacts file access speeds too, system package opens things in like .2 of a second but flaptak again takes like 30

ipacialsection,
@ipacialsection@startrek.website avatar

Definitely flatpak related then. Try running one of your flatpak apps from the terminal, and post the output here; might help pinpoint the issue. You can list the ones you have installed with flatpak list, then flatpak run <one of the listed apps, e.g. org.videolan.vlc>.

jackpot,
@jackpot@lemmy.ml avatar

it took 30 seconds but this got outputted and then the file ran: dave@dog: ~$ flatpak run org.x.Warpinator Gtx-Message: 14:29:03.389: Failed to load module “xapp-gtk3-module” Using landlock for incoming file isolation

ipacialsection,
@ipacialsection@startrek.website avatar

Looking online, there are some suggestions to either (re)install xapp:

sudo apt install --reinstall xapp

or a related library:

sudo apt install --reinstall gir1.2-xapp-1.0

However, usually I find that errors like this mean nothing, so I wouldn’t be surprised if these steps change nothing.

SheeEttin, in Linus Torvalds postpones Linux 6.8 merge window after being taken offline by storms

Does Linus still maintain that much control over it? I feel like I read something a few years ago about him starting to step back.

duncesplayed,

In a certain light, you could argue that Linus doesn’t really have any control at all. He doesn’t write any code for Linux (hasn’t in many years), doesn’t do any real planning or commanding or managing. “All” he does is coordinate merges and maintain his own personal git branch. (And he’s not alone in that: a lot of people maintain their own Linux branches). He has literally no formal authority at all in Linux development.

It just so happens that, by a very large margin, his own personal git branch is the most popular and trusted in the world. People trust his judgment for what goes in and doesn’t go in.

It’s not like Linux development is stopped because Linus goes offline (or goes on vacation or whatever). People keep writing code and discussing and testing and whatnot. It’s just that without Linus’s discerning eye casting judgment on their work, it doesn’t enter the mainstream.

Nothing will really get slowed down. Whether something officially gets labelled by Linus as “6.8” or “6.whatever” doesn’t really matter in the big picture of Linux development.

lud,

He does still own the trademark though.

KrapKake, in What are some interesting devices powered by Linux?

Really it’s the backbone of the modern tech world.

merc,

Yeah, it used to be just web servers in a data center. Bigger systems used mainframes. Consumer electronics used custom RTOSes or other custom boards. Now it’s everywhere. It’s used in the biggest systems, like the computers that power virtually every Google product, and the smallest systems. It’s almost not worth it not to use Linux when building a tiny device because it makes the dev cycle so much shorter.

acid_falcon,

Jesus I’ve been using Linux for years and your comment just made this really click for me. Do you think Linus is protected by governments and stuff? Like I know he didn’t make all of it, and there’s lots of forks, but he’s defacto in charge… That’s gotta be a lot of soft power

jackpot, in Linus Torvalds postpones Linux 6.8 merge window after being taken offline by storms
@jackpot@lemmy.ml avatar

bill gates controls the weather

bionicjoey,

It’s because of the COVID vaccine mind control chips he put in everyone. If he wants to cause a storm, he just makes the entire population of Norway start flapping their arms in unison, which causes atmospheric disruption that leads to storms.

jackpot,
@jackpot@lemmy.ml avatar

he makes them piss actually

pbjamm,
@pbjamm@beehaw.org avatar

Bill Gates is Pissmaster?

jackpot,
@jackpot@lemmy.ml avatar

like rock and mirty

pbjamm,
@pbjamm@beehaw.org avatar

Aww Geez

tgxn,
@tgxn@lemmy.tgxn.net avatar

He only controls the windows that keep it out!

Murdoc,

Don’t be silly, that’s just ridiculous. He’s not that powerful. But he is on the secret syndicate boards with the people that do. 😳

vole, (edited ) in Wayland running GUI program as another user
@vole@lemmy.world avatar

I got interested, so I spent some time looking into what’s going on here. I’m not intimately familiar with X11 or Wayland, but I figured out some stuff.

Why sudo ip netns exec protected sudo -u user -i doesn’t work for X11 apps

Short answer: file permissions and abstract unix sockets (which I didn’t know were a thing before now).

File permissions: when I start an X11 login session, the DISPLAY is :0 and /tmp/.X11-unix/ has only 1 file X0. This file has 777 access. When I start my wayland session with Xwayland, the DISPLAY is :1 and /tmp/.X11-unix/ has 2 files X0 (777) and X1 (755). I can’t figure out how to connect to display :0, so I guess I’m stuck with :1. When you change to a different (non-root) user, the user no longer has access to /tmp/.X11-unix/X1.

Abstract unix sockets: When I start my wayland/xwayland session, it creates abstract unix sockets with ids @/tmp/.X11-unix/X0 and @/tmp/.X11-unix/X1. See ss -lnp | grep Xwayland. The network namespace also sandboxes these abstract unix sockets. Compare socat ABSTRACT-CONNECT:/tmp/.X11-unix/X1 STDIN and sudo ip netns exec private socat ABSTRACT-CONNECT:/tmp/.X11-unix/X1 STDIN.

When you do sudo ip netns exec protected su - user, you loose access to both the filesystem unix socket /tmp/.X11-unix/X1 and the abstract unix socket @/tmp/.X11-unix/X1. You need access to one or the other for X11 applications to work.

I tried using socat to forward X1 such that it works in the network namespace… and it kinda works. sudo ip netns exec protected socat ABSTRACT-LISTEN:/tmp/.X11-unix/X1,fork UNIX-CONNECT:/tmp/.X11-unix/X1. It appears having ABSTRACT-LISTEN before UNIX-CONNECT is important, I guess it would be worth it to properly learn socat. With this sudo ip netns exec protected su - testuser -c ‘env DISPLAY=:1 xmessage hi’ works, but sudo ip netns exec protected su - testuser -c ‘env DISPLAY=:1 QT_QPA_PLATFORM=xcb kcalc’ does not work. 😞

Changing the file permissions on /tmp/.X11-unix/X1 to give the user access seems to work better.

Wayland waypipe

Waypipe works as advertised. But it’s still a little bit tricky because you need to have two separate processes for the waypipe client and server, wait for the waypipe socket to be created, adjust file permissions for the waypipe socket file, and set (and probably mkdir) XDG_RUNTIME_DIR.


<span style="color:#323232;">waypipe -s /tmp/mywaypipe client &amp;
</span><span style="color:#323232;">sleep 0.1
</span><span style="color:#323232;">chgrp shared-display /tmp/mywaypipe
</span><span style="color:#323232;">chmod g+w /tmp/mywaypipe
</span><span style="color:#323232;">sudo ip netns exec protected su - testuser -c 'mkdir -p -m 0700 /tmp/runtime-testuser &amp;&amp; env XDG_RUNTIME_DIR=/tmp/runtime-testuser waypipe -s /tmp/mywaypipe server -- env QT_QPA_PLATFORM=wayland kcalc'
</span><span style="color:#323232;">kill -SIGINT %1
</span>

Combined

into this script github.com/…/run-netns-user-wayland.bash

shadowintheday2,

Sir, you’re awesome! Thank you a lot for taking your time and explaining what you have found I will try these steps when I have some free time to tinker, and the info and script you have provided has cleared a lot of questions that I had

MRLimcon, in Edit: Flatpak (possibly regression) issue caused by either xdg-desktop-portal-gtk and/or xdg-desktop-portal-gnome
@MRLimcon@lemmy.ml avatar

I had this problem with flatpaks, I changed the dbus implementation to dbus-broker (in endeavouros) and it fixed the issue. It may be the same problem.

jackpot,
@jackpot@lemmy.ml avatar

how do yoy do that

MRLimcon,
@MRLimcon@lemmy.ml avatar

I installed dbus-broker and the package manager checked the dependencies and removed the unnecessary stuff. After that I applied the dbus-broker services:

systemctl enable dbus-broker.service

sudo systemctl --global enable dbus-broker.service

And then restarted.

Idk if it might break things in mint, so I would be cautious.

jackpot,
@jackpot@lemmy.ml avatar

by any chance does this have to do with gtk3?

MRLimcon, (edited )
@MRLimcon@lemmy.ml avatar

Yes, I remember reading about a gtk thing that interacts with flatpak, they said it should not give this error in April, but it seems to still be happening, idk.

Edit: I just saw that you deleted the gtk portal and it worked! So no need to install another dbus daemon.

smileyhead, in With Firefox on X11, any page can pastejack you anytime

JavaScript was a mistake.

LufyCZ,

Yes, pure html pages are so much better and nicer to use!

mortrek, (edited ) in linux mint became super slow

Random shot, because it’s probably not an issue on Mint like it was on Arch a few months ago, but xdg-desktop-portal problems can cause apps to take forever to load, but run fine once loaded.

edit: Try removing xdg-desktop-portal-gtk and/or xdg-desktop-portal-gnome

jackpot,
@jackpot@lemmy.ml avatar

is that the syncthing thing i have cause that boots on startup

mortrek, (edited )

Portal basically is an interface/backend for flatpaks to interface with toolkits & DEs. If you don’t use flatpak, xdg-desktop-portal and associated backends should be removable. Even if you do, try removing the gtk and gnome backends w/apt. Hopefully it won’t try to remove a ton of stuff due to dependencies. Then, reboot and see if the slow loading problem goes away. If it does, you can try re-adding one or the other and see if it comes back.

Does logging in take forever as well?

Also after some cursory research, some people have had problems with portal on Mint after updates as well, just like on Arch. So… definitely try it.

jackpot,
@jackpot@lemmy.ml avatar

ngl youre my only hope or i have to re-install linux lol talk soon lmfao!!

jackpot, (edited )
@jackpot@lemmy.ml avatar

wait hold on this is very likely holy shit, check my most recent post. the issue i have only impacts flatpaks. hold on what command do i run exactly and how dangerous is this. also tysm

this is a comment on my new post: it took 30 seconds but this got outputted and then the file ran: dave@dog: ~$ flatpak run org.x.Warpinator Gtx-Message: 14:29:03.389: Failed to load module “xapp-gtk3-module” Using landlock for incoming file isolation

skullgiver, (edited ) in linux mint became super slow
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • jackpot, (edited )
    @jackpot@lemmy.ml avatar

    what command would you use to trim on linux mint, the drive isnt dying to my knowledge. i just ran smartctl and it says i have 0 unallocated nvm capacity?

    skullgiver, (edited )
    @skullgiver@popplesburger.hilciferous.nl avatar

    deleted_by_author

  • Loading...
  • jackpot,
    @jackpot@lemmy.ml avatar

    Check my new post or comment below, it appears to be a Flatpak issue caused by gtk3. No idea how to fix but I’m getting close to a diagnosis

    skullgiver, (edited )
    @skullgiver@popplesburger.hilciferous.nl avatar

    deleted_by_author

  • Loading...
  • jackpot,
    @jackpot@lemmy.ml avatar

    dyk the gtk3 module?

    Fizz, in On the Road to Plasma 6, Vol. 5 – Kai Uwe's Blog
    @Fizz@lemmy.nz avatar

    I’m going to need to get a better monitor to really appreciate the polish and work that’s been put into fractional scaling

    1984,
    @1984@lemmy.today avatar

    4k monitors are awesome, you will never go back. Icons are sharp and looks almost as good as on mac OS.

    bazsy, in Edit: Flatpak (possibly regression) issue caused by either xdg-desktop-portal-gtk and/or xdg-desktop-portal-gnome

    What filesystem are you using? Is it encrypted?

    Could you run a benchmark to verify if reads and writes are both affected? KDiskMark is like crystaldiskmark or Gnome Disks has a built in benchmark.

    jackpot,
    @jackpot@lemmy.ml avatar

    not encyrpted. i tried running a write test in gnome disks but i get 'error unmounting /dev/nvme0n1p2: target is busy (udisks-error-quark, 14)

    Atemu, in I'm an idiot (arm)
    @Atemu@lemmy.ml avatar

    There is unrar which is source-available but its license is unfree because it restricts usage. See: fedoraproject.org/wiki/Licensing:Unrar

    harsh3466,

    I do have unrar installed, but I’m not able to modify in place or add new files to the archive with it, which is the functionality I’m missing.

    Atemu,
    @Atemu@lemmy.ml avatar

    Indeed it won’t modify rar archives. What do you need those for?

    The typical flow for rar archives is to unpack them and then either leave the files on disk as plain files or put them into a better archive format such as 7z.

    harsh3466,

    My initial goal (before learning what a headache rar is) was to preserve the original file format. Now my plan is to convert them. I have to confer with my friend to see what format they’d prefer for the files. Probably end up using regular old zip.

    milicent_bystandr, in ELI5 the whole Wayland vs X11 going on.

    xkcd.com/963/ (October 2011)

    https://imgs.xkcd.com/comics/x11.png

    [Mouseover text] Thomas Jefferson thought that every law and every constitution should be torn down and rewritten from scratch every nineteen years–which means X is overdue.

    porous_grey_matter,

    it also means Wayland is due to be replaced in a few years lol

    caseyweederman,

    You know… That’s fair.

    LeFantome,

    As somebody that first configured X back in 1991, I agree with this message.

    To be fair though, with KMS, libdrm, and libinput, setting up X is 1000 times easier than it used to be. I suspect most users never even need to open Xorg.conf or even know it exists.

    Ironically, all these technologies are also used by Wayland. A lot of what Wayland does not do, Xorg basically does not do either.

    kensand, in [Resolved - now using Onboard] Any recommendations for an on-screen keyboard like the one that Windows has. The one that comes with Gnome is annoying to use...

    I’ve had a good experience with Onboard.

    mmababes, (edited )

    Trying it out right now

    Update: I think that Onboard is good enough to replace Gnome’s OSK.

    hperrin,

    The last release came out 7 years ago…

    kensand,

    No? last release was 1-1-2024…

    hperrin, (edited )

    Those are just changes to the build system. The last upstream release was 7 years ago. Last commit to the main branch was 6 1/2 years ago. This project is unmaintained. It should be forked by someone who is passionate about it.

    aBundleOfFerrets,

    I wouldn’t call that unmaintained then?

    Abnorc,

    Can anyone give a layman an explanation as to what makes software like this unmaintained? It seems like it should be fine if it works and is still getting updates.

    yukijoou,

    the package is maintained (will continue to install on modern ubuntu versions), but the software is unmaintained (no bug fixes, no new features, will stagnate and eventually become obselete as incompatible with future desktop standard modifications)

    Molecular0079,

    Does it work in Wayland?

    ashley,

    Does it work with Wayland?

    kensand,

    Presumably via Xwayland, but I haven’t tried it.

    ashley,

    I wouldn’t be so sure about xwayland, it would need the ability to insert keystrokes. I don’t know at what level it does that

    jackpot, in Edit: Flatpak (possibly regression) issue caused by either xdg-desktop-portal-gtk and/or xdg-desktop-portal-gnome
    @jackpot@lemmy.ml avatar

    alright edit: I have a Flatpak issue, not an SSD issue. does anyone have any thoughts? this could be due to the new linux mint update. my pc is a samsung galaxy s2 (750XED P13CFG)

    jackpot,
    @jackpot@lemmy.ml avatar

    the linux mint discussion forum has a post about my model not being great but last update my system worked just fine. i actually think having a full ssd broke flatpak. otherwise ive hit a horrible regression issue github.com/orgs/linuxmint/discussions/277

    danielfgom,
    @danielfgom@lemmy.world avatar

    Backup and install a fresh Linux Mint.

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

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 23761536 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 174

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 6307840 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 33