Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stephonchen/7502fa4684acb8040f5bfba2338f2b2c to your computer and use it in GitHub Desktop.
Save stephonchen/7502fa4684acb8040f5bfba2338f2b2c to your computer and use it in GitHub Desktop.
Raspberry Pi 4 with Raspbian access without connection to micro-HDMI
  • Write Raspbian image to SD card
  • Enable SSH access by Putting 'ssh' to boot directory
touch /Volumes/boot/ssh
  • Configure network by using

    • Wire (with DHCP support)
    • WiFi (/Volumes/boot/wpa_supplicant.conf), and sample
    country=TW
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    
    network={
      ssid="NAME"
      scan_ssid=1
      psk="PASSWD"
      key_mgmt=WPA-PSK
    }
    
  • Boot up Pi, and find if Pi has obtained IP automatically

  • Connect through SSH

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