|
1632
|
1 Install on local machine:
|
|
|
2
|
|
|
3 1) install mercurial
|
|
|
4 brew install hg
|
|
|
5
|
|
|
6 2) install java
|
|
|
7 brew tap caskroom/versions
|
|
|
8 brew install caskroom/cask/java8
|
|
|
9
|
|
2063
|
10 3) install python3
|
|
|
11 curl -O https://www.python.org/ftp/python/3.7.9/python-3.7.9-macosx10.9.pkg
|
|
|
12 sudo installer -pkg python-3.7.9-macosx10.9.pkg -target /
|
|
2064
|
13 # update trust store, needed for old versions of macos
|
|
|
14 cd "/Applications/Python 3.7/"
|
|
|
15 chmod +x "Install Certificates.command"
|
|
|
16 ./Install\ Certificates.command
|
|
2063
|
17
|
|
|
18 4) clone repo
|
|
1671
|
19 hg clone https://hg.reactionary.software/repo/luan
|
|
1632
|
20
|
|
2063
|
21 5) Install nginx
|
|
1632
|
22 brew tap denji/nginx
|
|
|
23 brew install nginx-full
|
|
|
24
|
|
2063
|
25 6) Make sudo nginx without password
|
|
1632
|
26 add string to /etc/sudoers
|
|
|
27 %admin ALL=(ALL) NOPASSWD: /usr/local/bin/nginx
|
|
|
28
|
|
2063
|
29 7) compile
|
|
1632
|
30 ./update.sh
|
|
|
31
|
|
2063
|
32 8) open in browser http://me.luan.software:8080
|
|
1632
|
33
|
|
|
34 Install on production/test machine:
|
|
2063
|
35 1 - 7 same
|
|
1632
|
36
|
|
2063
|
37 8) Add startup (macOS)
|
|
1632
|
38 look at autostart.txt
|
|
|
39
|
|
2063
|
40 9) Configure ssh for working monitoring and backups (example for s1)
|
|
1632
|
41 create ssh key: ssh-keygen -t rsa -b 4096 -C "administrator@s1.luan.software" (for s1)
|
|
|
42 add ssh key at test.luan.software: edit file /Users/administrator/.ssh/authorized_keys
|
|
|
43
|
|
2063
|
44 10) Reboot the machine
|
|
1632
|
45 sudo reboot
|
|
|
46
|
|
2063
|
47 11) Fix PS1 (for s1 example)
|
|
1632
|
48 echo "PS1='lh-s1:\W\$ '" >> ~/.bash_profile
|
|
|
49
|