How to Set Up a Headless Raspberry Pi 3, Without attaching a Monitor?

https://www.youtube.com/watch?v=wwM6OBzf9xc
  1. Grab the Etcher software from https://etcher.io/
  2. Install Etcher and use it to write the Raspbian image to your SD card. You don’t need to extract the image or format the card prior to writing. Just choose the Raspbian .zip, pick your SD card and write (if you have trouble, verify the SHA256 checksum of the download).
  3. Remove and reinsert the SD card so that your Windows or Mac PC can see the small FAT32 partition on the SD card.
  4. On that small partition, create a file with the name ssh (or ssh.txt).
  5. To connect to a wireless network, create another file on the boot partition called wpa_supplicant.conf which has the following inside:

    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=US

    network={
    ssid=”Your network SSID”
    psk=”Your WPA/WPA2 security key”
    key_mgmt=WPA-PSK
    }
  6. Safely eject the card from your PC and use it to boot the Pi.
  7. Find Pi IP address from the router.
  8. Grab the Putty software from https://www.putty.org/
  9. Connect putty using Pi’s IP address.
  10. Default Username is ‘pi’ and the default password is ‘raspberry’
  11. Open PI config using ‘sudo raspi-config
  12. Expand Filesystem (Recommended)
  13. sudo apt-get update‘ to update
  14. sudo apt-get upgrade‘ to upgrade
  15. Install remote desktop on Pi using ‘sudo apt-get install xrdp‘ .
  16. sudo reboot‘ to reboot.