Install latest image onto sd card with edger
in the boot mount add file ssh
and wpa_supplicant.conf
passwd
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install htop joe
sudo apt-get install mosquitto
sudo raspi-config
sudo apt-get install samba
sudo smbpasswd -a pi
# edit /etc/samba/smb.conf and set [homes] readonly to no
Taken from https://github.com/nodesource/distributions#debinstall
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs