Support rootless install
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
@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.
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
DevBox is a very good project, but I am also troubled by the problem of using DevBox without administrator privileges, because some shared hosts and the machines where the institute is located cannot delegate advanced privileges. For this reason, I spent some time writing a script that can fully automatically install Nix and DevBox as a user, without spending time studying this problem. The script is at: https://github.com/nebstudio/Rootless-DevBox
If it helps, you are also welcome to Star for me. I will continue to support the development of DevBox.
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
This seems like the simpler approach IMO. @particlesanctuary does this cause any problems with anything? Anyone tried this technique and experience issues with the devbox CLI or nix when modifying where devbox is installed?