Online - Internet connection necessary
Raspbian Lite (~ 300 MB): \\ https://www.raspberrypi.org/downloads/raspbian/
Mount SD card with an adapter to Macbook
https://www.raspberrypi.org/documentation/installation/installing-images/mac.md
diskutil list
diskutil unmountDisk force /dev/disk<disk# from diskutil>
sudo dd bs=1m if=<image.img> of=/dev/rdisk<disk# from diskutil>
Send a SIGINFO signal (press Ctrl+T) to view progress
Place SD card in the Pi and start the Pi (pi:raspberry
)
Expand file system to entire memory card
sudo raspi-config --expand-rootfs
sudo raspi-config
sudo nano /etc/dhcpcd.conf
interface eth0 static ip_address=10.21.30.50/24 static routers=10.21.30.10 static domain_name_servers=10.21.30.21
sudo nano /etc/hostname
rp3b-jh
sudo nano /etc/hosts
127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.1.1 rp3b-jh
sudo apt-get -q update sudo apt-get -qy upgrade sudo apt-get -q --purge autoremove sudo apt-get -q clean
pi
, create project-specific usersudo apt-get install samba samba-common smbclient
sudo service smbd status sudo service nmbd status
sudo apt-get install git
sudo apt-get install nginx
Set up NodeJS package repo
curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
Install Node.js
apt-get install -y nodejs
Further dependencies (modules) of node.js (node_modules
) see for example webic dependencies
npm install -g pm2