How to setup Raspberry Pi 3 Headless with Mac

anoop m
2 min readApr 17, 2018

--

I recently bought a Raspberry Pi 3 Model B and I dont want to have a separate Monitor, keyboard etc hence wanted to try a headless setup and use VNC. Here is what I did

1. In Mac
Download Raspbian OS Available at Download
I downloaded “Raspbian Stretch with desktop”, round 1.78GB

2. Use Etcherto write the OS into the SD card ( Installation Guide)

3. You then need to enable SSHin Pi. For that create a file named “ssh” (without any extension) and copy it to the root folder of the SD card. (SSH Headless)

4. Now take out the SD card and insert it into Raspberry Pi.

5. Connect ethernet cable to Pi and other end to the Mac

6. Connect the power source ( I used Xiomi Redmi charger), wait for 1 minute for Pi to boot up.

7. To SSH into Pi, we need to know the ip address
Open terminal in mac and hit
ping raspberrypi.local
It will give you the ip address of the pi

8. Now SSH into pi, In terminal

ssh pi@ip address
// By default credentials
user:Pi
pwd: raspberry

If successfully logged in, you will get the Pi shell prompt. (You may have to accept the SHA key).

9. Next step is to enable VNC Server (Remote Access)

In Pi shell, hit

sudo raspi-config

To enable VNC Server do the following:
• Go to the Interfacing Options.
• Scroll down and select VNC — > Yes.

Now VNC Server is enabled in Pi.

10. Down load VNC viewer in Mac (VNC Viewer)

11. Open up VNC viewer and provide the ip address and connect and thats it, you will get the Pi interface. Once you have the interface, you can go to WiFi settings and connect to the home or office WiFi and on next reboot you will get the new ip (use ping raspberrypi.local) and then connect again using VNC viewer. Enjoy

--

--

Responses (1)