OpenVas Install and Configure on Linux in all flavours

OpenVAS for CentOS via Atomic
openvas-centos-atomic

Step 1: Configure Atomicorp Repository
(as user root, only once)

wget -q -O - http://www.atomicorp.com/installers/atomic |sh

Step 2: Quick-Install OpenVAS
(as user root, only once)

yum install openvas
openvas-setup

Step 3: Quick-Start OpenVAS

(nothing to do, all is up and running directly after installation )

Step 4: Log into OpenVAS with user created in the step 2

Open https://localhost:9392/ or start “gsd” on a command line as a regular user (not as root!).

OpenVAS for Debian via OBS

openvas-debian-obs

 

Step 1: Configure OBS Repository
(as user root, only once)

echo "deb http://download.opensuse.org/repositories/security:/OpenVAS:/UNSTABLE:/v5/Debian_6.0/ ./" >> /etc/apt/sources.list
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys BED1E87979EAFD54
sudo apt-get update

Step 2: Quick-Install OpenVAS
(as user root, only once)

apt-get -y install greenbone-security-assistant gsd openvas-cli openvas-manager openvas-scanner openvas-administrator sqlite3 xsltproc

To install support packages for report generation (downloads around 30 MB of additional packages):

apt-get -y install texlive-latex-base texlive-latex-extra texlive-latex-recommended htmldoc

To install support for autogenerated LSC credential packages:

apt-get -y install alien rpm nsis fakeroot

Step 3: Quick-Start OpenVAS
(copy and paste whole block as user root, during first time you will be asked to set a password for user “admin”)

test -e /var/lib/openvas/CA/cacert.pem  || openvas-mkcert -q
openvas-nvt-sync
test -e /var/lib/openvas/users/om || openvas-mkcert-client -n om -i
/etc/init.d/openvas-manager stop 
/etc/init.d/openvas-scanner stop 
openvassd
openvasmd --migrate
openvasmd --rebuild
killall openvassd
sleep 15
/etc/init.d/openvas-scanner start
/etc/init.d/openvas-manager start
/etc/init.d/openvas-administrator restart
/etc/init.d/greenbone-security-assistant restart
test -e /var/lib/openvas/users/admin || openvasad -c add_user -n admin -r Admin

Step 4: Log into OpenVAS as “admin”

Open https://localhost:9392/ or start “gsd” on a command line as a regular user (not as root!).

OpenVAS for Fedora via Atomic

openvas-fedora-atomic

 

Step 1: Configure Atomicorp Repository
(as user root, only once)

wget -q -O - http://www.atomicorp.com/installers/atomic |sh

Step 2: Quick-Install OpenVAS
(as user root, only once)

yum install openvas
openvas-setup

Step 3: Quick-Start OpenVAS

( nothing to do, all is up and running directly after installation )

Step 4: Log into OpenVAS with user created in the step 2

Open https://localhost:9392/ or start “gsd” on a command line as a regular user (not as root!).

OpenVAS for openSUSE via OBS

openvas-opensuse-obs

Step 1: Configure OBS Repository
(as user root, only once)

zypper ar http://download.opensuse.org/repositories/security:/OpenVAS:/UNSTABLE:/v5/openSUSE_12.1/security:OpenVAS:UNSTABLE:v5.repo

Step 2: Quick-Install OpenVAS
(as user root, only once)

zypper --non-interactive --gpg-auto-import-keys in greenbone-security-assistant gsd openvas-cli openvas-scanner openvas-manager openvas-administrator

Step 3: Quick-Start OpenVAS
(copy and paste whole block as user root, during first time you will be asked to set a password for user “admin”)

openvas-nvt-sync
test -e /var/lib/openvas/users/om || openvas-mkcert-client -n om -i
/etc/init.d/openvas-manager stop
/etc/init.d/openvas-scanner stop
openvassd
openvasmd --migrate
openvasmd --rebuild
killall openvassd
sleep 15
/etc/init.d/openvas-scanner start
/etc/init.d/openvas-manager start
/etc/init.d/openvas-administrator restart
/etc/init.d/greenbone-security-assistant restart
test -e /var/lib/openvas/users/admin || openvasad -c add_user -n admin -r Admin

Step 4: Log into OpenVAS as “admin”

Open https://localhost:9392/ or start “gsd” on a command line as a regular user (not as root!).

OpenVAS for Ubuntu via OBS

openvas-ubuntu-obs

Step 1: Configure OBS Repository

sudo apt-get -y install python-software-properties
sudo add-apt-repository "deb http://download.opensuse.org/repositories/security:/OpenVAS:/UNSTABLE:/v5/xUbuntu_12.04/ ./"
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys BED1E87979EAFD54
sudo apt-get update

Step 2: Quick-Install OpenVAS

sudo apt-get -y install greenbone-security-assistant gsd openvas-cli openvas-manager openvas-scanner openvas-administrator sqlite3 xsltproc

Step 3: Quick-Start OpenVAS
(copy and paste whole block, during first time you will be asked to set a password for user “admin”)

test -e /var/lib/openvas/CA/cacert.pem  || sudo openvas-mkcert -q
sudo openvas-nvt-sync
test -e /var/lib/openvas/users/om || sudo openvas-mkcert-client -n om -i
sudo /etc/init.d/openvas-manager stop
sudo /etc/init.d/openvas-scanner stop
sudo openvassd
sudo openvasmd --migrate
sudo openvasmd --rebuild
sudo killall openvassd
sleep 15
sudo /etc/init.d/openvas-scanner start
sudo /etc/init.d/openvas-manager start
sudo /etc/init.d/openvas-administrator restart
sudo /etc/init.d/greenbone-security-assistant restart
test -e /var/lib/openvas/users/admin || sudo openvasad -c add_user -n admin -r Admin

Step 4: Log into OpenVAS as “admin”

Open https://localhost:9392/ or start “gsd” on a command line as a regular user (not as root!).

OpenVAS for RedHat via Atomic

openvas-rhel-atomic

Step 1: Configure Atomicorp Repository
(as user root, only once)

wget -q -O - http://www.atomicorp.com/installers/atomic |sh

Step 2: Quick-Install OpenVAS
(as user root, only once)

yum install openvas
openvas-setup

Step 3: Quick-Start OpenVAS

(nothing to do, all is up and running directly after installation )

Step 4: Log into OpenVAS with user created in the step 2

Open https://localhost:9392/ or start “gsd” on a command line as a regular user (not as root!).

OpenVAS for Windows via Greenbone

openvas-windows-gb

Greenbone maintains a Windows installer including the Greenbone Security Desktop (GSD) and the OMP command line tool: Greenbone Desktop Suite.

Note: This is only the clients, not the server-side of OpenVAS.

This is reported to work with: Windows XP/Vista/7

Quick guide: Simply download and execute the installer.

 

 

Categories: linux, OpenVas

Comments are closed.