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