Instructions for getting the Mac Mini provisioned for running event applications.
The username should be set to finervision
. The password will be a generic password, and will need to be added to the company's 1Password vault.
IMPORTANT
Do not connect the machine to an Apple ID
General
Security & Privacy
Mouse
Keyboard
Dock & Menu
Generate keypair and copy it to the clipboard:
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y >/dev/null 2>&1
cat ~/.ssh/id_rsa.pub | pbcopy
Add id_rsa.pub
to BitBucket settings, giving it a label with the following format Mac Mini :id (Event Machine)
(replace :id with the next number, e.g. 3).
Set the default terminal to bash
:
chsh -s /bin/bash
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install required packages:
brew install node
sudo softwareupdate --install-rosetta
brew install touch-portal
brew install git-lfs
git lfs install --system
Create an apps
directory; this is where all apps will be installed and executed from:
mkdir ~/apps
Now cd
into ~/apps
and git clone
the app into it's own directory, e.g.:
git clone [email protected]:FinerVision/facebook-area-404.git facebook-area-404
Create the touchscreen directory:
mkdir ~/touchscreen
Copy package.json
, config.json
, and run.js
into the ~/touchscreen
directory. Then install packages:
npm --prefix ~/touchscreen install
Setup startup
pm2 startup
Then run the outputted script, generated from pm2.
Start the pm2 process:
pm2 start ~/touchscreen/run.js
Save the pm2 process to run on startup:
pm2 save