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.
Before starting, make sure you have the following:
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
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
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.
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
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.
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!