|
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 /
|
|
|
13
|
|
|
14 4) clone repo
|
|
1671
|
15 hg clone https://hg.reactionary.software/repo/luan
|
|
1632
|
16
|
|
2063
|
17 5) Install nginx
|
|
1632
|
18 brew tap denji/nginx
|
|
|
19 brew install nginx-full
|
|
|
20
|
|
2063
|
21 6) Make sudo nginx without password
|
|
1632
|
22 add string to /etc/sudoers
|
|
|
23 %admin ALL=(ALL) NOPASSWD: /usr/local/bin/nginx
|
|
|
24
|
|
2063
|
25 7) compile
|
|
1632
|
26 ./update.sh
|
|
|
27
|
|
2063
|
28 8) open in browser http://me.luan.software:8080
|
|
1632
|
29
|
|
|
30 Install on production/test machine:
|
|
2063
|
31 1 - 7 same
|
|
1632
|
32
|
|
2063
|
33 8) Add startup (macOS)
|
|
1632
|
34 look at autostart.txt
|
|
|
35
|
|
2063
|
36 9) Configure ssh for working monitoring and backups (example for s1)
|
|
1632
|
37 create ssh key: ssh-keygen -t rsa -b 4096 -C "administrator@s1.luan.software" (for s1)
|
|
|
38 add ssh key at test.luan.software: edit file /Users/administrator/.ssh/authorized_keys
|
|
|
39
|
|
2063
|
40 10) Reboot the machine
|
|
1632
|
41 sudo reboot
|
|
|
42
|
|
2063
|
43 11) Fix PS1 (for s1 example)
|
|
1632
|
44 echo "PS1='lh-s1:\W\$ '" >> ~/.bash_profile
|
|
|
45
|