annotate host/doc/install.txt @ 2063:dc942f39310e

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