projects:mdm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:mdm [2020/12/04 08:37] igorprojects: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://gianomdm.comune.verona.it/hmdm/
 +
 +scaricare apk o xapk da https://m.apkpure.com/it/
 +
 +{{ :projects:mdm1.png?400 |}}
 +
 +
 +
 +{{ :projects:mdm2.png?400 |}}
 +
 +
 +caricare su gianomdm il package 
 +
 +{{ :projects:mdm3.png?400 |}}
 +
 +
 +
 +{{ :projects:mdm4.png?400 |}}
 +
 +
 +
 +{{ :projects:mdm5.png?400 |}}
 +
 +
 +
 +{{ :projects:mdm6.png?400 |}}
 +
 +
 +assegnare il package al gruppo di test, ad esempio 'supervigili'
 +
 +{{ :projects:mdm7.png?400 |}}
 +
 +
 +successivamente, dopo i test, assegnare il package al gruppo 'vigili'
 +
 +{{ :projects:mdm8.png?400 |}}
 +==== intro ====
 +
  
 Sito di riferimento: https://h-mdm.com/ Sito di riferimento: https://h-mdm.com/
  
 +Focal (20.04) install per default Tomcat9
 +https://qa.h-mdm.com/5022/how-to-install-headwind-mdm-on-ubuntu-20-04
 +
 +Le credenziali di Postgres e del portale sono nella macchina alla posizione:  /root/accesso-credenziali.txt
 +
 +
 +Accesso portale comune di Verona: https://android.giano.comune.verona.it/hmdm
 +utente: admin
 +password: eur...
 ==== Installazione server ==== ==== Installazione server ====
  
 <code bash> <code bash>
 ubuntu@h-mdm:~$ sudo apt update ubuntu@h-mdm:~$ sudo apt update
-ubuntu@h-mdm:~$ sudo apt install openjdk-8-jdk aapt tomcat8 postgresql +ubuntu@h-mdm:~$ #### sudo apt install openjdk-8-jdk aapt tomcat8 postgresql 
-ubuntu@h-mdm:~$ sudo apt install unzip+ubuntu@h-mdm:~$ apt install  aapt postgresql tomcat9 unzip
  
-ubuntu@h-mdm:~$ wget https://h-mdm.com/files/hmdm-3.30-install-ubuntu.zip +ubuntu@h-mdm:~$ wget https://h-mdm.com/files/hmdm-3.31-install-ubuntu.zip 
-ubuntu@h-mdm:~$ unzip hmdm-3.30-install-ubuntu.zip +ubuntu@h-mdm:~$ unzip hmdm-3.31-install-ubuntu.zip 
 </code> </code>
 +
 +=== tomcat9 ===
 +
 +La versione di Tomcat 9.0.31 sembra abbia problemi con l'https. Non dovremmo risentirne (siamo dietro un reverse proxy e usiamo qui solo http, ma ho comunque applicato la modifica consigliata dai produttori di hmdm:
 +
 +<code bash>
 +VERSION=9.0.40
 +wget https://archive.apache.org/dist/tomcat/tomcat-9/v${VERSION}/bin/apache-tomcat-${VERSION}.tar.gz
 +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 /usr/share/tomcat9/bin /usr/share/tomcat9/bin~
 +mv /usr/share/tomcat9/lib /usr/share/tomcat9/lib~
 +cp -r bin /usr/share/tomcat9
 +cp -r lib /usr/share/tomcat9
 +systemctl start tomcat9
 +systemctl status tomcat9
 +
 +curl -I  http:/ip_macchina:8080/
 +   HTTP/1.1 200 
 +</code>
 +
  
 === Preparazione database === === Preparazione database ===
Line 56: Line 134:
 If the directory doesn't exist, it will be created If the directory doesn't exist, it will be created
 ##### FOR TOMCAT 9, USE SANDBOXED DIR: /var/lib/tomcat9/work ##### ##### FOR TOMCAT 9, USE SANDBOXED DIR: /var/lib/tomcat9/work #####
 +### La propone già lui, evidentemente testa la versione ###
  
-Headwind MDM directory [/opt/hmdm]: /opt/hmdm+Headwind MDM directory [/var/lib/tomcat9/work]: /var/lib/tomcat9/work
  
 Web application setup Web application setup
Line 65: Line 144:
  
 Protocol (http|https) [http]: http Protocol (http|https) [http]: http
-Domain name or public IP (e.g. example.com): mdm.csgalileo.org +Domain name or public IP (e.g. example.com): android.giano.comune.verona.it 
-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]: localhost Tomcat virtual host [localhost]: localhost
  
 Ready to install! Ready to install!
-Location on server: /opt/hmdm +Location on server: /var/lib/tomcat9/work 
-URL: http://mdm.csgalileo.org: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/conf/Catalina/localhost//hmdm.xml 
-Tomcat config file created: /var/lib/tomcat8/conf/Catalina/localhost//hmdm.xml +Deploying hmdm-3.31.4-os.war to Tomcat: /var/lib/tomcat9/webapps//hmdm.war 
-Deploying hmdm-3.30.1-os.war to Tomcat: /var/lib/tomcat8/webapps//hmdm.war +..................
-............................+
 Deployment successful, initializing the database... Deployment successful, initializing the database...
  
Line 83: 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://mdm.csgalileo.org:8080/hmdm +http://android.giano.comune.verona.it/hmdm
-Login: admin:admin+
 </code> </code>
  
-Entrato ho cambiato la password di admin in Euro...+Entrato ho cambiato la password di admin 
  
 Il pushing dei messaggi (se si seleziona MQTT) ha bisogno della porta ''31000 (TCP)'' aperta. Il pushing dei messaggi (se si seleziona MQTT) ha bisogno della porta ''31000 (TCP)'' aperta.
Line 93: Line 171:
  
 <code> <code>
-IP_PRIVATO mdm.csgalileo.org+IP_PRIVATO android.giano.comune.verona.it
 </code> </code>
  
Line 103: Line 181:
 </code> </code>
  
-l'MQTT è impostato correttamente. Ad ogni modo la configurazione di questo bind è in ''/var/lib/tomcat8/conf/Catalina/localhost/hmdm.xml''+l'MQTT è impostato correttamente. Ad ogni modo la configurazione di questo bind è in ''/var/lib/tomcat9/conf/Catalina/localhost/hmdm.xml''
  
 <code xml> <code xml>
Line 109: Line 187:
     <Parameter name="mqtt.server.uri" value="mdm.csgalileo.org:31000"/>     <Parameter name="mqtt.server.uri" value="mdm.csgalileo.org:31000"/>
 </code> </code>
 +
 +
 +==== 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" tab, and make sure "Headwind MDM Launcher" is set as the main app, and the "Component" is com.hmdm.launcher.AdminReceiver
 +
 +
  
 ==== Client ==== ==== Client ====
Line 127: Line 213:
 La registrazione è a buon fine se il pallino è verde sotto ''status'' nella dashboard. La registrazione è a buon fine se il pallino è verde sotto ''status'' nella dashboard.
  
-Preme sulla terza icona a dx (un simbolo di download) per sincronizzare il telefono.+Premere sulla terza icona a dx (un simbolo di download) per sincronizzare il telefono.
  
  
    
  • projects/mdm.1607067471.txt.gz
  • Last modified: 2020/12/04 08:37
  • by igor