Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:mdm [2020/12/04 08:12] – created igor | projects:mdm [2022/03/10 09:19] (current) – [gestione app] sscipioni | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== mobile device management (MDM) ====== | ===== mobile device management (MDM) ====== | ||
+ | |||
+ | ==== gestione app ==== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | scaricare apk o xapk da https:// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | caricare su gianomdm il package | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | assegnare il package al gruppo di test, ad esempio ' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | successivamente, | ||
+ | |||
+ | {{ : | ||
+ | ==== intro ==== | ||
+ | |||
Sito di riferimento: | Sito di riferimento: | ||
+ | Focal (20.04) install per default Tomcat9 | ||
+ | https:// | ||
+ | |||
+ | Le credenziali di Postgres e del portale sono nella macchina alla posizione: | ||
+ | |||
+ | |||
+ | Accesso portale comune di Verona: https:// | ||
+ | utente: admin | ||
+ | password: eur... | ||
==== Installazione server ==== | ==== Installazione server ==== | ||
<code bash> | <code bash> | ||
ubuntu@h-mdm: | ubuntu@h-mdm: | ||
- | ubuntu@h-mdm: | + | ubuntu@h-mdm: |
- | ubuntu@h-mdm: | + | ubuntu@h-mdm: |
- | ubuntu@h-mdm: | + | ubuntu@h-mdm: |
- | ubuntu@h-mdm: | + | ubuntu@h-mdm: |
</ | </ | ||
- | === Preparazione database | + | === tomcat9 |
+ | |||
+ | La versione di Tomcat 9.0.31 sembra abbia problemi con l' | ||
<code bash> | <code bash> | ||
+ | VERSION=9.0.40 | ||
+ | wget https:// | ||
+ | tar -zxf apache-tomcat-${VERSION}.tar.gz | ||
+ | cd apache-tomcat-${VERSION} | ||
+ | chmod a+x bin | ||
+ | chmod a+x lib | ||
+ | chmod -R a+r bin | ||
+ | chmod -R a+r lib | ||
+ | chmod a+x bin/*.sh | ||
+ | systemctl stop tomcat | ||
+ | systemctl stop tomcat9 | ||
+ | mv / | ||
+ | mv / | ||
+ | cp -r bin / | ||
+ | cp -r lib / | ||
+ | systemctl start tomcat9 | ||
+ | systemctl status tomcat9 | ||
+ | |||
+ | curl -I http:/ | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Preparazione database === | ||
+ | |||
+ | < | ||
# su - postgres | # su - postgres | ||
$ psql | $ psql | ||
- | postgres=# CREATE USER hmdm WITH PASSWORD 'Topsecret1234'; | + | postgres=# CREATE USER hmdm WITH PASSWORD 'password'; |
postgres=# CREATE DATABASE hmdm WITH OWNER=hmdm; | postgres=# CREATE DATABASE hmdm WITH OWNER=hmdm; | ||
postgres=# \q | postgres=# \q | ||
</ | </ | ||
+ | == check database == | ||
+ | < | ||
# Bisogna specificare -h localhost, altrimenti effettua | # Bisogna specificare -h localhost, altrimenti effettua | ||
# una peer authentication, | # una peer authentication, | ||
# hmdm negli utenti di sistema | # hmdm negli utenti di sistema | ||
psql -U hmdm -W -h localhost | psql -U hmdm -W -h localhost | ||
+ | </ | ||
- | ubuntu@h-mdm: | + | === Installazione === |
+ | < | ||
ubuntu@h-mdm: | ubuntu@h-mdm: | ||
Please choose the installation language (en/ru) [en]: en | Please choose the installation language (en/ru) [en]: en | ||
Line 46: | Line 127: | ||
PostgreSQL database [hmdm]: hmdm | PostgreSQL database [hmdm]: hmdm | ||
PostgreSQL user [hmdm]: hmdm | PostgreSQL user [hmdm]: hmdm | ||
- | PostgreSQL password: | + | PostgreSQL password: |
File storage setup | File storage setup | ||
Line 53: | Line 134: | ||
If the directory doesn' | If the directory doesn' | ||
##### FOR TOMCAT 9, USE SANDBOXED DIR: / | ##### FOR TOMCAT 9, USE SANDBOXED DIR: / | ||
+ | ### La propone già lui, evidentemente testa la versione ### | ||
- | Headwind MDM directory [/opt/hmdm]: /opt/hmdm | + | Headwind MDM directory [/var/lib/ |
Web application setup | Web application setup | ||
Line 62: | Line 144: | ||
Protocol (http|https) [http]: http | Protocol (http|https) [http]: http | ||
- | Domain name or public IP (e.g. example.com): | + | Domain name or public IP (e.g. example.com): |
- | Port (leave empty for default ports 80 or 443): 8080 | + | ### Ho lasciato vuoto come scritto, per abilitare la porta 80, ma l'ha messa lo stesso sulla 8080 ### |
+ | Port (leave empty for default ports 80 or 443): | ||
Project path on server or ROOT [/hmdm]: /hmdm | Project path on server or ROOT [/hmdm]: /hmdm | ||
Tomcat virtual host [localhost]: | Tomcat virtual host [localhost]: | ||
Ready to install! | Ready to install! | ||
- | Location on server: /opt/hmdm | + | Location on server: /var/lib/ |
- | URL: http://94.230.76.87:8080/hmdm | + | URL: http://android.giano.comune.verona.it/hmdm |
Is this information correct [Y/n]? Y | Is this information correct [Y/n]? Y | ||
- | + | Tomcat config file created: /var/lib/tomcat9/ | |
- | Tomcat config file created: /var/lib/tomcat8/ | + | Deploying hmdm-3.31.4-os.war to Tomcat: /var/lib/tomcat9/ |
- | Deploying hmdm-3.30.1-os.war to Tomcat: /var/lib/tomcat8/ | + | .................. |
- | ............................ | + | |
Deployment successful, initializing the database... | Deployment successful, initializing the database... | ||
Line 80: | Line 162: | ||
Headwind MDM has been installed! | Headwind MDM has been installed! | ||
To continue, open in your web browser: | To continue, open in your web browser: | ||
- | http:// | + | http:// |
- | Login: admin:admin | + | </ |
+ | |||
+ | Entrato ho cambiato la password di admin | ||
+ | |||
+ | Il pushing dei messaggi (se si seleziona MQTT) ha bisogno della porta '' | ||
+ | Inoltre, dietro NAT, modificare ''/ | ||
+ | |||
+ | < | ||
+ | IP_PRIVATO android.giano.comune.verona.it | ||
+ | </ | ||
+ | |||
+ | Per verifica, controllare i log dopo il riavvio di tomcat: se non compare qualcosa come | ||
+ | |||
+ | < | ||
+ | 2020-12-03 09:27:02 [ERROR] com.hmdm.notification.guice.module.NotificationMqttTaskModule : Failed to create MQTT broker service | ||
+ | java.io.IOException: | ||
+ | </ | ||
+ | |||
+ | l'MQTT è impostato correttamente. Ad ogni modo la configurazione di questo bind è in ''/ | ||
+ | |||
+ | <code xml> | ||
+ | <!-- MQTT notification service parameters --> | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Troubleshooting ==== | ||
+ | |||
+ | If the QR code icon in the configurations list has been vanished and is not working any more: | ||
+ | * Open the configuration details, "MDM settings" | ||
+ | |||
+ | |||
+ | |||
+ | ==== Client ==== | ||
- | Entrato ho cambiato la password di admin in Eurolandia2012 | + | In https:// |
+ | * Fare tap 7 volte sulla schermata iniziale | ||
+ | * Configurare il wifi | ||
+ | * Fare lo scan del QR-COde (il telefono si scarica i pacchetti necessari autonomamente e presenta la schermata dello scanner) | ||
+ | * L' | ||
+ | * Assegnare i permessi che chiede | ||
+ | * Inserire l'ID del device (che nella pagina del barcode presentata dal server è in basso in una textbox) | ||
- | =========== | ||
- | Entrato nel telefono senza registrarsi a google o altro account. | + | Quando ho finito ho cliccato su home (O) e mi ha chiesto se volevo confermare |
- | Aperto chrome | + | |
- | Scaricato l'apk Android application (launcher) | ||
- | seguito istruzioni in https:// | + | La registrazione è a buon fine se il pallino è verde sotto '' |
- | Come server Url ho dato http://94.230.76.87: | + | Premere sulla terza icona a dx (un simbolo di download) per sincronizzare il telefono. |
- | Quando ho finito ho cliccato du home (O) e mi ha chiesto se volevo confermare mdm come launche. | ||
- | Dopo di che il pallino verde è apparso | + |