Raspberry Pi Zero W - Headless Setup (Mac)

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024
  • This setup also works on the Pi 3 with wireless.
    GitHub Gist on setting up the Pi: gist.github.co...
    Raspbian download: www.raspberryp...

Комментарии • 47

  • @mohsenmadi3590
    @mohsenmadi3590 5 лет назад +10

    Thanks Caleb! I connected my RPi 3 B+ nicely with your video after a whole day of suffering. the wpa_supplicant file should look like this:
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=CA // you gotta have the country now, find out your two-letter code
    network={
    ssid="yourssid"
    psk="yourpw"
    key_mgmt=WPA-PSK
    }

    • @Michael-yv8tf
      @Michael-yv8tf 5 лет назад

      useful comment for me, thx a lot

    • @JonoKnewt
      @JonoKnewt 5 лет назад

      This is necessary. Thanks for the footnote.

    • @citoxe1
      @citoxe1 4 года назад

      Saved me. Thanks!

  • @tejpunjraju9718
    @tejpunjraju9718 3 года назад

    The only Raspberry Pi SSH tutorial that works without any issues!
    *Note: For the newer versions of Raspberry Pi OS make the wpa_supplicant.conf as follows:*
    country=IN
    update_config=1
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    network={
    ssid="XXXXXXXX"
    psk="XXXXXXXX"
    }

  • @CrazyStalkerPerson
    @CrazyStalkerPerson 5 лет назад +2

    I also had trouble on the wifi setup step. Ended up going into the SD card manually in Finder and creating txt files then changing extension for both ssh and wpa_supplicant.conf but after that it all connected and now works perfectly! Thanks for the vid!

  • @jacocoetzee762
    @jacocoetzee762 3 года назад

    Thank you Caleb! A voice of sanity on the webs. Much appreciated!

  • @TheAbstractGamerOfficial
    @TheAbstractGamerOfficial 7 лет назад +2

    OMG this was the first video that I actually found useful. Thank you so much, after days of looking for an answer, you were the first to solve my problem! Thank you, for that - I subscribed. Thank you so much man!

    • @CalebBrewer
      @CalebBrewer  7 лет назад +2

      Thanks! I'm so glad it was helpful to you. This makes me want to create more videos!

    • @TheAbstractGamerOfficial
      @TheAbstractGamerOfficial 7 лет назад +1

      Caleb Brewer please do more of these videos!!! This is one of the most helpful videos on RUclips. I was making a bitcoin miner and this helped me ssh into the pi

  • @chipymunk1
    @chipymunk1 4 года назад

    Thank you so much!!! Most straight forward video I've found to access my Pi..

  • @jarrod-smith
    @jarrod-smith 7 лет назад +1

    Great tutorial, Caleb. Thank you.

  • @Shakerthebasser
    @Shakerthebasser 3 года назад +2

    network is unreachable when I try to ssh into the raspberry... help

    • @jooooo9572
      @jooooo9572 3 года назад +1

      Me too. I don't see my Zero W in LanScan.

  • @DrMaillard
    @DrMaillard 6 лет назад +1

    Thank you for the great instructions. I found that on Raspbian Stretch you need to add the following to the wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

    • @ThomasVanAlsenoy
      @ThomasVanAlsenoy 6 лет назад

      that was the trick for me as well, thanks!

    • @leathstitch
      @leathstitch 6 лет назад

      ok. i'm on the wpa_supplicant.conf page. Where do I add the above?

  • @karloshagen4037
    @karloshagen4037 6 лет назад +1

    hi mate, i have followed your tutorial to the letter but no luck. All good with terminal and setting up the boot drive but when i unplug the sd card and power up the pi i cant find it on lan scan? any ideas? (edit. i checked out your github page and i had to enter all the details for network access
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    country=US
    network={
    ssid="your-network-service-set-identifier"
    psk="your-network-WPA/WPA2-security-passphrase"
    key_mgmt=WPA-PSK
    }

  • @wishakhn1896
    @wishakhn1896 6 лет назад +1

    Thank you sir this was a big help

    • @CalebBrewer
      @CalebBrewer  6 лет назад

      I'm really glad it helped you!

  • @nolansingroy3252
    @nolansingroy3252 5 лет назад +1

    Hi,
    Having trouble finding the boot folder after the dd command has pushed the raspberry.zip file to the sd card?
    MacOS Mojave 10.14.2 on Macbook air 2017

    • @nolansingroy3252
      @nolansingroy3252 5 лет назад +1

      nvm solved it forgot to unzip the file and use the .img file! But in the end, I simply used www.balena.io/etcher/ which is recommend by raspberrypi.org to complete the image installation step!

  • @DiyintheGhetto
    @DiyintheGhetto 6 лет назад +1

    Hello i have done this in windows but not able to get wireless working and can not get ssh working. Not sure what to do next.

  • @andrestorres9188
    @andrestorres9188 7 лет назад

    Hi Caleb, I followed your steps but I'm still having an issue getting my RPi Z W to connect to my network. I even when to the link you provided James and modified the nano wpa_supplicant.conf with no progress. I also noticed that each time I'm in the boot directory I have to enter the command touch ssh, to have that the text appear in the list view. Any thoughts on what I might of done wrong? I'm also using Raspbian Stretch lite

    • @CalebBrewer
      @CalebBrewer  7 лет назад

      +Andres Torres
      sorry you're having issues. "touch ssh" only needs to be done once. It gets removed when you boot the Pi the first time. That command crests a blank file called "ssh". If the pi see that file when it boot it will enable ssh and leave it on.
      What type of wifi setup do you have and what settings are you using?

  • @andrestorres9188
    @andrestorres9188 7 лет назад

    great video! what screws did you use for your raspberry zero ? :)

    • @CalebBrewer
      @CalebBrewer  7 лет назад

      Thanks! They are just screws from inside a computer case.

  • @chiliz1170
    @chiliz1170 6 лет назад +1

    Thank you for the detailed tutorial! I have a problem with the WiFi configuration stage. What if I'm using a kind of public wifi, like eduroam, or studentCom? How do I modify the wpa_supplicant.conf file?

    • @CalebBrewer
      @CalebBrewer  6 лет назад

      Here is some info on wpa_supplicant.conf www.systutorials.com/docs/linux/man/5-wpa_supplicant.conf/
      The file is located at /etc/wpa_supplicant/wpa_supplicant.conf but you can just put the SD card back in your computer and create a wpa_supplicant.conf file with the new info in the boot partition.

  • @lipinski
    @lipinski 7 лет назад +3

    Have you tried these steps with Raspbian stretch? I am not able to get a connection to my 2.4Ghz 802.11n network with these steps.

    • @CalebBrewer
      @CalebBrewer  7 лет назад +2

      I have not, but you may want to try some different wpa_supplicant setting depending on your wifi setup. www.systutorials.com/docs/linux/man/5-wpa_supplicant.conf/

    • @dhanababu4361
      @dhanababu4361 5 лет назад

      Go with this www.raspberrypi.org/forums/viewtopic.php?t=196809

  • @enneam7682
    @enneam7682 5 лет назад

    Hey caleb, once I set up the PI with WIFI correctly how can i assigned an IP static address to this one? thanks for the video!

  • @italinhorn4455
    @italinhorn4455 5 лет назад

    when i entered in the touch ssh command nothing happened, what should i do?

  • @tahakadado4260
    @tahakadado4260 5 лет назад

    if you have issues connectiong to WIFI, add the following to the top of the wpa_supplicant.conf:
    country=US
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1

  • @Chitzui
    @Chitzui 6 лет назад

    hmm it somehow does not connect to the wifi? How can I inspect it. Or how could I reset and retry everything? Thank you!

    • @CalebBrewer
      @CalebBrewer  6 лет назад

      You may want to try some different wpa_supplicant setting depending on your wifi setup. www.systutorials.com/docs/linux/man/5-wpa_supplicant.conf/

  • @ashesh0326
    @ashesh0326 7 лет назад

    Allright, this doesn't really work for me - and it looks like the permissions set in the ~/.ssh directory of the Pi aren't correct. I keep getting a Permission denied, please try again when I try to ssh into the Pi with the default user/pass. I'll post my findings here.

    • @CalebBrewer
      @CalebBrewer  7 лет назад

      Did you run install -d -m 700 ~/.ssh on the Pi?

  • @rahulbanjee
    @rahulbanjee 5 лет назад

    Whenever I try and use the sudo dd command and type in the password, it always says permission denied. I don't know what to do

    • @Havanacuba1985
      @Havanacuba1985 4 года назад

      I think then it might be a permission problem maybe, not sure. Probably for some reason you do not have permission to write to the disk or you are not in the sudo group. Could you try using root to do it ? Probably the answer lies in Chmod

  • @samjang7417
    @samjang7417 5 лет назад

    what is a sudo password?

  • @octocat7949
    @octocat7949 6 лет назад +1

    Cat videos =) haha Try ApplePi-Backer what does exactly the same, just automated.

  • @technomad9071
    @technomad9071 3 года назад

    next time please link us some cat vids :)

  • @riseoftech4k332
    @riseoftech4k332 7 лет назад

    I love your video man!!! GREAT JOB... I started to make some arduino videos, could you come check it out and tell me what you think... thanks

  • @navyholesnipe9469
    @navyholesnipe9469 5 лет назад

    Have you tried this method with other downloads? Any success?