Skip to content

Instantly share code, notes, and snippets.

@RaghulXander
Last active June 19, 2020 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RaghulXander/89d627c2067582b737e09e01e7e6221b to your computer and use it in GitHub Desktop.
Save RaghulXander/89d627c2067582b737e09e01e7e6221b to your computer and use it in GitHub Desktop.
Fresh Setup Raspberry

Raspberry Setup

NOTE: Minimum 16GB will be required for better performance

  1. Download Raspberry Image from raspberrypi.org (Its around 1.5 to 2.5GB) and unzip it (Now it will be ~7.5GB)

  2. Use Etcher or terminal to flash SD card.

  3. For headless connection we might need to add plain empty SSH file and wpa_supplicant.conf

  4. wpa_supplicant.conf should have following contents

      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
      update_config=1
      country=IN
    
      network={
        ssid="<Network NAME>"
        key_mgmt=<WPS-PSK, NONE
        password=<"your network password">>
      }
    
  5. Now SD card is ready to mounted in Raspberry Pi 🎉

  6. Once Raspberry Pi is powered it should be connected the network provided in wpa_supplicant.conf

  7. By Default VNC won't be enabled so, for headless connection we need to try with SSH

  8. Default user will be pi and passowrd raspberry and connect using sudo ssh pi@your-ip and you can find the ip of your pi using sudo nmap -sN [ip-of-system]/24

  9. This should ask for authencity like below

        ECDSA key fingerprint is SHA256:FingerPrint.
        Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
        Warning: Permanently added 'xxx' (ECDSA) to the list of known hosts.```
    
  10. Proceeding with Yes should prompt you with the password once the password is given you will be given access.

  11. Now you are logged with user pi.

  12. We need to enable VNC for better GUI experience to do that run sudo raspi-config with user as pi

  13. Now you should see GUI in terminal with settings below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment