GVM20.08 install on UBUNTU 20.04 script

Hi, wanted to share install script.

Installation script for OpenVAS/Greenbone 20.08 on Ubuntu 20.04

Based on:

https://kifarunix.com/install-and-setup-gvm-11-on-ubuntu-20-04/#create-gvm-service-unit-file

https://github.com/yu210148/gvm_install/blob/master/install_gvm.sh

Thank you MaKyOtOx

5 Likes

Thank you for sharing.

1 Like

Thanks for the script - but I have following error after install postgresql

yarn is already the newest version (1.22.5-1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
postgresql is already the newest version (12+214ubuntu0.1).
postgresql-contrib is already the newest version (12+214ubuntu0.1).
postgresql-server-dev-all is already the newest version (214ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
postgres@cv002250:~$

After that the script stops. When i input “exit” the script is continue but not working anymore

postgres@cv002250:~$ exit
logout
createuser: error: could not connect to database template1: FATAL:  role "root" does not exist
createdb: error: could not connect to database template1: FATAL:  role "root" does not exist
psql: error: FATAL:  role "root" does not exist
./gistfile1.sh: 32: create: not found
./gistfile1.sh: 33: grant: not found
./gistfile1.sh: 34: create: not found
./gistfile1.sh: 35: q: not found
administrator@cv002250:~$

What is the right way - or what I doing wrong?

Hi, please comment on gist on github. I am not the author. I just share public information that helped me. Mine setup went well. I recommend running one command at a time manually. That way you can debug it and learn how it works.

Humm, not totally sure what’s going on here although the messages about postgresql already being installed suggest that the script was run on a machine that was already in use for other things. I wrote the original script that this was based on was meant to be run on a fresh Ubuntu 20.04 install.

In other words, boot from an Ubuntu Server install disk to a blank machine or VM; accept all the defaults, then download and run the script, follow the post-install instructions about rebooting and updating the scripts from the readme and you should end up with a working GVM instance that you can access with a web browser pointed at the IP address of the machine (i.e., https://“ip-address-of-machine”).

kev.

1 Like