How to Install OCS Inventory NG on MXLinux Latest

OCS Inventory NG is a free and open-source inventory and asset management system. It allows you to collect information about hardware, software, and network devices on your network. This tutorial will guide you on how to install OCS Inventory NG on MXLinux Latest.

Prerequisites

Step 1: Installing Apache, MySQL, and PHP (LAMP)

First, you need to install LAMP (Apache, MySQL, and PHP) on your MXLinux system. You can install LAMP by running the following command in the terminal:

sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql

After the installation is complete, start the Apache and MySQL services:

sudo systemctl start apache2
sudo systemctl start mysql

You can verify if Apache and MySQL are running by accessing the Apache default page from your web browser at http://localhost/ and by logging in to MySQL as the root user with the following command:

sudo mysql -u root

Step 2: Installing OCS Inventory NG

  1. Download the OCS Inventory NG package from the official website at https://ocsinventory-ng.org/. You can download the package using the following command in the terminal:
wget https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/2.7/OCSNG_UNIX_SERVER_2.7.tar.gz
  1. Extract the downloaded package using the following command in the terminal:
tar xzf OCSNG_UNIX_SERVER_2.7.tar.gz
  1. Change the directory to the extracted package:
cd OCSNG_UNIX_SERVER_2.7
  1. Install the required dependencies by running the following command in the terminal:
sudo apt install libapache2-mod-perl2 libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libio-compress-perl libnet-snmp-perl libapache-session-perl libapache2-mod-php libxml-simple-perl libnet-ip-perl libauthen-radius-perl libfile-mimeinfo-perl libdigest-md5-perl libnet-ldap-perl libjson-perl libyaml-perl libcrypt-des-perl libapache-db-perl libyaml-tiny-perl libtext-diff-perl libregexp-common-perl libproc-daemon-perl make build-essential
  1. Install OCS Inventory NG by running the following command in the terminal:
sudo sh setup.sh
  1. Follow the installation steps and configure the database details and other settings. You can choose the default settings for most of the options.

  2. After the installation is complete, restart the Apache service:

sudo systemctl restart apache2

Step 3: Accessing OCS Inventory NG

You can access OCS Inventory NG by opening your web browser and navigating to http://localhost/ocsreports.

You will be prompted to log in with the default admin credentials:

You should change the default password after logging in.

Conclusion

Congratulations! You have successfully installed OCS Inventory NG on MXLinux Latest. You can now start using OCS Inventory NG to manage your inventory and assets.

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!