How to Install OCS Inventory NG on Fedora CoreOS Latest

OCS Inventory NG is an open-source inventory and asset management solution that allows you to manage your IT assets by collecting information about hardware and software. In this tutorial, we will show you how to install OCS Inventory NG on Fedora CoreOS latest.

Prerequisites

Before starting, make sure you have the following:

Step 1: Install Apache and PHP

The first step is to install Apache and PHP on your Fedora CoreOS system:

sudo rpm-ostree install httpd php php-common php-mysqlnd

You can verify that Apache and PHP are installed correctly by running the following command:

sudo systemctl status httpd

Step 2: Install MariaDB

The next step is to install the MariaDB database server:

sudo rpm-ostree install mariadb-server

After installing the MariaDB server, start the database server and enable it to automatically start at boot time:

sudo systemctl start mariadb
sudo systemctl enable mariadb

Step 3: Create a database for OCS Inventory NG

Now, we will create a database for OCS Inventory NG:

sudo mysql -u root -p

Enter your MariaDB root password when prompted.

CREATE DATABASE ocsweb;
GRANT ALL PRIVILEGES ON ocsweb.* TO 'ocs'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;

Replace the 'password' with a strong password of your choice.

Step 4: Download and install OCS Inventory NG

Download and install the OCS Inventory NG package from the official website:

wget https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.7.2/OCSNG_UNIX_SERVER_2.7.2.tar.gz
sudo tar xzf OCSNG_UNIX_SERVER_2.7.2.tar.gz -C /var/www/html/
sudo chown -R apache:apache /var/www/html/ocsreports

Step 5: Configure the OCS Inventory NG server

Edit the OCS Inventory NG server configuration file:

sudo vim /var/www/html/ocsreports/dbconfig.inc.php

Set the following values for the configuration options:

define("DB_NAME", "ocsweb");
define("SERVER_READ", "localhost");
define("SERVER_WRITE", "localhost");
define("USER", "ocs");
define("PWD", "password");
define("COMPTE_ADMIN_VALIDATOR", "password");

Replace the 'password' with the password that you used in Step 3.

Save and close the file.

Step 6: Access the OCS Inventory NG web interface

Finally, access the OCS Inventory NG web interface by opening a web browser and navigating to http://your-server-ip/ocsreports/.

You will see the login screen, use the following credentials to log in:

Username: admin Password: password

Replace the 'password' with the password that you used in Step 3.

Congratulations! You have successfully installed and configured OCS Inventory NG on Fedora CoreOS latest.

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!