linux

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

mvirts, (edited ) in How do I create a docker container with custom programs inside?

Idk anything about those softwares, but I would bet if you set up the hide.me client in a container you could add it to the same network in compose then configure all the other containers to use it as their gateway… I’m probably missing some details and you may need to rebuild all of your containers, or maybe just change the network settings in your compose yaml?

LaterRedditor, in Windows NT Sync Driver Proposed For The Linux Kernel - Better Wine Performance

Is there any risk of lawsuits from Microsoft for all these?

Chewy7324, (edited )

No, this kernel patch will be different to what’s in Windows code. It implements what’s necessary for wine to be more performant, not the actual Windows API itself.

Wine implements those Windows API/ABIs, which is legal because it’s done by reverse-engineering. I believe in some countries (US?) it’s also necessary for the devs to never have seen Windows code.

PS: Google v. Oracle is a US supreme court decision where Oracle lost at trying to patent Java API’s.

…wikipedia.org/…/Google_LLC_v._Oracle_America,_In….

mvirts, in I feel like I'm missing out by not distro-hopping

Nothing, unless you’re not using nixos, then everything 😹

Dariusmiles2123, in Breaking Windows to let the penguin in...

I’m happy for you as it’s always nice to make that first big jump.

You won’t regret it. At least, I haven’t!

Chickerino, in What are some must have Linux compatible VSTs?

do plugins that run on wine count?

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

They do, but I think that I am going to try to keep my Linux system with only native plugins.

Lojcs, in Does Nix's break from FHS cause problems?

Why doesn’t nix use fhs again?

priapus,

A lot of features of the Nix package manager, such as having multiple versions of a package installed, don’t work with FHS.

OmnipotentEntity,
@OmnipotentEntity@beehaw.org avatar

Because the nix package manager places all system packages under /nix/store/uniquehash-packagename-version/

Where the unique hash is obtained via a Merkel tree of all the inputs. So in particular, binaries and libraries exist underneath those directories, not in the places you would expect from FHS.

In order to make the system actually work, environment variables are set up and executables are patched to refer to specific paths within the Nix Store.

fl42v,

So that it’s possible for different versions of software/libs to coexist on the same system

madmaurice,
@madmaurice@discuss.tchncs.de avatar

Nix installs derivations into separate folders. A derivation can be a package, but can also be other things like configuration files, scripts or sources for packages. Nix doesn’t distinguish between these derivations by a name but rather by a hash created from their build instructions.

For example two instances of the same package with a different version are two different derivations and thus nix can have both package versions installed without them interfering with each other. But this goes beyond just a package version. It is e.g. possible to have the same package with the same version but different patches applied, or relying on different versions of dependencies. Since their build instructions differ both can be installed simultaneously.

This approach grants a variety of advantages. For example upgrading your NixOS system just installs new derivations of packages and configuration files that have changed, while keeping previous derivations until they’re garbage collected at a later time. This allows you to switch freely between both iterations of your system, for example if an update causes issues you can just revert back to before an update easily. Another advantage is that an unprivileged user can install packages they need without interfering with the rest of the system, for example an older python version or a newer one, or some software they want but the system does not provide.

The price of having this kind of isolation between packages is that nixos cannot install binaries and libraries into common locations. Effectively /usr/bin only contains the env binary. If you’re familiar with shell scripting you might have run into lines such as #!/usr/bin/env bash. This env util will essentially search bash in your PATH variable and start it. Lines like #!/bin/bash however will not work, because there’s no bash installed in that location.

Another case where a missing fhs is a problem is when using pre-compiled binaries. In contrast to binaries built through nix, which have their required libraries hardcoded as absolute paths, pre-compiled binaries you download usually only contain the name of the library they need, which works in a conventional fhs environment, because these libraries tend to be found in /libor /usr/lib. On NixOS neither of those are present. There two solutions to this. Either you create an fhs environment by listing the set of derivations to be symlinked into a chroot environment which mimics an FHS. Or you can install github.com/Mic92/nix-ld which automatically finds the required libraries the nix way if you start such a binary. There’s also steam-run which installs an fhs with most of the dependencies necessary to start Linux games from Steam.

Lojcs,

Either you create an fhs environment by listing the set of derivations to be symlinked into a chroot environment which mimics an FHS.

Why isn’t this done on the actual system and by default? That would make it fhs compliant, no?

palebluethought,

If your system uses 3 different Pythons as dependencies of different packages, which one gets to be /usr/bin/python?

Lojcs,

The most recent one by default unless another is manually chosen. The nix packages can keep using their specific versions directly

palebluethought, (edited )

Now you’ll have a zillion users trying to install software in ways that violate all the assumptions that NixOS operates on, but which are still tightly coupled to your NixOS config. Now updates to your system, or even seemingly unrelated config changes (through some transitive dependency chain) can easily break that software.

So now we’ve basically removed half the advantages that motivate Nix/OS in the first place, and when stuff breaks it will look like it’s Nix’s fault, even if it isn’t.

On the other hand, nixpkgs is already the most comprehensive repository of system software out there, and for 99% of packages Nixifying it is pretty trivial. Hell, my NixOS config does that for 3 different GitHub repos right inline in my config.nix

hallettj,
@hallettj@beehaw.org avatar

If you put an FHS on the actual system you wouldn’t be able to install multiple versions of the same package, updates wouldn’t be atomic - you wouldn’t get the big selling points of Nix.

gnuplusmatt, in GNOME Network Displays Adds Support For Chromecast & Miracast MICE Protocols

Now it just needs PIN support

scharf_2x40, in What are some must have Linux compatible VSTs?

The u-he synths are nice.

LKC, (edited ) in Can I install Ubuntu 18 software on Ubuntu 22.04? (Technically Linux Mint 21.3)

May not qualify as “simple” versus a VM, but you can try using chroot environment. You essentially run minimal Ubuntu environment from a folder that can be a newer or old version of the host OS.

Here is one guide to get up and running.

This guide is easier to follow IMO.

elax102, (edited ) in What's (are) the funniest/stupidest way(s) you've broken your linux setup?
@elax102@lemmy.world avatar

chown 777 everything

isVeryLoud,

Been there, done that

possiblylinux127, in I feel like I'm missing out by not distro-hopping

It sounds like you need distrobox and KVM.

therealjcdenton, in I feel like I'm missing out by not distro-hopping

Don’t. Arch, Ubuntu, Debian, OpenSUSE, and Fedora are used in the exact same way. Pick one of them and then trf different desktop environments, if you want you can download the configurations for distro from their source code

therealjcdenton,

The only distro that is unique off the top of my head is NixOS since you use it and think about it backwards

01011, in Best DE for touch screens but also normal use

KDE Plasma.

TCB13, in I feel like I'm missing out by not distro-hopping
@TCB13@lemmy.world avatar

There’s Debian and Red Hat Enterprise, everything else is pointless. Enjoy.

MangoKangaroo, in OBS Merges FFmpeg VA-API AV1 Support

I’ve been using and loving the Intel AV1 support that got added with the latest update. Glad to see we’re getting a VA-API implementation now.

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