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

Support rootless install #2165

Open
jab opened this issue Jun 20, 2024 · 2 comments
Open

Support rootless install #2165

jab opened this issue Jun 20, 2024 · 2 comments
Labels
feature New feature or request triage Issue needs triage

Comments

@jab
Copy link

jab commented Jun 20, 2024

What problem are you trying to solve?

I just tried installing devbox for the first time, and I have to use a shared Linux server at work where I don't have sudo. The very first thing the install script does is ask...

Install devbox to /usr/local/bin (requires sudo)? [Y/n]

and if you have to answer 'no', it aborts the installation.

Note that I was already able to install Nix in this environment using the https://nixos.wiki/wiki/Nix_Installation_Guide#Installing_without_root_permissions instructions so all I need is to be able to install devbox into a directory I have write access to.

What solution would you like?

Any solution that allows users without root to install devbox, e.g. into their ~/.local/bin directory.

Alternatives you've considered

No response

@jab jab added feature New feature or request triage Issue needs triage labels Jun 20, 2024
@jab
Copy link
Author

jab commented Jun 24, 2024

@mikeland73 et al., is this an easy ask? I'm thinking of giving a demo of devbox to colleagues (to gauge interest in potential adoption as part of our tech platform), but first would need to address this.

@particlesanctuary
Copy link

You can try downloading the install script and editing it:

curl --silent --show-error --fail --location --output /tmp/devbox_install "https://get.jetify.com/devbox"
# edit /tmp/devbox_install
# change the line INSTALL_DIR="/usr/local/bin"
# remove sudo things
chmod u+x /tmp/devbox_install
/tmp/devbox_install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage Issue needs triage
Development

No branches or pull requests

2 participants