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:
- A working Manjaro installation with administrative privileges
- Internet connection
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:
- Add the OCS Inventory NG repository to the package manager configuration by running the following command in the terminal:
sudo pacman -S ocsinventory-server
- Next, we need to create a database and user for OCS Inventory NG. To do this, open the MariaDB shell as follows:
sudo mariadb
- Create a database for the OCS Inventory NG by running the command below:
CREATE DATABASE ocsweb;
- Create a user for the database with the following command:
GRANT ALL ON ocsweb.* TO 'ocs'@'localhost' IDENTIFIED BY 'your-password';
- Flush the privileges:
FLUSH PRIVILEGES;
- Exit the MariaDB shell by running the following command:
exit
- Make necessary changes to OCS Inventory NG configuration files as follows:
- Open the file
/etc/httpd/conf/extra/httpd-ocsinventory.confin your chosen text editor (e.g. vim):
sudo vim /etc/httpd/conf/extra/httpd-ocsinventory.conf
- Replace
Require ip <ip>withRequire all granted - Save the file (in vim: type
:wqand pressEnter)
- Restart the Apache web server with the command:
sudo systemctl restart httpd
- 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.