forked from h-mdm/hmdm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.txt
50 lines (31 loc) · 1.25 KB
/
BUILD.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Headwind MDM: a corporate launcher for Android
==============================================
= BUILD INSTRUCTIONS FOR THE WEB PANEL =
==============================================
This instruction has been tested on Ubuntu Linux 20.04 LTS/22.04 LTS.
1. Install required software
For Ubuntu Linux 20.04 LTS
# sudo apt install git aapt tomcat8 maven postgresql
For Ubuntu Linux 22.04 LTS:
# sudo apt install git aapt tomcat9 maven postgresql
2. Make sure Tomcat is running
curl localhost:8080
(if you get "Failed to connect" error, fix the installation issue)
3. Clone the repository
# git clone https://github.com/h-mdm/hmdm-server
# cd hmdm-server
4. If you are planning to run or debug Headwind MDM in IDE, create the properties
file from the sample
# cp server/build.properties.example server/build.properties
and update the contents of the server/build.properties file.
5. Build the source code
# mvn install
6. Create the PostgreSQL database and user
# sudo su postgres
# psql
postgres=# CREATE USER hmdm WITH PASSWORD 'topsecret';
postgres=# CREATE DATABASE hmdm WITH OWNER=hmdm;
postgres=# \q
7. Run the installer script (as root)
sudo ./hmdm_install.sh
8. On success, the installer script provides you with the URL. Open Headwind MDM in browser.