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-09-15T13:29:45+00:00September 5th, 2018|Linux, OCS Inventory NG, Windows 10|6 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.

6 Comments

  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.

    Thanks!

    • 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.

Leave A Comment

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