I. POSTGRESQL.
Start the service for the gvm module (Greenbone Vulnerability Management)
To do this, open a terminal window:
Code:
sudo /etc/init.d/postgresql start
II. INSTALLATION OF GVM.
In a terminal window:
Code:
sudo apt install --install-recommends gvm -y
Be patient it will take a long time.
Once the installation is complete, let's go to the setup check:
Code:
sudo gvm-check-setup
Once the setup is complete you will have this type of output:
To avoid a "FIX" error message on next boot:
To do this, simply start the redis-server service:
Enable this same service on every boot:
Perform a final check of the setup which will tell us that the installation is ok:
Then let's add a "kali" user and his password: (by default but both need to be changed)
Code:
sudo runuser -u _gvm -- gvmd --create-user=kali --password=kali
Once the installation is complete, let's go to the management console.
To do this, open a web window and enter the following address:
Code:
https://127.0.0.1:9392/login
Press ?Advanced? to accept the self-signed certificate despite the alert:
Fill in the identifiers created previously:
And here you are in the dashboard:
If any time after a restart of your Kali Linux OpenVAS does not start, redo
a setup check:
Code:
sudo gvm-check-setup
UPDATE KALI 2022.4:
it turns out after updating to kali linux version 2022.4, that in OpenVas it is impossible for the utility to get access to the logs. Just give the right rights to correct the incident with the line below:
Code:
sudo chmod 666 /var/log/gvm/openvas.log
This action is no longer required in version 2023.1