Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Install and Use a Vulnerability Scanner in Linux

Learn how to install and use a vulnerability scanner in linux with clear steps, practical context, and useful troubleshooting guidance.

Table of Contents

This updated guide examines How to Install and Use a Vulnerability Scanner in Linux and organizes the essential facts, background, and practical takeaways in clear American English.

You must first choose a basic Linux distribution. This tutorial will use Ubuntu. Some other distributions, such as Kali Linux, may already be installed.

In addition to installing Ubuntu, you'll need to choose which version of OpenVas will work with. Today, there are 3 versions in circulation. This tutorial will use the latest version - Greenbone Vulnerability Management (GVM) version 10. To about OpenVas or GVM, you can refer to:

https://launchpad.net/~mrazavi/+archive/ubuntu/gvm

Begin

To start installing the GVM, you will also need to install the appropriate mandatory repository on which the GVM depends. To do this, you'll start with opening a terminal session by pressingCtrl+Alt+Tand running the following command:

sudo add-apt-repository ppa:mrazavi/gvm

The output of the above command will provide text-based instructions for the GVM, but also provide you with optional instructions.

Update Ubuntu installation

Starting with the new installation of Ubuntu 18.04, you'll want to make sure everything is up to date. To do this, run the following command:

sudo apt-get update

Install OpenVas

At this point, you are ready to install the GVM. The default database used for the GVM is SQLite. If you prefer another database to use with this solution, you can find additional instructions at the link provided above.

To install GVM, run the following command:

sudo apt install gvm

During the installation process, you will be prompted for additional configuration steps:

To configure Unix Socket, select 'Yes'.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 1

To configure GVMD-sqlite, select 'Yes'.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 2

To configure GVMD-sqlite-cert, select 'Yes'.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 3

To configure GVMD-sqlite-scap, select 'Yes'.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 4

When the installation is complete, the final step is to update the greenbone nvt / cert / scap data with the following command:

sudo greenbone-nvt-sync sudo greenbone-scapdata-sync sudo greenbone-certdata-sync

Run the first scan

Congratulations on completing the GVM installation - now the fun will begin. First, check the installation status. All applications that are running properly will display a green dot (or 'active' status) when running. You can do that by launching the following items:

systemctl status gvmd # manager systemctl status openvas-scanner # scanner systemctl status gsad # web ui

The GVM provides users the ability to use the internet interface. To access the internet interface, navigate the internet browser to:

https://localhost:4000

How to Install and Use a Vulnerability Scanner in Linux — contextual image 5

Log in with the following information:

Username: admin Password: admin

After logging in with admin credentials, you can now set up the first scan. To do this, select Scan> Tasks from the application menu.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 6

Then, from the task window, find the 'magic wand' icon and select Task Wizard .

How to Install and Use a Vulnerability Scanner in Linux — contextual image 7

When the Task Wizard window appears, we will enter the IP address of the host. Because only one machine is used, the example will scan the local host. To do this, confirm that 127.0.0.1 has been entered. If not, manually enter the space provided.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 8

Click 'Start Scan' and wait. This may take several minutes, depending on whether you have used a new installation of Ubuntu or an existing machine.

When the scan is complete, you will see a page similar to the following message.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 9

Now to see the results, go to Scans> Reports . Due to the fact that this is a new testing machine, the result was found nothing. If you run the scan on an existing machine at the company or home network, the results will be different.

How to Install and Use a Vulnerability Scanner in Linux — contextual image 10

These are just the tip of the iceberg about what the GVM can do to find system vulnerabilities. You can configure different scans and discover what you don't know. Sure, you will be surprised at what you will find.

Hope you are succesful.

FAQ

What is How to Install and Use a Vulnerability Scanner in Linux about?

It provides a structured overview of Linux, explains the main context, and highlights practical takeaways for readers.

Why does this topic matter?

Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.

How should readers use this information?

Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.