OCS Inventory NG 2.5 install guide on Debian Stretch with SSL and Deployment

Hello again, it’s been a while since my last guide for OCS Inventory NG but since OCS Inventory team released version 2.5 I decided to update my guide, well rewrite it from the scratch, actually so we can enjoy the new version!

What will be needed:

  1. Access to the Internet – yes, that’s obvious, but still – worth mentioning
  2. A debian distribution, net install is fine: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/
  3. Valid SSL certificate for the server (few tips regarding dns names etc later)
  4. Physical or Virtual Machine(strongly advised) with at least 2GB RAM and 20GB HDD, 1 CPU is fine
  5. One test PC or VM
  6. Ocs Inventory Agent, OCS Packager and OCS Inventory NG Server. All can be downloaded from OCS Inventory GitHub Project in Releases sections.

After completing this guide you will have fully working OCS Inventory NG server version 2.5 with agent installed and OCS Agent Package ready. Also, all communication will be done using SSL(yes – all, including inventory, deployment info and deployment fragments!), so data will be secured.

Steps that will be performed:

  1. Install newest version of Debian and upgrade
  2. Install Apache and MySQL, tools and packages
  3. Install OCS Inventory NG server and configure
  4. Enable SSL
  5. Final touch
  6. Prepare OCS Agent Package and deploy it

I am not adding LDAP/Active Directory authentication yet but can be enabled later. We will see.

You can think that there is quite a lot to do but doing this in test environment took me around 20 minutes(well, after almost 10 tries, tests formats etc.). So if you follow my guide to the line, you should have fully working OCS NG Inventory server in less than 30 minutes!

Ok, so let’s start!

By |2018-11-26T10:53:33+00:00September 5th, 2018|Linux, OCS Inventory NG, Windows 10|14 Comments

About the Author:

I am passionate about Systems Administration. I like to face new challenges and test new environments.Windows and Linux Debian boxes (both physical and virtual) are my favourites. I like solving problems related to Windows Server roles and services as well as Linux but some distributions in particular. I'm not considering myself as Linux master but surely, I always do my best to fit the needs. On the other hand I consider myself as a Windows Server Professional and in terms of WS and Windows Desktops I always follow best practices, good advices and opinions from other admins.


  1. Trond November 11, 2018 at 17:55 - Reply

    Hi! Love your tutorials. Really in-depth and with the describing text really makes alot more sence than alot of other How-To’s out there! Keep up the good work :). I see you have Nagios setup aswell, any good reason for going for Nagios vs Zabbix?

    • Miłosz Engel November 13, 2018 at 09:10 - Reply

      Hello Trond, Thanks for your comment! I just write them in a way I could make use of them after a while:) Regarding Nagios vs Zabbix – to be honest I never used Zabbix so I cannot tell which is better. I used Nagios in one of my early jobs and thought that it’s quite good. These days there are many more like Grafana with all the plugins and others as well.

  2. Jonas November 15, 2018 at 16:13 - Reply

    Really Nice Tutorial thank you!
    Can you maybe add a Tutorial for Deploying via GPO.

    I tried using the PSExec but somehow it does not work. If I run the “OcsPackage.exe” as Admin it works but without this its does not work.
    And somehow there should be a easy solution completely via GPO + Deployment Tool.


    • Miłosz Engel November 15, 2018 at 21:44 - Reply

      It’s actually pretty easy! You build a ocspackage.exe using ocs packager tool, place it somewhere on the net like sysvol/scripts and then create a new gpo with scheduled task set to run only once at specific time and run asap when schedule is missed. then task will be removed after run.
      trigger can be any, command line will be ocspackage.exe and that’s it! 🙂

  3. Jonas November 16, 2018 at 13:39 - Reply

    And whats with the Rights Management?

    Normal users cant install a Service…?

    Maybe im wrong but isnt the Goal to install the Service everywhere?

    • Miłosz Engel November 16, 2018 at 15:14 - Reply

      yes, when you create a task to deploy agent, create it to run with highest privileges as well as set “NT Authority\SYSTEM” as executing user. Also, set the task to run immediately. Then OCS will install as service no matter what user is currently logged on.

  4. Trond November 22, 2018 at 21:51 - Reply

    Hi Milosz 🙂

    Got my OCS Inventory 2.5 server up and running thanks to you!
    Thank you very much.
    Do you have any clue as to how I can launch something “verbose”?
    Looks like OCS Inventory forces the install to be silent no matter what I do.
    I have a installer (exe) that are not designed to be ran silently. So it seems like it doesn’t install.
    I tried a dozen of installers, and all work except the one I really need to work.
    Suggestions? 🙂

    • Miłosz Engel November 23, 2018 at 13:16 - Reply

      Hey, good it worked for you! Thanks for your feedback. Regarding that installer I would start with option “Installation completion need user action” enabled. Also, you could wrap that installer in some msi wrapper, provide answers and install that way. When you deploy software it uses SYSTEM account that is why you do not have any screens. I think easiest way is to use msi wrapper software. There are many to choose from:)

  5. Hamad November 24, 2018 at 23:15 - Reply

    Hello, first, thank you for your tutorial, i have a permission denied when i try http://localhost/ocsreports
    How to solve that?


  6. Fadi November 25, 2018 at 00:03 - Reply

    Hello Milosz, can you help me please to fix my problem? I followed your tutorial but I get an error when I try to access http://localhost/ocsreports.
    You don’t have permission to access /ocsreports/ on this server.

    • Miłosz Engel November 26, 2018 at 10:55 - Reply

      at which stage/point this error occurs? If it’s after all steps or right after installation? Also, have you tried to access it from other computer using ip? Seems like permission issue in apache default.conf file to me

  7. Fred November 30, 2018 at 18:35 - Reply

    hy, thanks for your great installation manual, but i am not able to create adminsitrative radio buttons or checkboxes.

    the checkboxes are just not visible

    perhaps it has something todo with install of php-gd (i think it is missing)
    Please try all types of checkboxes and textboxes. I think you can create a bug report this issue to the ocs-team or change your installation manual.


    • Miłosz Engel December 3, 2018 at 22:10 - Reply

      hey Fred, yeah, got your point. I will test it tomorrow. If you have pointed the php-gd maybe just give it a try and report back:) I will do some tests from my end, though

  8. Cássio Callins January 18, 2019 at 16:00 - Reply

    tutorial very good, your blog has helped me a lot in the past and still today. If you can help me with something extra … I can not configure the snmp issue, if you have any valuable tips or a specific tutorial … thank you!

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.