Open Source Mobile Device Management?

[root@infra02 ~]# yum --enablerepo=remi,remi-test install glpi nethserver-mysql rh-php56-php-mysql rh-php56-php-mbstring rh-php56-php-gd

===================================================================================================================================
 Package                                       Arch              Version                           Repository                 Size
===================================================================================================================================
Installing:
 glpi                                          noarch            0.90.5-1.el7                      epel                      5.9 M
 rh-php56-php-gd                               x86_64            5.6.25-1.el7                      centos-sclo-rh            158 k
 rh-php56-php-mbstring                         x86_64            5.6.25-1.el7                      centos-sclo-rh            519 k
 rh-php56-php-mysqlnd                          x86_64            5.6.25-1.el7                      centos-sclo-rh            185 k
Installing for dependencies:
 compat-libtidy                                x86_64            0.99.0-37.20091203.el7            epel                      133 k
 gnu-free-fonts-common                         noarch            20120503-8.el7                    base                      127 k
 gnu-free-sans-fonts                           noarch            20120503-8.el7                    base                      1.3 M
 libc-client                                   x86_64            2007f-16.el7                      epel                      562 k
 liblzf                                        x86_64            3.6-7.el7                         epel                       22 k
 libvpx                                        x86_64            1.3.0-5.el7_0                     base                      498 k
 php-IDNA_Convert                              noarch            0.8.0-2.el7                       epel                       36 k
 php-PHPMailer                                 noarch            5.2.26-1.el7                      epel                      135 k
 php-ZendFramework2-Authentication             noarch            2.4.11-1.el7                      epel                       34 k
 php-ZendFramework2-Cache                      noarch            2.4.11-1.el7                      epel                       76 k
 php-ZendFramework2-Captcha                    noarch            2.4.11-1.el7                      epel                       18 k
 php-ZendFramework2-Code                       noarch            2.4.11-1.el7                      epel                       67 k
 php-ZendFramework2-Config                     noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Console                    noarch            2.4.11-1.el7                      epel                       40 k
 php-ZendFramework2-Crypt                      noarch            2.4.11-1.el7                      epel                       34 k
 php-ZendFramework2-Db                         noarch            2.4.11-1.el7                      epel                      111 k
 php-ZendFramework2-Di                         noarch            2.4.11-1.el7                      epel                       38 k
 php-ZendFramework2-Escaper                    noarch            2.4.11-1.el7                      epel                       12 k
 php-ZendFramework2-EventManager               noarch            2.4.11-1.el7                      epel                       22 k
 php-ZendFramework2-Feed                       noarch            2.4.11-1.el7                      epel                       79 k
 php-ZendFramework2-Filter                     noarch            2.4.11-1.el7                      epel                       50 k
 php-ZendFramework2-Form                       noarch            2.4.11-1.el7                      epel                       80 k
 php-ZendFramework2-Http                       noarch            2.4.11-1.el7                      epel                       79 k
 php-ZendFramework2-I18n                       noarch            2.4.11-1.el7                      epel                       99 k
 php-ZendFramework2-InputFilter                noarch            2.4.11-1.el7                      epel                       22 k
 php-ZendFramework2-Json                       noarch            2.4.11-1.el7                      epel                       34 k
 php-ZendFramework2-Ldap                       noarch            2.4.11-1.el7                      epel                       50 k
 php-ZendFramework2-Loader                     noarch            2.4.11-1.el7                      epel                       19 k
 php-ZendFramework2-Log                        noarch            2.4.11-1.el7                      epel                       38 k
 php-ZendFramework2-Mail                       noarch            2.4.11-1.el7                      epel                       76 k
 php-ZendFramework2-Math                       noarch            2.4.11-1.el7                      epel                       18 k
 php-ZendFramework2-Mime                       noarch            2.4.11-1.el7                      epel                       17 k
 php-ZendFramework2-ModuleManager              noarch            2.4.11-1.el7                      epel                       29 k
 php-ZendFramework2-Mvc                        noarch            2.4.11-1.el7                      epel                       88 k
 php-ZendFramework2-Navigation                 noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Paginator                  noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Permissions-Acl            noarch            2.4.11-1.el7                      epel                       21 k
 php-ZendFramework2-Serializer                 noarch            2.4.11-1.el7                      epel                       22 k
 php-ZendFramework2-Server                     noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-ServiceManager             noarch            2.4.11-1.el7                      epel                       24 k
 php-ZendFramework2-Session                    noarch            2.4.11-1.el7                      epel                       37 k
 php-ZendFramework2-Stdlib                     noarch            2.4.11-1.el7                      epel                       53 k
 php-ZendFramework2-Text                       noarch            2.4.11-1.el7                      epel                       27 k
 php-ZendFramework2-Uri                        noarch            2.4.11-1.el7                      epel                       21 k
 php-ZendFramework2-Validator                  noarch            2.4.11-1.el7                      epel                      120 k
 php-ZendFramework2-Version                    noarch            2.4.11-1.el7                      epel                       10 k
 php-ZendFramework2-View                       noarch            2.4.11-1.el7                      epel                       85 k
 php-ZendFramework2-common                     noarch            2.4.11-1.el7                      epel                       75 k
 php-bcmath                                    x86_64            5.4.16-43.el7_4.1                 updates                    57 k
 php-doctrine-annotations                      noarch            1.2.7-4.el7                       epel                       28 k
 php-doctrine-cache                            noarch            1.5.4-1.el7                       epel                       23 k
 php-doctrine-collections                      noarch            1.3.0-2.el7                       epel                       17 k
 php-doctrine-common                           noarch            2.5.3-3.el7                       epel                       51 k
 php-doctrine-inflector                        noarch            1.1.0-4.el7                       epel                       12 k
 php-doctrine-lexer                            noarch            1.0.1-8.el7                       epel                      9.8 k
 php-fedora-autoloader                         noarch            1.0.0-1.el7                       epel                      9.6 k
 php-gd                                        x86_64            5.4.16-43.el7_4.1                 updates                   127 k
 php-htmLawed                                  noarch            1.1.21-1.el7                      epel                      102 k
 php-imap                                      x86_64            5.4.16-7.el7                      epel                       38 k
 php-ircmaxell-random-lib                      noarch            1.2.0-1.el7                       epel                       20 k
 php-ircmaxell-security-lib                    noarch            1.1.0-4.el7                       epel                       13 k
 php-ldap                                      x86_64            5.4.16-43.el7_4.1                 updates                    52 k
 php-mbstring                                  x86_64            5.4.16-43.el7_4.1                 updates                   505 k
 php-mcrypt                                    x86_64            5.4.16-7.el7                      epel                       20 k
 php-mysql                                     x86_64            5.4.16-43.el7_4.1                 updates                   101 k
 php-password-compat                           noarch            1.0.4-1.el7                       epel                       10 k
 php-pdo                                       x86_64            5.4.16-43.el7_4.1                 updates                    99 k
 php-pear                                      noarch            1:1.9.4-21.el7                    base                      357 k
 php-pear-CAS                                  noarch            1.3.5-1.el7                       epel                       70 k
 php-pecl-igbinary                             x86_64            1.2.1-1.el7                       epel                       38 k
 php-pecl-lzf                                  x86_64            1.6.2-4.el7                       epel                       13 k
 php-process                                   x86_64            5.4.16-43.el7_4.1                 updates                    56 k
 php-simplepie                                 noarch            1.3.1-4.el7                       epel                      463 k
 php-symfony-class-loader                      noarch            2.8.12-2.el7                      epel                       26 k
 php-symfony-common                            noarch            2.8.12-2.el7                      epel                      124 k
 php-tcpdf                                     noarch            6.2.13-1.el7                      epel                      2.1 M
 php-tidy                                      x86_64            5.4.16-7.el7                      epel                       23 k
 php-zendframework-zendxml                     noarch            1.0.2-2.el7                       epel                       10 k
 php-zetacomponents-base                       noarch            1.9-2.el7                         epel                      229 k
 php-zetacomponents-graph                      noarch            1.5.2-3.el7                       epel                      134 k
 rh-php56-php-common                           x86_64            5.6.25-1.el7                      centos-sclo-rh            742 k
 rh-php56-php-pdo                              x86_64            5.6.25-1.el7                      centos-sclo-rh            100 k
 rh-php56-php-pecl-jsonc                       x86_64            1.3.6-3.el7                       centos-sclo-rh             44 k
 rh-php56-runtime                              x86_64            2.3-1.el7                         centos-sclo-rh            1.1 M
 t1lib                                         x86_64            5.1.2-14.el7                      base                      166 k

Transaction Summary
===================================================================================================================================
Install  4 Packages (+85 Dependent packages)

Total download size: 18 M
Installed size: 91 M
Is this ok [y/d/N]:
1 Like

You are right, I missed the remi repo install and so the epel version was taken. My fault. Sorry @fausp, this does not help you. Nethserver requires php54 and gpli wants php56 so I have no solution at the moment.

1 Like

I know remi (thank to the fosdem) if he uses the php56 and not the software collection (He is one of the best contributors), he surely gets a good reason

1 Like

No problem, we are not in hurry :grinning:

2 Likes

I guess it will be a mission impossible to urge RH/Centos to upgrade php… :stuck_out_tongue:

1 Like

To install the newest version 9.2.2 you may just get the tar from here…this way we bypass the not working install procedure.

# Download and put glpi in right place
wget https://github.com/glpi-project/glpi/releases/download/9.2.2/glpi-9.2.2.tgz
tar -xzf glpi-9.2.2.tgz
mv glpi /usr/share/
# Set owner to apache
chown -R apache:apache /usr/share/glpi
# Create httpd conf for glpi
cat << EOF > /etc/httpd/conf.d/glpi.conf
Alias /glpi /usr/share/glpi
<Directory /usr/share/glpi>
  Require all granted
  <FilesMatch \.php$>
     SetHandler "proxy:fcgi://127.0.0.1:9000"
  </FilesMatch>
</Directory>
<Directory /usr/share/glpi/files>
  Order Deny,Allow
  Deny from all
  Allow from 127.0.0.1
  Allow from ::1
  Allow from localhost
</Directory>
EOF
# Install PHP 56 and extensions
yum -y install nethserver-mysql nethserver-rh-php56-php-fpm rh-php56-php-mysql rh-php56-php-mbstring rh-php56-php-gd rh-php56-php-ldap rh-php56-php-imap rh-php56-php-opcache sclo-php56-php-pecl-apcu rh-php56-php-xmlrpc
# Create database and user
mysql
create database glpi;
grant all privileges on glpi.* to glpi@localhost identified by 'SECRET';
exit;
# Restart services
systemctl restart httpd
systemctl restart rh-php56-php-fpm

Browse to https://yourNS/glpi and install.

Enter credentials, user glpi and password SECRET - please change the password for security reasons!

Choose glpi database

grafik

When ready just remove the install.php and change password in UI else the dashboard will show warnings…

rm -f /usr/share/glpi/install/install.php

@fausp, do you want to test?

3 Likes

Install went flawless.
Default login for glpi:
user: glpi
pw: glpi

from http://forum.glpi-project.org/viewtopic.php?id=23219
you have 4 differents profils
glpi/glpi (super-admin)
tech/tech
postonly/postonly (only for helpdesk)
normal/normal

Now need to follow these instructions: http://flyve.org/glpi-plugin/howtos/installation-wizard

1 Like

:smile: up and running…

You need several servers to run Flyve MDM:

a server running Linux, Apache, Mysql/MariaDB and PHP (a LAMP server) for the backend (GLPI and Flyve MDM for GLPI),
an Ubuntu or Debian server running Mosquitto,
a server running the web interface. It may run on the same server as GLPI

So how can we do that with NS ?

How far are you Rob ?

Plugin installation looks good:

Is it working under CentOS/NethServer ?

Seems to be available from EPEL:

Yes, worked with:
yum -y install mosquitto

I am here now:

Adapt www-data to the user running your HTTP server ?

instead of www-data on CentOS the user is apache
I think you should also change the php path to match the rh-php56 version

OK, do you have a command-line example for me?

The path is /opt/rh/rh-php56/root/usr/bin/php

1 Like

OK, looks much better:

# Flyve MDM requires cron job to run automatic actions.
crontab -e -u apache

*/1 * * * * /opt/rh/rh-php56/root/usr/bin/php /usr/share/glpi/front/cron.php &>/dev/null
1 Like

There are some not supported functions, hope this is not a showstopper…

[root@infra02 html]# cat /usr/share/glpi/files/_log/cron.log

2018-03-31 14:42:35 [@infra02.privat.lan]
Intern #1: Starte createinquest
2018-03-31 14:43:11 [@infra02.privat.lan]
Intern #1: Starte watcher
2018-03-31 14:43:24 [@infra02.privat.lan]
Intern #1: Starte ticketrecurrent
2018-03-31 14:45:38 [@infra02.privat.lan]
Intern #1: Starte planningrecall
2018-03-31 15:02:26 [2@infra02.privat.lan]
Intern #1: Starte queuednotification
2018-03-31 15:09:26 [2@infra02.privat.lan]
Intern #1: Starte queuednotificationclean
2018-03-31 15:10:10 [@infra02.privat.lan]
Intern #1: Starte temp
2018-03-31 15:27:04 [@infra02.privat.lan]
Intern #1: Starte mailgateerror
2018-03-31 15:40:58 [2@infra02.privat.lan]
Intern #1: Starte contract
2018-03-31 16:12:59 [2@infra02.privat.lan]
Intern #1: Starte infocom
2018-03-31 16:22:16 [2@infra02.privat.lan]
Intern #1: Kann nicht starten optimize

nicht definierte Funktion CronTask::cronoptimize (für cron)
2018-03-31 16:27:28 [2@infra02.privat.lan]
Intern #1: Kann nicht starten optimize

nicht definierte Funktion CronTask::cronoptimize (für cron)
2018-03-31 16:35:08 [2@infra02.privat.lan]
Intern #1: Kann nicht starten optimize

nicht definierte Funktion CronTask::cronoptimize (für cron)
2018-03-31 16:37:01 [@infra02.privat.lan]
Extern #1: Starte taskscheduler
2018-03-31 16:37:01 [@infra02.privat.lan]
Extern #2: Starte cleantaskjob
2018-03-31 16:37:01 [@infra02.privat.lan]
Extern #3: Starte cleannetworkportlogs
2018-03-31 16:37:01 [@infra02.privat.lan]
Extern #4: Starte cleanoldagents
2018-03-31 16:37:01 [@infra02.privat.lan]
Extern #5: Starte wakeupAgents
2018-03-31 16:38:01 [@infra02.privat.lan]
Extern #1: Starte cleanondemand
2018-03-31 16:38:01 [@infra02.privat.lan]
Extern #2: Starte ParseApplication
2018-03-31 16:38:01 [@infra02.privat.lan]
Extern #3: Starte taskscheduler
2018-03-31 16:39:01 [@infra02.privat.lan]
Extern #1: Starte taskscheduler
2018-03-31 16:39:01 [@infra02.privat.lan]
Extern #2: Starte wakeupAgents
2018-03-31 16:39:01 [@infra02.privat.lan]
Extern #3: Starte ParseApplication
2018-03-31 16:40:02 [@infra02.privat.lan]
Extern #1: Starte taskscheduler
2018-03-31 16:40:02 [@infra02.privat.lan]
Extern #2: Starte ParseApplication
2018-03-31 16:41:01 [@infra02.privat.lan]
Extern #1: Starte taskscheduler
2018-03-31 16:41:01 [@infra02.privat.lan]
Extern #2: Starte wakeupAgents
2018-03-31 16:41:01 [@infra02.privat.lan]
Extern #3: Starte ParseApplication
2018-03-31 16:41:08 [2@infra02.privat.lan]
Intern #1: Kann nicht starten optimize

nicht definierte Funktion CronTask::cronoptimize (für cron)
1 Like

I installed GLPI from the Repository and todays update broke my GLPI 9.2.2 Installation:

Dependencies Resolved

===============================================================================================================================
 Package                                Arch                Version                      Repository                       Size
===============================================================================================================================
Updating:
 certbot                                noarch              0.22.2-1.el7                 epel                             21 k
 dedalo                                 noarch              0.1.0-1.ns7                  nethserver-updates               10 k
 glpi                                   noarch              0.90.5-2.el7                 epel                            5.9 M
 nethserver-base                        noarch              3.1.3-1.ns7                  nethserver-updates              231 k
 nethserver-dedalo                      noarch              1.0.1-1.ns7                  nethserver-updates               20 k
 nethserver-httpd                       noarch              3.2.0-1.ns7                  nethserver-updates               50 k
 nethserver-httpd-admin                 noarch              2.1.0-1.ns7                  nethserver-updates              1.6 M
 nethserver-mail-server                 noarch              1.12.0-1.ns7                 nethserver-updates              104 k
 nethserver-mail-smarthost              noarch              1.0.1-1.ns7                  nethserver-updates               29 k
 nethserver-openssh                     noarch              1.2.2-1.ns7                  nethserver-updates               30 k
 python2-acme                           noarch              0.22.2-1.el7                 epel                            135 k
 python2-certbot                        noarch              0.22.2-1.el7                 epel                            481 k

Transaction Summary
===============================================================================================================================
Upgrade  12 Packages

Total download size: 8.5 M

How should I begin to install GLPI to get a stable Installation ?

I think best way is to yum remove glpi so there won’t be updates anymore and then reinstall glpi as described here.

1 Like

Yes, thank you. I will further work on it in a few days…

1 Like

Bumping this topic. @fausp @mrmarkuz, any news?