fbpx

Installing OpenVAS On Red Hat Enterprise Linux 6

Sometime I wonder why I’m paying for license and support when I don’t get/need them.

Anyway, I’m trying to get OpenVas on my server for VA tests. The packages recommended by OpenVAS doesn’t work because of failed dependencies, I have to get down to compiling it myself.

Preparation for all the following compilations:

> yum -y install libpcap-devel.x86_64 glib2-devel gnutls-devel gpgme-devel libuuid-devel sqlite-devel libmicrohttpd-devel libxml2-develyum libxslt-devel qt-devel qt-webkit-devel

This is for openvas-libraries-4.0.5

> cmake -DCMAKE_INSTALL_PREFIX=/opt/openvas
> make && make doc && make install

This is for openvas-scanner-3.2.4 / openvas-manager-2.0.4 / openvas-administrator-1.1.1 / greenbone-security-assistant-2.0.1 / openvas-cli-1.1.2 / gsd-1.1.1

> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/openvas/lib/pkgconfig
> cmake -DCMAKE_INSTALL_PREFIX=/opt/openvas
> make && make doc && make install

Because we have installed OpenVAS in /opt/openvas, we have to add /opt/openvas/lib into the LDPATH. I did it by creating a file call /etc/ld.so.conf.d/openvas.conf and add /opt/openvas/lib in the file and run ldconfig to load the contents of openvas.conf.

The rest of the setup, you can download openvas-check-setup from http://wald.intevation.org/plugins/scmsvn/viewcvs.php/*checkout*/trunk/tools/openvas-check-setup?root=openvas and follow the instructions until you get no more errors from the check script.

More information can be found from this link – http://www.openvas.org/setup-and-start.html

Compiling this thing is pretty painful. :)

Author: yibi

YiBi's numb :) YiBi writes about anything. Technology, Gossips, Rubbish YiBi's a half f%#k geek :P

One Reply to “Installing OpenVAS On Red Hat Enterprise Linux 6”

This is useful? Please leave your comment or Share this on Facebook!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: