If you go to the OpenVAS site, they only have .rpm (aka RedHat) packages and can't be used on a Debian based distro like Ubuntu. Also, as a side note, if you want to do something else with OpenVAS which I am not covering, remember that you should best follow only the Ubuntu specific instructions and when that is not possible, for the Debian Etch instructions as Ubuntu uses the "Etch" branch of Debian.
The instructions below are for use with OpenVAS v1.x and not the new beta 2.0 (will write another article later when it gets out of beta).
Firstly, you will need to add the following repositories into aptitude by editing /etc/apt/sources.list and adding the following line into the sources.list file:
deb http://apt.intevation.de/ etch openvas
You then update your Ubuntu repositories by issuing the "apt-get update" command.
You then need to download the following source codes from the OpenVAS website. Which you can find at URL http://wald.intevation.org/frs/?group_id=29
openvas-libraries 1.0.2 (not needed, a .deb installer is available in the repository)
openvas-plugins 1.0.4 (if there is a newer version > 1.0.4, download that instead)
Create a sub-directory in your home directory called "~/openvas1" and move all the .tar.gz source code files into this folder.
Then, you need to install certain libraries which OpenVAS uses prior to compiling the source codes you've downloaded by issuing the command:
apt-get install openvas-client libopenvas1 libopenvas1-dev libgpgme11 libgpgme11-dev bison build-essential
! in Ubuntu 8.10, prior to issuing the above command, you will need to install
! some libraries which are missing in Ubuntu 8.10.
! Download the following .deb (libgnutls13 and libopencdk10) files from the
! hardy packages (they'll work in Ubuntu 8.10)
! You can install the two .deb files by issuing the command:
! dpkg -i libgnutls13_2.0.4-1ubuntu2.1_i386.deb
! dpkg -i libopencdk10_0.6.6-1ubuntu1_i386.deb
You will then need to open the three source code files, untar them and compile them. You can do this for all three packages by typing in:
tar zxvf [filename of .tar.gz file]
cd [sub-folder of same name as .tar.gz file]
You will need to do the above with all three files, mainly:
in the above order.
You will then need to let your linux system know about the new libraries you have just compiled before the can be used by typing in:
You then need to copy the file openvas-services from the server source code folder into the /var/lib/openvas directory by issuing the following command in a bash shell:
cp ~/openvas1/openvas-server-1.0.2/openvas-services /var/lib/openvas/
For the first time use of OpenVAS, you will need to create a new cert and add in the first user that can login into the OpenVAS server by running both:
To start OpenVAS, activate the server by typing in:
openvasd -D &
And running the OpenVAS client by typing:
If all works well, when you run openvasd, you will see it attempt to load in all the plug-ins and in the openvas-client, connect to the openvas server.
Feel free to comment!
Note: Tested on Ubuntu 7.10, 8.04 and 8.10, and I assume you are doing all this with root access and am running the kernel in i386 (32-bit) mode.