sunnuntai 8. tammikuuta 2017

Raspberry Pi 3 no monitor & no keyboard: setup with Windows – Tutorial

Raspberry Pi 3 Model B
In this post I'm succinctly going to explain how to setup a Raspberry Pi computer that does not have a monitor or a keyboard (a "headless" setup), using a Windows PC. I'm using a Raspberry Pi 3 Model B. The microSD slot is under the circuit board, at the other end where the USB and Ethernet connectors aren't. At the time of writing this post the latest version of the Raspbian Jessie Lite operating system is the version that was released on 2016-11-25.
  1. Download Raspbian Jessie Lite (pro tip: the Torrent file loads faster)
  2. Download Etcher
  3. Run Etcher to install the Raspbian Jessie Lite on your microSD card 
  4. Contents of the microSD card
    Etcher may unmount the card after it's done: remount it, then add a new file into it, called "ssh". No extension, no contents in the file. This enables the SSH daemon on the Raspbian. 
  5. Optional: If you want to use your Raspberry with a WIFI connection instead of an Ethernet cable, add another new file called "wpa_supplicant.conf". In this file add the following:

      ssid="NAME OF YOUR WIFI"
  6. Insert the microSD card into your Raspberry Pi, then start it by connecting the power cord. Make sure the Ethernet cable is connected too – or that you completed the optional step 5 above. The system will be ready in about 15 seconds. 
  7. Advanced IP Scanner
    Using either your router's admin view or the Advanced IP Scanner program find the IP address of your Raspberry.
  8. Use Putty to connect to your Raspberry 
  9. Username "pi", password "raspberry". 
  10. You are now logged in. Now update your system: first do "sudo apt-get update" and then "sudo apt-get dist-upgrade". 

Logged in
Congratulations, your Raspberry Pi is now ready for use!

PS. If you don't have a case for your Raspberry, why not find a 3D printer and print one? Thingiverse has for example this one that also fits perfectly for a Raspberry Pi 3 model B.

1 kommentti:

  1. Finally, if you have an external Apple Time Capsule hard drive and you want to connect to it automatically from the Raspberry Pi, add this line to your /etc/fstab file (do "sudo nano /etc/fstab"):

    //TIME_CAPSULE_IP_ADDRESS/Data /mnt/SOME_NAME_FOR_YOUR_MOUNT_DIRECTORY cifs user=TIME_CAPSULE_USER,pass=TIME_CAPSULE_PASSWORD,rw,uid=1000,iocharset=utf8,sec=ntlm 0 0