Before we can run the DevStack script, we will have to perform a couple of prerequisite actions:
Add a user and give it sudoers access
Install packages
We will create a user called stack
and give that user sudoers permission. We will need root access to do so.
sudo su adduser stack
This will create the user and also creates the home directory for the user. We will now give this user all sudoers permissions as this user will be the one to install all the different components. When a list of questions appears, just select all the defaults.
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee -a /etc/sudoers
Executing this command will add the user stack to the sudoers
file allowing the stack user with all the permissions. We could even put the stack user in the admin group, but then it will need a password, hence this method is followed.