linx-simulator2/install.sh

22 lines
620 B
Bash

echo "Configure box for simulator"
apt-get update
apt-get -qq update
apt-get install -y build-essential
apt-get install -y curl
apt-get install -y python-minimal
# install node 8
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install v8.17.0
# add node 8 for all users
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm"
sudo apt install -y alsa-utils
sudo apt-get install -y libasound2-dev
sudo npm i -g node-gyp
# mkdir simulator
# scp -P 2222 ./ vagrant@127.0.0.1:.