Mac OSX How to configure Raspberry Pi 3 and Remote WiFi control Raspberry Pi

Source: Internet
Author: User

The initial start of the Raspberry Pi requires the following steps:

Install system image to SD card

Connection Configuration Raspberry Pi

Configure Remote Control Raspberry Pi

The materials to be prepared are as follows:

More than 16G high-speed storage SD card one. (Please note that the Raspberry Pi 3 uses micro card, the online purchase of the mobile phone memory card can be used directly)

Reader One
Mac One
One cable
Router One

1. Install the Raspberry Pi operating system to the SD card

1) go to the official Raspberry Pi website to download a system image, we recommend to download Raspbian.

After downloading, get the image as follows

2) After that, insert the SD card into the card reader, plug the reader into the computer, so we use df-h, to see if the SD card is plugged in.

, we can see that/dev/disk2s1 is our SD card.

3) We uninstall the SD card in the system so that the DD command installs the system boot image

Enter sudo to diskutil unmount /dev/disk2s1 unmount the partition

(Note: sudo is an abbreviation for Super user do, which means that you can enter your computer password by using root privileges.)

Then install the image using the DD command

sudo dd bs=1m if=2016-05-27-raspbian-jessie.img of=/dev/rdisk2

At this point the burn card is complete. Insert the card into the Raspberry Pi and plug it into the power supply to boot normally.

Read a lot of online tutorials, it seems that before the Raspberry Pi 3 version in the first boot will enter the Rasp-config, but I do not, may be the new version of the ROM omitted this part.

Resources:

1. Raspberry Pi first launch raiders for MAC http://blog.csdn.net/rk2900/article/details/8632713/

2. The first time you connect a Raspberry Pi without a monitor

A lot of tutorials on the web called you how to use USB to the serial port, the use of Raspberry Pi serial connection to the Raspberry Pi. Then in Raspberry Pi 3, this method has been partially invalidated. Say part of the need to configure a lot of things before you can reconnect.
The original post I can not find where, please go to the Raspberry Pi Forum on their own to turn over.

Then we can still use the network cable, as well as WiFi, connect the Raspberry Pi, the first connection please use a network cable.

1) Insert the network cable into the Raspberry Pi and the other end into the router. POWER-ON!!!!!

2) after power-on, the Raspberry Pi will automatically connect to the route. What you do is, go into your router and find the IP address of the Raspberry Pi.

3) use SSH to connect the Raspberry Pi (ssh [email protected])

SSH This Mac system comes with, so we need to enter the IP address of the SSH [email protected] Raspberry Pi. So I need to enter

SSH [email protected]

Enter the password after entering, the initial password of the Raspberry Pi is raspberry. You can enter SSH after entering the carriage.

4) (optional) Configure the Raspberry Pi parameters sudo rasp-config

Refer to Tutorial http://www.eeboard.com/bbs/thread-23560-1-1.html

3. Configure the Raspberry Pi WiFi,

We do not want to plug in the network cable every time, it is very painful, so we need to configure WiFi and password.

1) scan the surrounding network

In order to scan the WiFi network, you can use the sudo iwlist wlan0 Scan command. This command lists all available WiFi networks, as well as some useful information about the network. For example:

1, ESSID: "Testing": This is the name of the WiFi network.

2, Ie:ieee 802.11I/WPA2 Version1: This part represents the network authentication method, here is the WPA2, this is one to replace the WPA1 the update more secure wireless network standard. This guide should apply to WEP, WPA, or WPA2, but may not be available for Enterprise Edition WPA2.

You also need the password for your wifi network. Most home routers (default passwords) are labeled on the back of the router. In this example, the Essid (SSID) of the searched WiFi network is testing, and the password (PSK) is Testingpassword.

2) Add Network to Raspberry Pi

To open the Wpa-supplicant configuration file using the Nano Editor:

sudo nano/etc/wpa_supplicant/wpa_supplicant.conf

At the bottom of the file, add the following:

network={    ssid= "The_essid_from_earlier"    psk= "Your_wifi_password"}

In this example network, we should add the following:

network={    ssid= "testing"    psk= "Testingpassword"}

Now press the ctrl+x key and press the y key, and then press enter .

At this point,wpa-supplicant should notice in a few seconds that the settings have changed and will try to connect to the network. If not, then you need to use sudo ifdown wlan0

and sudo ifup wlan0 command to manually restart the interface, or use the sudo reboot command to restart the Raspberry Pi.


You can use the ifconfig wlan0 command to confirm that you have successfully connected to the network. If you already have an address in inet addr , the Raspberry Pi is successfully connected to the network. If not, please check that your password and Essid are correct.

Resources:

1. Use the command line to set up a Raspberry Pi WiFi network http://www.linuxidc.com/Linux/2014-10/107546.htm

4. Use WiFi to connect to the Raspberry Pi.

1) Install XRDP. Raspberry Pi Input: sudo apt-get install xrdp

XDRP is a computer daemon that can run in the background and supports the Microsoft Remote Desktop client on Mac and PC. When XRDP is installed in the Raspberry Pi, your Mac or PC can log in to the Raspberry Pi via the client.

2) Download the remote Desktop connection in your Mac to run and connect the Raspberry Pi

Enter your IP address when prompted above. Next, the xrdp window pops up, prompting you to enter your user name and password.

If it goes well, your Raspberry Pi desktop will appear in the window on your computer screen.

Resources:

1. Five recommendations for Raspberry Pi Advanced Learning Http://www.lupaworld.com/portal.php?mod=view&aid=238808&page=all

2. Raspberry Pi 3 Early experience Http://www.tuicool.com/articles/iEb6nyE

Mac OSX How to configure Raspberry Pi 3 and Remote WiFi control Raspberry Pi

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.