Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a good way to install prebuilt binaries ? #1548

Open
constantitus opened this issue Oct 11, 2024 · 2 comments
Open

Provide a good way to install prebuilt binaries ? #1548

constantitus opened this issue Oct 11, 2024 · 2 comments

Comments

@constantitus
Copy link

Expected Result
Have an "Easy to use" experience with this piece of software, as stated on it's website.

Actual Result and Steps To Reproduce (combined)
I first tried downloading darling_0.1.20230310.jammy_amd64.deb from the releases. Since I'm not on debian I've used deb2targz to unpack the files from the deb package and then copied everything from it on my system (/usr/bin, /usr/lib, /usr/libexec, /usr/share).
It seems to work, but only from the root user. I cannot use it from any other user. As a result I cannot install brew or do most of the things I need to do. Perhaps it has something to do with my system ?

Sorry, the `/usr/bin/darling' binary is not setuid root, which is mandatory.
Darling needs this in order to create mount and PID namespaces and to perform mounts.

I also tried building from source as per build instructions, but I ran into a linker error and bailed. I do not wanna try again. It takes a lot of disk space and a long time to build.

Can I get darling to work from my regular non-root user without having to build from source ?

System Information

Software Version
Linux Kernel 6.10.10-zen1
Darling the binaries from "WIP: March 10, 2023 (Update Source 11.5 Public Test)"
@PureTryOut
Copy link

sudo chmod 4775 /usr/bin/darling or sudo chmod u+s /usr/bin/darling should fix that error at least.

@constantitus
Copy link
Author

constantitus commented Oct 15, 2024

sudo chmod 4775 /usr/bin/darling or sudo chmod u+s /usr/bin/darling should fix that error at least.

Thank you, that does indeed fix the error. I'm guessing the debian package would have probably set the permissions too if I'd have used it the intended way.

A good way to install darling binaries on a non-debian distro would still be a huge improvement, even a tar ball along with instructions on how to set the permissions would suffice (or including the perms in the tarball and instructing the users to extract it with -p (--preserve-permissions)).
If that's out scope for darling, then feel free to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants