Skip to content
Snippets Groups Projects
Commit f74a20b9 authored by Florent Gluck's avatar Florent Gluck
Browse files

udpated default config/server/users.json with missing capabilities

updated docs/install.md
parent 19410ebf
Branches
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@
"USER_CREATE":1,
"USER_DESTROY":1,
"USER_SET_CAPS":1,
"USER_UNLOCK":1,
"USER_RESETPWD":1,
"USER_LIST":1,
"VM_CREATE":1,
"VM_DESTROY_ANY":1,
......@@ -16,16 +18,14 @@
"VM_STOP_ANY":1,
"VM_REBOOT_ANY":1,
"VM_LIST_ANY":1,
"VM_ATTACH_ANY":1,
"VM_READFS_ANY":1,
"VM_WRITEFS_ANY":1,
"VM_SET_ACCESS":1,
"VM_SET_ACCESS_ANY":1,
"TPL_CREATE":1,
"TPL_EDIT":1,
"TPL_DESTROY":1,
"TPL_EDIT_ANY":1,
"TPL_DESTROY_ANY":1,
"TPL_LIST":1,
"TPL_LIST_ANY":1,
"TPL_READFS":1,
"TPL_READFS_ANY":1
}
}
......
......@@ -14,14 +14,18 @@ First, feel free to modify the server configuration by editing the following fil
- `config/server/nexus.conf`
Next, the `PREFIX` environment variable must be set to the root directory where nexus-server will be installed. Within that directory, a `nexus-server` directory will be created.
Next, the `PREFIX` environment variable must be set to the root directory where nexus-server will be installed. Within that directory, a `nexus-server` directory will be created. Here, we set `PREFIX` to the home directory of the current user. This means nexus-server will be installed into `$HOME/nexus-server`.
In the example below, we set `PREFIX` to the home directory of the current user. This means nexus-server will be installed into `$HOME/nexus-server`.
```
export PREFIX=$HOME
````
If bash is your system shell, you can add the `export` line above to the `.bashrc` file in your home directory. This way, whenever you open a new terminal, the `PREFIX` variable will be set.
Run the following commands to build and install nexus-server:
Then, run the following commands to build and install nexus-server for development:
```
make build_srv
make install_dev_srv PREFIX=$HOME
make install_dev_srv
```
## Running nexus-server (dev)
......@@ -32,35 +36,31 @@ make run_srv PREFIX=$HOME
## Updating nexus-server binaries (dev)
Stop nexus-server by pressing CTRL-C in the terminal it was started, then run:
During development, the server code is constantly modified. To build, update and run the server after a change, simply stop nexus-server by pressing CTRL-C and run:
```
make build_srv update_srv PREFIX=$HOME
make build_srv update_srv run_srv
```
## Uninstalling nexus-server (dev)
```
make uninstall_prod_srv PREFIX=$HOME
make uninstall_prod_srv
```
# Installing nexus-server for production
## Building and installing nexus-server (prod)
Start by modifying the following two files which will be used to create the certificates:
1. Modify `config/certs/ca.info` to your liking
1. Modify `config/certs/nexus-server.info` to your liking
Next, feel free to modify the server configuration by editing the following file:
First, feel free to modify the server configuration by editing the following file:
- `config/server/nexus.conf`
Then, the `PREFIX` environment variable must be set to the root directory where nexus-server will be installed. Within that directory, a `nexus-server` directory will be created.
Then, modify these files which are used to generate the certificates:
In the example below, we set `PREFIX` to `/usr/local`. This means nexus-server will be installed into `/usr/local/nexus-server`.
1. `config/certs/ca.info`
1. `config/certs/nexus-server.info`
Run the following commands to build and install nexus-server:
Next, run the following to build and install nexus-server. Note that the `PREFIX` environment variable must be set to the root directory where nexus-server will be installed. Within that directory, a `nexus-server` directory will be created. Below, we set `PREFIX` to `/usr/local`. This means nexus-server will be installed into `/usr/local/nexus-server`:
```
make build_srv
sudo -E make install_prod_srv PREFIX=/usr/local
......@@ -68,10 +68,19 @@ sudo -E make install_prod_srv PREFIX=/usr/local
## Running nexus-server (prod)
The installation script creates a systemd service named "nexus-server". It can then be started like any other systemd service with:
```
sudo systemctl start nexus-server
```
Furthermore, typical systemd service commands can be used, for instance:
- `sudo systemctl status nexus-server` to check whether the service is running
- `sudo systemctl stop nexus-server` to stop the service
- `sudo systemctl enable nexus-server` to enable the service at boot time
- `sudo systemctl disable nexus-server` to disable the service at boot time
## Updating nexus-server binaries (prod)
```
......@@ -95,7 +104,8 @@ sudo -E make uninstall_prod_srv PREFIX=/usr/local
If nexus-server was installed for a development environment, then run the following (to match `PREFIX` that was defined previously for dev):
```
make build_nexush PREFIX=$HOME
export PREFIX=$HOME
make build_nexush
```
## Building nexush for production (prod)
......@@ -126,7 +136,7 @@ make run_nexus-exam PREFIX=$HOME
# Running validation tests
A variety of tests can be performed in the hope to locate potentiel bugs in the code.
A variety of tests can be performed to locate potentiel bugs in the code.
These tests expect a template that includes "xubuntu" in its name, otherwise it will spill out errors.
Furthermore, make sure the login you specify below has access to this template and has most capabilities enabled.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment