mirror of
/repos/node-red-pi2.git
synced 2025-12-30 07:31:34 +01:00
22 lines
481 B
Plaintext
Executable File
22 lines
481 B
Plaintext
Executable File
|
|
apt-get update
|
|
echo "Europe/Amsterdam" | tee /etc/timezone ; dpkg-reconfigure --frontend noninteractive tzdata
|
|
|
|
apt-get install -y build-essential sudo vim-tiny python python-dev python-setuptools libicu-dev libavahi-compat-libdnssd-dev curl
|
|
|
|
curl -O https://bootstrap.pypa.io/get-pip.py
|
|
python get-pip.py
|
|
|
|
pip install RPi.GPIO
|
|
|
|
useradd -m -d /data/red -s /bin/bash red
|
|
adduser red dialout
|
|
adduser red tty
|
|
|
|
cp sudoers /etc/sudoers
|
|
|
|
npm install -g pm2
|
|
|
|
cp package.json /data/red/
|
|
|