How to Install OCS Inventory NG on OpenSUSE Latest

Introduction

OCS Inventory NG is an open-source IT asset management and inventory solution. It provides a centralized inventory of a company's physical and logical assets, enabling IT administrators to monitor, manage, and control these assets efficiently. In this tutorial, we will guide you through the process of installing OCS Inventory on OpenSUSE latest.

Before we begin, make sure you have root access to your OpenSUSE server.

Step 1: Install Apache, PHP, and MariaDB

First, we need to install Apache, PHP, and MariaDB to run OCS Inventory. You can do this by running the following command:

sudo zypper install -y apache2 php7 php7-devel php7-mysqlnd mariadb

Once the installation is complete, start Apache and MariaDB services using the following commands:

sudo systemctl start apache2
sudo systemctl start mariadb

To enable these services at system boot, run:

sudo systemctl enable apache2
sudo systemctl enable mariadb

Step 2: Download OCS Inventory

Next, download the latest stable version of OCS Inventory NG from their official website. You can do this by running the following command:

wget https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.7/OCSNG_UNIX_SERVER_2.7.tar.gz

Extract the downloaded file using the following command:

tar xzf OCSNG_UNIX_SERVER_2.7.tar.gz

Move the extracted folder to the '/usr/share/' directory using the command:

sudo mv OCSNG_UNIX_SERVER_2.7 /usr/share/ocsinventory

Step 3: Install OCS Inventory

Run the following command to install OCS Inventory:

cd /usr/share/ocsinventory/
sudo sh setup.sh

The setup wizard will guide you through the installation process. You will be prompted to provide the following information:

After completing the installation, you can verify the installation by checking whether the OCS Inventory NG server is running or not. Run the following command to check its status.

sudo systemctl status ocsinventory-server

Step 4: Configure Firewall

If you have a firewall enabled on your machine, you need to allow access to OCS Inventory NG's web interface. Run the following command to allow HTTP traffic:

sudo firewall-cmd --add-service=http --permanent

Reload the firewall rules to apply your changes:

sudo firewall-cmd --reload

Step 5: Access OCS Inventory NG Web Interface

You can now access OCS Inventory NG's web interface by entering your server's IP address or domain name in your web browser followed by '/ocsreports'. For example, if your server's IP address is '192.168.1.1', enter the following URL to access the OCS Inventory NG web interface:

http://192.168.1.1/ocsreports

You will be prompted to enter the OCS Inventory NG administrator username and password. Enter the default credentials, which are 'admin' and 'admin', respectively.

You should change these credentials as soon as possible from the 'Users & Groups' page in the OCS Inventory NG web interface.

Conclusion

Congratulations! You have successfully installed OCS Inventory NG on OpenSUSE latest. With this application, you can now effectively manage and monitor the assets in your IT infrastructure.

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!