• pewpew@feddit.it
    link
    fedilink
    arrow-up
    8
    ·
    17 hours ago

    Apparently sometimes you have to remove symlinks to make programs load. I had a very weird bug that made a library fail to load even if the symlink was good. I wrote a bug report to bugs.debian.org and they told me to remove the symlink. That fixed it, wtf

  • megopie@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    6
    ·
    20 hours ago

    CKAN (mod manager for kerbal space program) created a multi month long battle for me because it started making copies of the original game for mod installs with symlinks to the original game files rather than just copying it outright, this made it impossible to boot certain mods because part of their first time set up was overriding files. Eventually I realized what the problem was and just manually copied the files in to the folder before loading up the mods for the first time.

    WHICH IS INFURIATING! The whole reason I made new game installs was so that shit could be overwritten without breaking the base instal! WHY THEY HELL WOULD IT DEFAULT TO SYMLINKS FOR THAT?

  • jpreston2005@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    17 hours ago

    As a lay-person, reading these memes and comments, and understanding nothing, is probably the biggest factor that’s made me decide that, while I hate windows, I’ll never feel comfortable using Linux. I mean, seriously, how much of the time are you frustratingly troubleshooting stuff? I just want something like Windows that won’t shove ads and ai bullshit at me and won’t brick my laptop after updates 😭

    • Damage@feddit.it
      link
      fedilink
      arrow-up
      3
      ·
      2 hours ago

      Let’s just say that Linux invites tinkering, and there are consequences. If you install a mainstream (fedora), reliable (fedora) distro, and just do normal stuff, it’s unlikely you’ll encounter more issues than Windows. Or even a tenth of the issues.

      • glibg10b@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago

        For me, the difference between Windows and Linux is that when I encounter a weird issue on Windows, I might decide to give up, while on Linux, I can always dig deeper if I have enough time

    • SavvyWolf@pawb.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 hours ago

      To flip that on it’s head, if you do have computer issues, would you rather get help from someone who laughs at these silly memes or a huge ai powered bureaucracy that prioritises upselling and closing tickets?

    • Goodlucksil@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      4
      ·
      15 hours ago

      I use Linux Mint since last June and I rarely have to troubleshoot my PC and when I have to, it’s obviously my fault for messing around.

    • tomatoely@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      3
      ·
      16 hours ago

      If it makes you feel any better, everytime I had to do this was because I was going out of my way to fix a linux game I compiled myself or some service I hacked together. I’m 99% sure you can have a hassle-free linux desktop experience if you follow the standard way your distro suggests of doing things. Have you tried testing the waters with a linux live usb stick yet?

      • jpreston2005@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        14 hours ago

        Oh I haven’t tried anything yet. I’m too scared I’ll fuck it up 😅 Anything that has me loading boot screen and entering commands has me thinking I’ll just absent mindedly type “delete system/32” somehow

  • jkercher@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    18 hours ago

    Reminds me of when I abused LD_LIBRARY_PATH and installed a Linux from scratch distro on a headless test server that no one was using. I got it all the way to x11 forwarding a full i3 environment without super user privileges.

  • Solrac@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    20 hours ago

    What in ln - s good name are you suggesting. Any and all uses of ln - s /usr/lib/something.so.7 /usr/lib/something.so.6 is merely accidental!

  • avocado@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    21 hours ago

    Guys do not do this, it’s gonna cause a mess further down the line.

    “The problem with creating these links is that they aren’t managed in any meaningful way. If that library is removed, the link becomes broken. If the library is upgraded, it may encounter an error because of the link that it doesn’t expect to be there.”

    https://askubuntu.com/questions/461706/is-it-okay-or-not-to-symlink-libraries-to-overcome-cannot-open-shared-object

  • Skullgrid@lemmy.world
    link
    fedilink
    arrow-up
    72
    ·
    2 days ago

    What about setting up a new environment correctly instead?

    Says the man that just copied and pasted, then checked in 800mb of shitty angular dependencies just to get Jenkins to be able to build his inherited project.

    It’s ok, they don’t pay me enough to support a family and don’t give a shit about this project, and it’s for internal use.

    • [object Object]@lemmy.ca
      link
      fedilink
      arrow-up
      71
      ·
      2 days ago

      That’s so stupid.

      downloads and runs entire Linux distro just to run a python script without managing dependencies

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 days ago

      Jenkins

      This is where I spat my tea: not because jenkins is super old but because I still have residual PTSD from using it.

      My sympathies.

      • Skullgrid@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        not because jenkins is super old

        I mean, I just updated the wallpaper on that machine to be Ask Jeeves for maximum millennial retro points for when I use it and can tell at a glance which stupid VM I am looking at.

  • morto@piefed.social
    link
    fedilink
    English
    arrow-up
    23
    ·
    2 days ago

    I remember when games would’t work with wine, complaining about some dll, I would get it from some random shady site and drop into the wine system dir. Some of the times, it worked, to even my own surprise

    • terranoid@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      34
      ·
      2 days ago

      “DLL finder”, holy shit I remember tools like that… God, now that I know how shared libraries work, that’s kinda terrifying people just saw that error message and downloaded whatever the fuck they found whereever they found it…

      Must be how some malware spread.

  • juipeltje@lemmy.world
    link
    fedilink
    arrow-up
    32
    ·
    2 days ago

    Meanwhile as a guix+nix user i can just build it against that old library version because nothing can conflict with each other anyway

      • fleck@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        17 hours ago

        How does Gentoo deal with this? Just curious, I’m looking to try it this weekend

        • SigHunter@discuss.tchncs.de
          link
          fedilink
          arrow-up
          1
          ·
          15 hours ago

          well, for one, Gentoo builds it’s packages from source when you install them, so you don’t need a binary that targets your specific version of libraries because it was built with those library versions from that point in time. like with other distros, you have to choose the el9, el10, fc44, fc45 version or the one for “noble”, “forky”, “bookworm” or “trixie”. on Gentoo, the application you install get’s linked to the library version you have installed. (simplified)

          for the second part, the “conflict with each other”, Gentoo doesn’t do it like NIX, where you have those unique paths like “/nix/store/ggl4fqsvvlyf1y3rl6mk72nf0dc8c8hr-system-path/bin/bash”. but some packages (but not all) have “slots” that you can install in parallel. (e.g. rust, python, gentoo-kernel, wine, lua, …)

          usually the actual binary of those packages is named like the version, e.g. /usr/bin/python3.14 and /usr/bin/python (which is the thing that actually gets used via PATH) is a symlink that you can switch with Gentoo tooling (eselect). another way it is done is: packages you install come preset with what dependency version they like to use and that version gets installed along the already installed version, if necessary. (e.g. they set RUST_MIN_VER=“1.98.0” or PYTHON_SINGLE_TARGET=“python3_12”)

          when a dependency gets updated, sometimes the application also needs to get rebuilt to that updated library version. it happens automatically on dist-upgrade (@world update)

          • fleck@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            5 hours ago

            thank you, that makes sense. have you used nix/nixOS before? I am currently using it and considering to switch (maybe to gentoo ^^)

      • juipeltje@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        Well i use guix as a full OS but i still have nix installed as well for some packages that aren’t in guix

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 day ago

      can you teach me how to make a config file that only has lxqt? I tried the thing below replacing XFCE with LXQT and failed loads, I’m tired of wasting gigs and hours trying to make it work when I’m sleepy.

      spoiler
      ;; This is an operating system configuration generated
      ;; by the graphical installer.
      ;;
      ;; Once installation is complete, you can learn and modify
      ;; this file to tweak the system configuration, and pass it
      ;; to the 'guix system reconfigure' command to effect your
      ;; changes.
      
      
      ;; Indicate which modules to import to access the variables
      ;; used in this configuration.
      (use-modules (gnu))
      (use-service-modules cups desktop networking ssh xorg wm)
      
      (operating-system
        (locale "en_GB.utf8")
        (timezone "America/place")
        (keyboard-layout (keyboard-layout "gb"))
        (host-name "pc")
      
        ;; The list of user accounts ('root' is implicit).
        (users (cons* (user-account
                        (name "name")
                        (comment "name")
                        (group "users")
                        (home-directory "/home/name")
                        (supplementary-groups '("wheel" "netdev" "audio" "video")))
                      %base-user-accounts))
      
        ;; Packages installed system-wide.  Users can also install packages
        ;; under their own account: use 'guix search KEYWORD' to search
        ;; for packages and 'guix install PACKAGE' to install a package.
        (packages (append (list
                                (specification->package "xterm")) %base-packages))
      
        ;; Below is the list of system services.  To search for available
        ;; services, run 'guix system search KEYWORD' in a terminal.
        (services
         (append (list (service xfce-desktop-service-type) ;; I replaced this with  lxqt-desktop-service-type and it didn't "start" the DE properly when I logged in, I just got a blank screen, or worse, it failed to install properly with different "rest of the file"
      
                       ;; To configure OpenSSH, pass an 'openssh-configuration'
                       ;; record as a second argument to 'service' below.
                       (service openssh-service-type)
                       (set-xorg-configuration
                        (xorg-configuration (keyboard-layout keyboard-layout))))
      
                 ;; This is the default list of services we
                 ;; are appending to.
                 %desktop-services))
        (bootloader (bootloader-configuration
                      (bootloader grub-bootloader)
                      (targets (list "/dev/vda"))
                      (keyboard-layout keyboard-layout)))
        (swap-devices (list (swap-space
                              (target (uuid
                                       "666id")))))
      
        ;; The list of file systems that get "mounted".  The unique
        ;; file system identifiers there ("UUIDs") can be obtained
        ;; by running 'blkid' in a terminal.
        (file-systems (cons* (file-system
                               (mount-point "/")
                               (device (uuid
                                        "666id"
                                        'ext4))
                               (type "ext4")) %base-file-systems)))
      
      

      This is just to run in a VM in Virtual Machine Manager

        • Skullgrid@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          18 hours ago

          If it does reconfigure successfully, it just gives a blank screen, or takes me to the terminal login prompt instead of a GUI login prompt.

          I tried other things and it fails after hours of downloading packages and building. Does it seem right to you? What do you think I might be missing?

          • juipeltje@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            17 hours ago

            Well from a glance the config looks fine. I looked at the documentation but there’s not a lot of information on what the lxqt service actually includes. My first guess as to why it drops you to a tty is that perhaps it doesn’t include a display manager.

            Edit: actually nevermind, you’re appending to %desktop-services and i’m pretty sure that includes gdm. Maybe the problem lies in gdm trying to use wayland by default. There’s an option to change that, i’ll see if i can find it.

            • Skullgrid@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              17 hours ago

              thanks so much. The documentation that I’ve glanced just makes it seem so easy, “just replace X with Y and nothing more!”

              • juipeltje@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                16 hours ago

                I’m not sure if this will work, but what you can try is replacing the %desktop-services with this:

                (modify-services %desktop-services
                  (gdm-service-type config =>
                                                   (gdm-configuration
                                                     (inherit config)
                                                     (wayland? #f))))
                

                I’m not sure if wayland is actually the problem though, especially if gdm was working fine before you swapped to lxqt. Another thing i’m thinking of is maybe lxqt isn’t properly exposing a session file to gdm, and perhaps gdm crashes because it doesn’t find any sessions to start. I think i’ve seen other people adding this session file manually but i would have to look up how it’s done. The thing is i don’t use a DE myself, and i’m using greetd+gtkgreet as a display manager and it just launches me into a tty, and then my bash_profile has a snippet that checks which tty i’m and whether it’s empty, and if it is it launches my wayland compositor of choice.

                • Skullgrid@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  15 hours ago

                  I’ll give it a go at some point and get back to you in this thread and share what happened. Thanks for this advice anyway.

            • Skullgrid@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              18 hours ago

              I haven’t tried to be honest, since it defeats the entire purpose of fucking around with Guix. I made a few posts on this, but I just fuck around with VMs when I haven’t done a “technical” activity to avoid feeling like a useless jackass, and one of the distros I wanted to learn about is Guix.

              If I want to run guix install lxqt I can. But why would I want to use Guix to have a user with a certain desktop environment? I want to be able to set up machines at the drop of a hat that are all the same all the time, and I want the machine to be all the same, not the user.

              • MaskedNybbles@piefed.social
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                18 hours ago

                For anyone else reading, I stupidly deleted my comment where I asked more-or-less the following (sorry):

                This might be a stupid question, as I am unfamiliar with GUIX/Nix and am unlikely to be able to help, but what happens when you try to run LXQt from the CLI?

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    15
    ·
    2 days ago

    In my experience, this works about 25% of the time and is cause for extreme nervousness about what will happen if it tries to call a function that isn’t actually present in the version it has been fooled into accepting.

    It’s never actually formatted my entire system even when it’s gotten me a little further, perhaps to a different sort of crash, but that fear is always there.

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 days ago

    The most junk hack I ever did (that somehow worked) was replacing a Tensorflow 1.x library set with the Tensorflow 2.x library set and keeping the original 1.x symlink so that the software using it would think it’s still the 1.x. .so file lol.

    I presume the API had some deprecated fallback for poorly migrated software, which is why it worked without complaints.

    Also bazel is by far the worst build system I have ever used.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      2 days ago

      COM solved all this stuff over 30 years ago. When you’re making breaking changes to an interface, you create a new one while still keeping the old one around (at least for a while). Both interfaces are shipped with the same DLL. Software written for the old interface continues to work, while newer software can take advantage of the extra features in the new interface.

      You can do something kinda similar in Linux with sonames, like libfoo.so.1, libfoo.so.2, etc. but there’s still a bunch of use cases where you need to use LD_LIBRARY_PATH, and they’re entirely separate libraries vs the COM approach where both interfaces are in a single library.

      Modern software keeps poorly reinventing the same concept. Software like Home Assistant has breaking changes between releases because they don’t have a consistent interface.