Initialization Raspberry Pi wifi environment

In this system I put about

Link: https: //pan.baidu.com/s/192cL6qSsMd-wqxHeDWfIug
extraction code: 0lrq

1. Prepare a memory card, it is best 32G class10 16G, then good enough. Then format it with SDFormatter

2. Read with Win32DiskImager img package, and select the SD card needs to be written below and then click the Write, depending on size and memory card write speed img package, the waiting time is not the same

3. Open the memory card's root directory, create a file called ssh, and (no suffix). You should not see their own suffix open Folder Options - View display suffix. Then create a file called wpa_supplicant.conf, pay attention to is the suffix .conf, open it with a text editor, fill in the following:

country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={   
ssid="WiFi-SSID"     
psk="pwd"     
key_mgmt=WPA-PSK     
priority=1
}

Fill wifi ssid and psk own name and password, key_mgmt is encryption, completed in accordance with different encryption methods are generally WPA-PSK encryption, the other should not need to change.

4. Insert the memory card raspberry send, wait 1 to 2 minutes. The first connection wifi, IP address is to follow the current back row. But this address is dynamic, the latter is not convenient debugging, so it should be set to a static IP.

Open netscan (official website to install, comes with Chinese trial), find ip range in the current local area network, if you do not know to look at the range on their computers, according to a gateway selected from 0 to 192. According to the scan results:

I here have configured a static IP, the system also comes with a host name has been written, so the first time a connection is still very good looking. But we should set a static IP fixed IP address without some commonly used, for example, I commonly used is 192.168.0.0 ~ 192.168.0.100, I put 110 This unusual ip to Raspberry Pi, the general operation is like that.

5. After a good think to be assigned to IP raspberry pie, according to the scanned raspberry pie IP, SSH up, user name, enter a user name and password, the system password is pi yahboom

Then DHCP configuration file that comes with the nano editor:

sudo nano /etc/dhcpcd.conf

 

 Then add a piece of code to the end

interface wlan0 
 
static ip_address = static network address ip / 24 
static Routers = network gateway ip address
 static domain_name_servers = 114.114 . 114.114
Use CTRL + O to save the changes (the letter o), then press Enter, then CTRL + X to exit the editor 
to set a static IP is completed, restart the Raspberry Pi can be re just remember to replace the replacement of a static IP connection SSH

 

 

 

 

Guess you like

Origin www.cnblogs.com/yuan-zhou/p/11403505.html