• Skullgrid@lemmy.world
    link
    fedilink
    arrow-up
    37
    ·
    4 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
      38
      ·
      4 days ago

      That’s so stupid.

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

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

              Yeah, venvs are the answer to “why is that folder 8gb?”

              Containers are the answer to “why is my hard drive completely full”

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

                Yeah, venvs are the answer to “why is that folder 8gb?”

                Containers are the answer to “why is my hard drive completely full”

                They are both the answer to “why is my project not working here where it’s working there” and “why do I need 17 copies of libc in their own little soft jails?”

              • IrateAnteater@sh.itjust.works
                link
                fedilink
                arrow-up
                3
                ·
                4 days ago

                Containers are the answer to “why is my hard drive completely full”

                Hold up, are people just out there not using Alpine for a container base image?

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

                Containers are the answer to “why is my hard drive completely full”

                What morons!

                *Hides 100gb of VM images in /var/lib/libvirt/images/ on his 230gb SSD*

          • x0x7@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            4 days ago

            Docker took off because Ubuntu can’t run current software. Now you need multiple copies of an up to date Linux visualized just to keep it interacting with old software on a base system we insist we need.

            If all your docker images prove that an up to date Linux can run, then why not just make the main system up to date and you won’t need docker as much.

    • corsicanguppy@lemmy.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      4 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
        2
        ·
        4 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.

  • juipeltje@lemmy.world
    link
    fedilink
    arrow-up
    21
    ·
    4 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

      • juipeltje@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        4 days 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
      4 days 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
          ·
          3 days 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
            3 days 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
              ·
              3 days 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
                ·
                3 days 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
                  1
                  ·
                  2 days ago

                  thanks for trying. I did that, I get to the login, and then I get a mouse and a black screen after the login still. I basically did (more or less):

                  before
                    (services
                     (append (list (service xfce-desktop-service-type)
                  
                                   ;; 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))
                  
                  after
                    (services
                     (append (list (service lxqt-desktop-service-type)
                  
                                   ;; 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.
                             (modify-services %desktop-services
                                          (gdm-service-type config =>
                                                     (gdm-configuration
                                                       (inherit config)
                                                       (wayland? #f)
                                                       )
                                            )
                                )
                  
                  ))
                  
                • Skullgrid@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  3 days 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.

  • jpreston2005@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 days 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 😭

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

      I have been using Linux for 15 years and have never had to do this. As long as you choose a mature, stable distro (not arch or the newest fad) you will have a much easier time.

    • Goodlucksil@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      4
      ·
      3 days 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
      4
      ·
      3 days 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
        4
        ·
        3 days 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

  • Solrac@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 days 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!

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 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.

  • BCsven@lemmy.ca
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    4 days ago

    Its like the Gnome extension not available for your version, so you just edit the file to have your version in its list. Usually works

  • x0x7@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    4 days ago

    Ubuntu problems. Just use Arch. Then all of your software is from the same era… aka current.