dd bs=4M if=2018-04-18-raspbian-stretch.img of=/dev/sdX status=progress conv=fsync
Create the empty “ssh” file in the “boot” partition.
Resize the “rootfs” (ext4) partition by means of gparted.