If you do not get it to work I will try find sometime to set up a new VM and document it for you during the upcoming weekend.
I tried a little bit with nginx but I wasn’t able to get it to work
Any help is appreciated. Thanks !
I followed this doc to install 21.4.4 https://greenbone.github.io/docs/gvm-21.04/
I don’t know how correct and safe this setting is, but I configured the service like this and I have it available on port 80
[Unit]
Description=Greenbone Security Assistant daemon (gsad)
Documentation=man:gsad(8) https://www.greenbone.net
After=network.target gvmd.service
Wants=gvmd.service
[Service]
Type=forking
RuntimeDirectory=gsad
RuntimeDirectoryMode=2775
PIDFile=/run/gsad/gsad.pid
ExecStart=/usr/local/sbin/gsad --drop-privileges=gvm
Restart=always
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target
Alias=greenbone-security-assistant.service
Thank you, Sedi.
I tried that too with no luck. When I changed the conf file, the service just doesn’t start
systemuser@ubu204-template:~$ sudo systemctl status gsad.service
● gsad.service - Greenbone Security Assistant daemon (gsad)
Loaded: loaded (/etc/systemd/system/gsad.service; enabled; vendor preset: enabled)
Active: activating (start) since Fri 2022-04-29 15:39:52 UTC; 1min 6s ago
Docs: man:gsad(8)
https://www.greenbone.net
Process: 1985 ExecStart=/usr/local/sbin/gsad --drop-privileges=gvm (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 1065)
Memory: 368.0K
CGroup: /system.slice/gsad.service
Apr 29 15:39:52 ubu204-template systemd[1]: gsad.service: Scheduled restart job, restart counter is at 1.
Apr 29 15:39:52 ubu204-template systemd[1]: Stopped Greenbone Security Assistant daemon (gsad).
Apr 29 15:39:52 ubu204-template systemd[1]: Starting Greenbone Security Assistant daemon (gsad)…
Apr 29 15:39:52 ubu204-template gsad[1985]: Oops, secure memory pool already initialized
@all I would suggest to continue with the discussion on how to make gsad to listen on 80 and/or 443 in this specific topic for easier tracking of questions / answers and their solution:
Made a smaller update to GVM (revision 8) with fixes and bug reports from readers. Your feedback is always more than welcome and thanks everyone who provides reports of any kind.
@libellux well. installation of yarn manually is not really required? just install yarnpkg from apt repos?
Eero
@cfi my ansible repository contains files to install openvas with nginx-ssl or with lets encrypt-ssl.
https://github.com/EeroV/openvas-gvm
and UBuntu specific modifications are under branch ubuntu-testing
Eero
Hi @libellux,
I followed your instructions for 21.4.4 and 21.4.5 and both fail. I can’t run any scan. I added a note to your github repo. I hope you can help. Thanks
Added a test file for 22.4.0. I haven’t had time to test it myself but any feedback is welcome before I update my documentation. File is found at: https://github.com/libellux/Libellux-Up-and-Running/blob/master/docs/openvas/config/ubuntu_22.4.0.sh
I’ve added a new test file for GVM 22.4.0 on Ubuntu 22.04. However the issue i encounter so far is that ospd-openvas, notus-scanner etc ends up under /usr/local/local/bin instead of intended folders. I’m on vacation at the moment and do not have too much time to sit troubleshoot but if anyone can test and give feed back would be more than welcome!
https://github.com/libellux/Libellux-Up-and-Running/blob/master/docs/openvas/config/ubuntu_22.4.0.sh
So I’ve finally did install GVM 22.4.0 on Ubuntu 22.04. There’s a few changes you’ll need to make and some of my solutions might not be the best. However, will do some tests, such as scans etc., and then later update my website.
@bricks I will of course post the changes I had to make here as well to maybe enhance the installation process for e.g. Ubuntu users.
I updated the website https://libellux.com/openvas/ but also the “script” for you to be able to test yourselves easier: https://github.com/libellux/Libellux-Up-and-Running/blob/master/docs/openvas/config/ubuntu_22.4.0.sh
The changes I’ve had to make was:
- Dependencies update
- Add Dparameters for cmake for both GVMD and pg-gvm:
DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql
- Install ospd-openvas and notus-scanner as sudo
- Also had to define the --prefix path as /usr (for ospd-openvas, notus and gvm-tools)
- Manually install tomli module (required for notus-scanner):
sudo python3 -m pip install tomli
- Ubuntu 22.04 is using
sudo systemctl start postgresql@14-main.service
rather than @13-main.service
Hope you’ll enjoy the content and any future feedback is more than welcome.
Not sure what’s happening on Ubuntu here. On Debian Bullseye pip installs the package correctly without having to install it manually.
Added support on how-to install 22.4.0 on Ubuntu 20.04 as well: https://libellux.com/openvas/#install-gvm-22-4-0-from-source
@libellux Thanks so much for these guides, they are sincerely appreciated!
I’m trying to follow your guide to install 21.4.5 on Ubuntu 20.04. The machine had 20.80 running without issue, but as it’s EOL, it’s time to upgrade! Everything was moving smoothly until we got to Lns 77-87, where the foolowing error always occurs:
– Checking for module ‘libgvm_base>=21.4.1’
– No package ‘libgvm_base’ found
CMake Error at /usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
src/CMakeLists.txt:29 (pkg_check_modules)
– Configuring incomplete, errors occured!
Would you or @bricks be so kind as to advise how to resolve this? Thanks in advance!
This thread might help you @Renevant: No Package 'libgvm_base' found
I can’t recall I had that issue when I did run through my tests, but sure I can test once again later tonight.
Best regards,
Fredrik