Installing OCS Inventory NG on Manjaro

Introduction

OCS Inventory NG is a free and open-source software for IT asset management which can be used on various operating systems including Manjaro. In this tutorial, you will learn how to install OCS Inventory NG on Manjaro.

Prerequisites

Before we begin, ensure you have the following:

Installing the required packages

To begin installing OCS Inventory NG, we need to install some required packages. You can do this by running the following command in the terminal:

sudo pacman -Syu apache mariadb mariadb-clients mariadb-libs mariadb-jdbc mariadb-connector-c php php-apache php-gd php-mcrypt php-pear php-xml php-intl

Installing OCS Inventory NG from the official repository

Once the required packages are installed, we can proceed with the installation of OCS Inventory NG. We will be installing the software from the official repository. To do so, follow the steps below:

  1. Add the OCS Inventory NG repository to the package manager configuration by running the following command in the terminal:
sudo pacman -S ocsinventory-server
  1. Next, we need to create a database and user for OCS Inventory NG. To do this, open the MariaDB shell as follows:
sudo mariadb
  1. Create a database for the OCS Inventory NG by running the command below:
CREATE DATABASE ocsweb;
  1. Create a user for the database with the following command:
GRANT ALL ON ocsweb.* TO 'ocs'@'localhost' IDENTIFIED BY 'your-password';
  1. Flush the privileges:
FLUSH PRIVILEGES;
  1. Exit the MariaDB shell by running the following command:
exit
  1. Make necessary changes to OCS Inventory NG configuration files as follows:
sudo vim /etc/httpd/conf/extra/httpd-ocsinventory.conf
  1. Restart the Apache web server with the command:
sudo systemctl restart httpd
  1. Initialize the OCS Inventory NG database with the command:
sudo ocsinventory-server-db && sudo ocsinventory-plugins

Accessing OCS Inventory NG

Once the installation is complete, you can access the OCS Inventory NG web interface by going to http://localhost/ocsreports/ or http://<your-server-ip>/ocsreports/ in your web browser.

Conclusion

In this tutorial, we covered the steps necessary to install OCS Inventory NG on Manjaro. With OCS Inventory NG, you can now manage your IT assets and conduct network inventory on your Manjaro system.

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!