Debian copy-paste installation commands#343
Debian copy-paste installation commands#343akalmykov wants to merge 2 commits intoNilFoundation:00-gitbook-docsfrom
Conversation
| apt install -y zkllvm cmake libboost-all-dev | ||
| ``` | ||
|
|
||
| For Ubuntu, use the following commands: |
There was a problem hiding this comment.
It's not about Ubuntu, but rather about running under an unprivileged user. In most cases it means that we're not in a container.
It's supposed that devs either run these commands under a privileged user or use sudo when it's needed.
But if you feel it's better to add sudo explicitly, please amend the original instruction instead.
There was a problem hiding this comment.
Yes, this is not Ubuntu specific, rather it covers most Debian use cases. The goal was just to make a sure a developer can copy-paste commands to install - right now this is not the case.
It's highly unusual for any *nix distro for a user to run a terminal under a priveledged user by default. At the same time, using su before executing a series of commands is less secure because sudo offers more granular control over user permissions. But a developer cannot just prefix the commands in the doc with sudo, e.g. this doesn't work
sudo echo 'deb [trusted=yes] http://deb.nil.foundation/ubuntu/ all main' >>/etc/apt/sources.listand has to be changed to:
sudo bash -c "echo 'deb [trusted=yes] http://deb.nil.foundation/ubuntu/ all main' >>/etc/apt/sources.list"I'll change the orginal instructions
No description provided.