วันเสาร์ที่ 18 พฤศจิกายน พ.ศ. 2560

How to connect Raspberry Pi to MAC with Ethernet to USB port

How to connect Raspberry Pi to MAC with Ethernet to USB port

Devices
- Raspberry Pi 2 B+
- Ethernet to USB port
- MacBook Pro Ratina Sierra OS

Actually, you can follow this link:

https://www.youtube.com/watch?v=UXhZMWgVtoA

I also leant from this link and need to share / note my self.


Preliminary 

To see your ethernet to USB port 
As following figure:


1. Go to "About This Mac" at Top-Left a Mac home display.

2. Go " System Report"




 3. You will see port USB connecting with your MAC as the figure below:







STEP 1:

Connect the devices together as the figure. Don't forget to turn on your raspberry Pi with any supply.



STEP 2:

Go to system Preferences
And do follow the step in figures:




















STEP 3:
Turn on Terminal on you mac.
And find IP address of PI, type this:

>>> ifconfig


Look at " bridge100....." at " 
You will see the IP is after "inet  <IP1>... " as:





So, you can get the IP.

STEP 4:
run as follow:

>>>nmap -n -sP <IP1>/24

It will run for finding any possible IP and also recovery all of them.
Then you will get the raspberry PI for access by SHH (Secure Shell).
First IP is you computer. The second is your raspberry pi's IP as figure:





Then you can SHH by using the rasppi-IP this to access you R PI as example:

>>ssh pi@< rasppi-IP>


 Default of Raspberry PI is
Username : pi
Password  : raspberry

Enjoy your PI :)


















ไม่มีความคิดเห็น:

แสดงความคิดเห็น