view host/doc/install.txt @ 1632:0344a535b1db

add doc
author fffilimonov
date Tue, 14 Dec 2021 07:41:01 +0000
parents
children 8066b8882732
line wrap: on
line source

Install on local machine:

1) install mercurial
  brew install hg

2) install java
  brew tap caskroom/versions
  brew install caskroom/cask/java8

3) clone repo
  hg clone https://hg.luan.software/luan

4) Install nginx
  brew tap denji/nginx
  brew install nginx-full

5) Make sudo nginx without password
  add string to /etc/sudoers
  %admin ALL=(ALL) NOPASSWD: /usr/local/bin/nginx

6) compile
  ./update.sh

7) open in browser http://me.luan.software:8080

Install on production/test machine:
1 - 6 same

7) Add startup (macOS)
  look at autostart.txt

8) Configure ssh for working monitoring and backups (example for s1)
  create ssh key: ssh-keygen -t rsa -b 4096 -C "administrator@s1.luan.software" (for s1)
  add ssh key at test.luan.software: edit file /Users/administrator/.ssh/authorized_keys

9) Reboot the machine
  sudo reboot

10) Fix PS1 (for s1 example)
  echo "PS1='lh-s1:\W\$ '" >> ~/.bash_profile