Install the OCSInventory agent on Ubuntu 18.04 / Linux Mint 19?

Windows Articles

How to activate the automatic screen saver in Windows 10

Hello! Undoubtedly the time we spend in front of a computer has grown lately. In fact, in these times of pandemic, more...

How to install Teamviewer on Ubuntu 20.04?

Hi, folks. This will be a short and very simple post in which you will learn how to install TeamViewer on Ubuntu...

OpenSUSE 15.2 available

Well, another one has come into the family. A new version of OpenSUSE has recently been released. The community distribution under the...

How to install and configure Vagrant in Windows 10

Hello! Vagrant is a free, multi-platform command-line tool, which makes it easy to create reproducible and shareable development environments. Additionally, it creates...

Ubuntu Rolling Release? It is possible with Rolling Rhino

Throughout the Linux community, there are always expectations about when Ubuntu decides to have a Rolling Release. This, at least, since the...
angeloma
angeloma
Senior Writer and partner

Recently, I taught you how to install OCSInventory on Debian 10. But as you know, that was the server. Now, I will teach you how to install the OCSInventory agent in Ubuntu 18.04 and how to make the server register it.

Let’s go for it.

Install OCSInventory agent on Ubuntu 18.04 / Linux Mint 19

First of all, the system needs to be upgraded.

Open a terminal session and run the following command:

:~$ sudo apt update
:~$ sudo apt upgrade

This step is vital for the agent to do the job properly. It also allows him to gather more and better information from the computer.

This client is also written in Perl language, so we have to install some libraries first:

:~$ sudo apt install libmodule-install-perl dmidecode libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libdata-uuid-perl

Then, we can install the OCSInventory agent in two ways.

The first is by manually compiling the source code. This option has the advantage that we can get the latest version of it, but it is something more complex and in a business environment may not be suitable.

On the other hand, the program is available from official repositories. This method sacrifices a little bit of the novelties for the sake of stability and ease of installation.

To install it, we will use the second option, therefore, run the following command

:~$ sudo apt install ocsinventory-agent

1.- Install OCSInventory agent on Ubuntu 18.04 / Linux Mint 19
1.- Install OCSInventory agent on Ubuntu 18.04 / Linux Mint 19

So, we need to configure it.

Configuring the OCSInventory agent

During installation, a customer configuration screen will be displayed. This first screen asks where the server is.

If the agent is being installed in the same computer where the server is, choose the first option. If not, choose the second one.

2.- Configuring the OCSInventory agent
2.- Configuring the OCSInventory agent

Then, you will see another screen where you have to indicate the IP address or the hostname of the computer where the OCSInventory server is installed.

3.- Defining where the OCSInventory server is
3.- Defining where the OCSInventory server is

Then the installation will be finished.

In case you make a mistake in this step, do not worry, you can always rectify it by modifying the file /etc/ocsinventory/ocsinventory-agg.

The synchronization with the server is done via crontab daily. However, we can force this synchronization with the following command:

:~$ sudo ocsinventory-agent --server [server]

You’ll see something like this:

4.- Running the OCSInventory on Ubuntu 18.04 / Linux Mint 19
4.- Running the OCSInventory on Ubuntu 18.04 / Linux Mint 19

Now, access your OCSInventory server and you’ll see that it’s been added correctly.

5.- OCSInventory dashboard
5.- OCSInventory dashboard

6.- OCSInventory agent working properly
6.- OCSInventory agent working properly

And that’s it. Now we invite you to explore all the new possibilities with this tool.

Conclusion

Thanks to OCSInventory for the inventory work, and it makes it much easier. And always with a fairly high degree of accuracy. So today, you have learned how to install the OCSInventory agent on Ubuntu 18.04 and Linux Mint 19. So all that remains is for you to get the most out of the tool.

Please share our post and join our Telegram channel.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to activate the automatic screen saver in Windows 10

Hello! Undoubtedly the time we spend in front of a computer has grown lately. In fact, in these times of pandemic, more...

How to install Teamviewer on Ubuntu 20.04?

Hi, folks. This will be a short and very simple post in which you will learn how to install TeamViewer on Ubuntu...

OpenSUSE 15.2 available

Well, another one has come into the family. A new version of OpenSUSE has recently been released. The community distribution under the...

How to install and configure Vagrant in Windows 10

Hello! Vagrant is a free, multi-platform command-line tool, which makes it easy to create reproducible and shareable development environments. Additionally, it creates...

Ubuntu Rolling Release? It is possible with Rolling Rhino

Throughout the Linux community, there are always expectations about when Ubuntu decides to have a Rolling Release. This, at least, since the...