Skip to content

Connecting to the Pi

Henry Odza edited this page Feb 10, 2024 · 2 revisions

Connecting to the Pi

Connecting over WiFi

Make sure that you are connected to the same network as the pi

In your terminal run the command ssh [email protected]

When prompted enter the password

To test your connection run ping google.com If everything works you should get something like

PING google.com (142.250.190.142) 56(84) bytes of data.
64 bytes from ord37s36-in-f14.1e100.net (142.250.190.142): icmp_seq=1 ttl=112 time=10.8 ms

If you don't get that then this page probably needs to be updated again

Mac tutorial

IMPORTANT: You should either be on the Mac OS or the Windows OS but NOT Linux for these steps.

Configuring Network Settings

Plug the Pi into your computer. Then, open the System Preferences by clicking the  in the top left corner and selecting "System Preferences".

In the System Preferences menu, select the "Network" icon (looks like a blue globe).

In the Network menu, select the port that has the pi connected. If you are using the club's USB to ethernet adapter, it should be "USB 10/100 LAN". Make sure that there is a green dot that says "Connected".

Set the "Configure IPv4" dropdown to "Manually". This will allow you to edit the IP Address and Subnet Mask fields.

Set the IP Address to 192.168.2.1

Set the Subnet Mask to 255.255.255.0

Sharing Internet Connection

Now we will make sure the pi has an internet connection. Return to the System Preferences menu and select the "Sharing" icon (looks like a blue folder).

Select "Internet Sharing" from the list on the left. You should now see a list of ports on the right. Select the relevant ports. If you are using the club's USB to ethernet adapter, select "USB 10/100 LAN". If you are using an additional adapter since MacBook's have no ports, select any other adapters (probably "USB ... LAN").

Once you have selected the ports, click the checkbox next to "Internet Sharing" to turn on Internet Sharing.

If you get a message that says "Your Internet connection cannot be shared because it is protected by 802.1X. Choose a different network to share or disable Internet Sharing.", turn off Internet Sharing, select a different WiFi network (CaseGuest seems to work, CaseWireless does not work), and then turn it on again. Repeat this step until you don't get an error.

SSHing into the Pi

Run the following command in your terminal (you should be on Mac OS and NOT a virtual machine):

ssh [email protected]

When it prompts you for a password, the password is rov12345.

If this is successful, you should see rov@12345 ~ % in your terminal.

To check for an internet connection, run the following command (it should run instantly if things are working):

ping google.com

If it working, you should see the following output:

PING google.com (172.217.0.174): 56 data bytes
64 bytes from 172.217.0.174: icmp_seq=0 ttl=112 time=17.903 ms
64 bytes from 172.217.0.174: icmp_seq=1 ttl=112 time=47.239 ms
...

If this isn't working, tough luck broski.

Windows tutorial

Todo