annotate host/doc/install.txt @ 2064:5fb3a2e6e533 default tip

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