annotate host/doc/install.txt @ 1639:59731f7c24ce

host - remove unused file password.nginx
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 21 Dec 2021 16:27:44 -0700
parents 0344a535b1db
children 8066b8882732
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1632
0344a535b1db add doc
fffilimonov
parents:
diff changeset
1 Install on local machine:
0344a535b1db add doc
fffilimonov
parents:
diff changeset
2
0344a535b1db add doc
fffilimonov
parents:
diff changeset
3 1) install mercurial
0344a535b1db add doc
fffilimonov
parents:
diff changeset
4 brew install hg
0344a535b1db add doc
fffilimonov
parents:
diff changeset
5
0344a535b1db add doc
fffilimonov
parents:
diff changeset
6 2) install java
0344a535b1db add doc
fffilimonov
parents:
diff changeset
7 brew tap caskroom/versions
0344a535b1db add doc
fffilimonov
parents:
diff changeset
8 brew install caskroom/cask/java8
0344a535b1db add doc
fffilimonov
parents:
diff changeset
9
0344a535b1db add doc
fffilimonov
parents:
diff changeset
10 3) clone repo
0344a535b1db add doc
fffilimonov
parents:
diff changeset
11 hg clone https://hg.luan.software/luan
0344a535b1db add doc
fffilimonov
parents:
diff changeset
12
0344a535b1db add doc
fffilimonov
parents:
diff changeset
13 4) Install nginx
0344a535b1db add doc
fffilimonov
parents:
diff changeset
14 brew tap denji/nginx
0344a535b1db add doc
fffilimonov
parents:
diff changeset
15 brew install nginx-full
0344a535b1db add doc
fffilimonov
parents:
diff changeset
16
0344a535b1db add doc
fffilimonov
parents:
diff changeset
17 5) Make sudo nginx without password
0344a535b1db add doc
fffilimonov
parents:
diff changeset
18 add string to /etc/sudoers
0344a535b1db add doc
fffilimonov
parents:
diff changeset
19 %admin ALL=(ALL) NOPASSWD: /usr/local/bin/nginx
0344a535b1db add doc
fffilimonov
parents:
diff changeset
20
0344a535b1db add doc
fffilimonov
parents:
diff changeset
21 6) compile
0344a535b1db add doc
fffilimonov
parents:
diff changeset
22 ./update.sh
0344a535b1db add doc
fffilimonov
parents:
diff changeset
23
0344a535b1db add doc
fffilimonov
parents:
diff changeset
24 7) open in browser http://me.luan.software:8080
0344a535b1db add doc
fffilimonov
parents:
diff changeset
25
0344a535b1db add doc
fffilimonov
parents:
diff changeset
26 Install on production/test machine:
0344a535b1db add doc
fffilimonov
parents:
diff changeset
27 1 - 6 same
0344a535b1db add doc
fffilimonov
parents:
diff changeset
28
0344a535b1db add doc
fffilimonov
parents:
diff changeset
29 7) Add startup (macOS)
0344a535b1db add doc
fffilimonov
parents:
diff changeset
30 look at autostart.txt
0344a535b1db add doc
fffilimonov
parents:
diff changeset
31
0344a535b1db add doc
fffilimonov
parents:
diff changeset
32 8) Configure ssh for working monitoring and backups (example for s1)
0344a535b1db add doc
fffilimonov
parents:
diff changeset
33 create ssh key: ssh-keygen -t rsa -b 4096 -C "administrator@s1.luan.software" (for s1)
0344a535b1db add doc
fffilimonov
parents:
diff changeset
34 add ssh key at test.luan.software: edit file /Users/administrator/.ssh/authorized_keys
0344a535b1db add doc
fffilimonov
parents:
diff changeset
35
0344a535b1db add doc
fffilimonov
parents:
diff changeset
36 9) Reboot the machine
0344a535b1db add doc
fffilimonov
parents:
diff changeset
37 sudo reboot
0344a535b1db add doc
fffilimonov
parents:
diff changeset
38
0344a535b1db add doc
fffilimonov
parents:
diff changeset
39 10) Fix PS1 (for s1 example)
0344a535b1db add doc
fffilimonov
parents:
diff changeset
40 echo "PS1='lh-s1:\W\$ '" >> ~/.bash_profile
0344a535b1db add doc
fffilimonov
parents:
diff changeset
41