Installing OCS Inventory NG on Linux Mint

Introduction

OCS Inventory NG is an open-source computer and software inventory system that allows you to track hardware and software assets across multiple platforms. In this tutorial, we will show you how to install the latest version of OCS Inventory NG on Linux Mint.

Prerequisites

Before proceeding, you need to ensure that your system meets the following prerequisites:

Step 1 - Install Apache, MySQL, and PHP

Before installing OCS Inventory NG, you need to install the LAMP stack. Open the terminal and run the following command to install these packages:

sudo apt-get update
sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mysql php-gd php-curl php-xml php-mbstring

Step 2 - Download and Install OCS Inventory NG

Now the LAMP stack is installed. You can download the OCS Inventory NG from here. Save the ocsinventory-ng-agent-2.7.1.tar.gz file to your system.

Extract the downloaded package using the following command in the terminal.

tar -xzf ocsinventory-ng-agent-2.7.1.tar.gz

Now move into the extracted directory using the following command.

cd ocsinventory-ng-agent-2.7.1

To install the package using the terminal, run the following command.

sudo sh setup-linux.sh

The installation process will begin, and it will take some time to complete.

Step 3 - Configure OCS Inventory NG

After the installation is complete, you will need to configure the OCS Inventory NG to work with the LAMP stack.

Open the ocsinventory-agent configuration file using the following command in the terminal.

sudo nano /etc/ocsinventory-agent/ocsinventory-agent.conf

Look for the following configuration:

server = http://localhost/ocsinventory

Replace the http://localhost/ocsinventory with the hostname or IP address of the server where you installed OCS Inventory NG. For example:

server = http://192.168.10.10/ocsinventory

Step 4 - Start the OCS Inventory NG

Start the OCS Inventory NG using the following command in the terminal.

sudo /usr/bin/ocsinventory-agent -d -s

This command will start the OCS Inventory NG on your system.

Conclusion

You have successfully installed and configured OCS Inventory NG on your Linux Mint system. You can now use it to track hardware and software assets in your network.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!