How to install OCS Inventory on FreeNas Jail

DonCorleone

Cadet
Joined
May 14, 2019
Messages
7
Hi, I'm new to the forum. FreeNas I set with tutorials on YouTube. My server has 16GB RAM, 2 TB storage. My question is whether I can install the inventorization system (OCS Inventory) in Jail. How is it possible for someone to have a step by step guide? I would be grateful !
 

DonCorleone

Cadet
Joined
May 14, 2019
Messages
7
Thank you for your response. Unfortunately, an error occurs during installation:


Code:
+----------------------------------------------------------------------+
|     OK, Communication server plugins Perl directory created ;-)      |
|                                                                      |
|               Now configuring Apache web server...                   |
+----------------------------------------------------------------------+
To ensure Apache loads mod_perl before OCS Inventory NG Communication Server,
Setup can name Communication Server Apache configuration file
'z-ocsinventory-server.conf' instead of 'ocsinventory-server.conf'.
Do you allow Setup renaming Communication Server Apache configuration file
to 'z-ocsinventory-server.conf' ([y]/n) ?
OK, using 'z-ocsinventory-server.conf' as Communication Server Apache configuration file
cp: etc/ocsinventory/ocsinventory-server.conf: No such file or directory
Can't open ocsinventory-server.conf.local: No such file or directory.
Can't open ocsinventory-server.conf.local: No such file or directory.
Can't open ocsinventory-server.conf.local: No such file or directory.
Can't open ocsinventory-server.conf.local: No such file or directory.
Can't open ocsinventory-server.conf.local: No such file or directory.
Can't open ocsinventory-server.conf.local: No such file or directory.
cat: ocsinventory-server.conf.local: No such file or directory
Removing old communication server configuration to file /ocsinventory.conf
Writing communication server configuration to file /z-ocsinventory-server.conf
*** ERROR: Unable to write /z-ocsinventory-server.conf, please look at error in/usr/local/share/ocsinventory-server/ocs_server_setup.log and fix !
 

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
I tried to install this but unfortunately even after a successful install apache complains about a syntax error. I looked through the files but there doesnt seem to be one, so not sure how to fix it. This package has no maintainer which is why it is broken on freebsd currently.
If you want to fix the install errors and try yourself, grab the etc directory from here https://github.com/OCSInventory-NG/OCSInventory-Server
and place it in /usr/local/share/ocsinventory-server, so you will have /usr/local/share/ocsinventory-server/etc/ocsinventory
then while in /usr/local/share/ocsinventory-server run this git clone command
Code:
git clone https://github.com/OCSInventory-NG/OCSInventory-ocsreports.git ocsreports

That will fix the install errors at least.
Restart apache and maybe it works ?
 

DonCorleone

Cadet
Joined
May 14, 2019
Messages
7
I was able to install! I have access to the panel. I log in but unfortunately I can not connect the client
 

DonCorleone

Cadet
Joined
May 14, 2019
Messages
7
I did everything blind so I will not say how I did it xd
1.PNG
 
Last edited:
Top