Connect to your Raspberry Pi from a Mac Using Ethernet



This is a step by step guide to connecting your Raspberry Pi with your Mac.

1.  First find your Network Preferences.

In the upper right hand corner of your screen, click on the wifi icon. Select Open Network Preferences

2. Setup your Ethernet Preferences

After clicking “Open Network Preferences”, select your Ethernet connection on the left hand side of the box.  Check that you have “Using DHCP” selected for “Configure IPv4” option.  And check that “Location” at the top of the dialog box has “Automatic” selected for your network configuration.

Connect to your Raspberry Pi from a Mac by setting up the network configuration

Check that you’ve selected “Using DHCP”

OLYMPUS DIGITAL CAMERA

3.  Setup the Hardware.

Plug one end of your ethernet cable into the ethernet port on the Raspberry Pi, and the other into your computer ethernet port.  On your MacBook Air you may need and ethernet cable adapter.

Next, power the BrickPi up. You should see the “PWR” LED solid, and the “ACT” LED on the Raspberry Pi begin to blink (not solid).  The lights on the ethernet port of the Raspberry Pi should turn on.

4.  Test for Connection

To test if your Pi is connected on the network open the Terminal program on your Mac and use the command line.  If you don’t know where the Terminal program is, use the finder and type “Terminal”.  The program is also located under Applications/Utilities in most Macs.  In the command line type:

ping dex.local

BrickPi ping dex.local

 

If there is a response from the BrickPi it means the Mac and the BrickPi are connected.  Stop this by pressing “ctrl-c”.

Your test is successful and you have connected the Mac and the BrickPi.  If you do not get a response, please visit our forums for help connecting your Mac and BrickPi.

5. Connect to your BrickPi Using The Browser

Open a web browser window.  Go to http://dex.local  (if you just type in dex.local, some browsers will search for dex.local.  Be sure to type in “http://dex.local”, and be sure to include the “http://”).

BrickPi-http_dex_dot_local

 

Dex_Local_Login

 

Choose “VNC” by clicking on the icon that says VNC.  You will be prompted for a password at the top of the screen.  The standard password is “robots1234”.  

BrickPi_VNC_Login

After logging in, you should see the Dexter Industries Desktop.

BrickPi_Dex_Desktop

 

 

After logging in, be sure to enable communications with the BrickPi.

You can see the short tutorial on how to do this here.

Now you’re ready to setup Wifi on your BrickPi!

 


Advanced Users

You can log into your Raspberry Pi using Bash on your Mac.  Again, we’ll open up a new terminal:  Press “Command Space”, which opens Spotlight.  Type “Terminal” and the terminal will come to the top.  Click on the terminal icon. In Bash, type

ssh pi@dex.local

You’ll be prompted to verify you’re trying to login to the Raspberry Pi.  Type “yes” an press return. Type the password. The default password for the BrickPi image is “robots1234”.  Type “robots1234” and press return. Boom!  You’re logged into your Raspberry Pi and ready to start programming a LEGO robot!

Mac SSH into a Raspberry Pi

 

Connect to your Raspberry Pi Using VNC

If you’re more comfortable working in the Raspberry Pi Desktop environment, you can use a program called VNC to login and run programs on the Raspberry Pi.

First, install VNC Viewer on your Mac. VNC Viewer is free.  You can download VNC Viewer here.

Download VNC for Mac

Click download on the “VNC Viewer for Mac OS X”.  You will be prompted for a name and e-mail address.

Agree to the terms and click “Download”.

Download the Latest of VNC Viewer

Install VNC Viewer by double clicking on the downloaded file.

When VNC View opens, type the following into the VNC Server box:

dex.local:1
Log in to your pi via vnc

Disregard the “raspberrypi.local” unless you’re using a very old version of Raspbian for Robots. You should type “dex.local:1” in the VNC Server Line.

The colon and number 1 afterwards are important, don’t leave them out!

Click “Connect”

Finally, continue through VNC’s warning message about the un-encrypted connection.

VNC View Connection with Raspberry Pi

 

When prompted for the password, the password is “robots1234” Congratulations!  You’re in!

 

After logging in, be sure to enable communications with the BrickPi.  You can see the short tutorial on how to do this here.