view host/doc/install.txt @ 1790:a8c685a894b4

start xml work
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 25 Dec 2023 23:07:59 -0700
parents 8066b8882732
children
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.reactionary.software/repo/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