Installing Greenbone without Root

Hey ho,
I trying to install the GVM without root permissions…
But to get all Prerequisites for GVM i need to run apt-get with sudo… Is this okay or should i install them from source code too? (That would be a very big effort i think) and in the installation guide from Gihub its say that i have to run the make install command with sudo too, but if i do that, it install the file to path where i dont have permissions as normal user, so that i cant run gvmd without sudo.

Hope someone can help me,

gsa: 8.0.1
gvm: 8.0.1
openvas-scanner: 6.0.1
gvm-libs: 10.0.1
gvm-tools: 2.0.0.beta1

Environment Greenbone Server

**Operating system: Ubuntu Server 18.4
**Kernel: 4.15.0-58-generic
**Installation method / source: Github

Hi @ayinuha,
I recomend you to install from sources, and call cmake with

cmake -DCMAKE_INSTALL_PREFIX=/home/<your-user/install …

You will have permissions to run the binaries without sudo.
Remember to update the $PATH environment variable, to be able to execute the binaries.

1 Like

thanks for the answer, im New in installing with source, Do you can Tell me which path i have to Update and how? In git theres only stand to Update path from the requirements…

Hi @ayinuha,

you update the PATH variable with the paths to the binaries with

export PATH=/home/<your-user/install/bin:/home/<your-user/install/sbin:$PATH

you can add this line also at the end of your .bashrc in your home directory. Then, each time you open a new console, you do not have to export the variable again.

1 Like