Unplug the SD card that holds the Raspberry Pi OS and plug it back in so that the drive boot shows up on your Desktop.
There are two files we need to add to the boot disk. Download both of the following onto Desktop
Drag both these files into boot
Eject boot and plug the SD card into the Pi
Plug in the Pi.
The wpa_supplicant.conf file has told to Pi to connect to the APC19PI network, and the ssh file has allowed the permissions on the Pi to allow external computers to connect to its Terminal. Now we just need to find what IP address the Pi has been assigned by the router. Open our own Terminal and let's find it.
Ensure that you are connected to the same network as the Pi.
Open Terminal
We will be using a application called NMAP to find the Pi on our network so download the NMAP
run the DMG file and move back to terminal.
type sudo nmap -sP 172.16.80.0/24
this is read the APC19PI network on the subnet 80. What we are looking for is
What we are looking for is a MAC Address that is attributed to (Raspberry Pi Foundation)
If it is not on the subnet 80, try these three subnets.
sudo nmap -sP 172.16.81.0/24
sudo nmap -sP 172.16.82.0/24
sudo nmap -sP 172.16.83.0/24
until you find something like this:
Once we know the IP address, we can control the Pi through our terminal.
In terminal enter
sudo ssh pi@172.16.83.6
If this is not the first time that you have done this, you may get an error at this point, Trouble Shoot That Error Here
Type yes to connect to the Pi
You will now be asked for the pi's password.
pi@172.16.83.6's password: raspberry
Because it is a terminal password, no characters will showup.
We will start the configuration by running
sudo raspi-config
Key down to
5 Interface Options
and key over to <Select>
Key down to
VNC
and <Select>
<Yes>
<Ok>
<Finish>
We are now going to edit a dhcpcd.conf file to fix the IP Address
This will open an editor called Nano and we need to find the interface section and add the following code.
interface wlan0
static ip_address=172.16.83.205
static routers=172.16.80.1
static domain_name_servers=8.8.8.8
The IP address that we are fixing is written on the bottom of the machine that you are using.
control+x to exit
y to save
return to close
In order to set the resolution to MacBook values we edit config.txt
sudo nano /boot/config.txt
Key down and uncomment
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=16
and add
hdmi_ignore_edid= 0xa5000080
control+x to exit
y to save
return to close
Reboot the Pi
Wait a while for the Pi to boot, then type
ping 172.16.83.205
to see that the IP Address is working.
control+c to kill that.
Open VNC Viewer
Create a new connection using command+n