Foreword
Cable also convenient to spend money, there are built-in WiFi wireless module Why not, the future belongs to 5G.
Network mode
Here we introduce two types of network modes, WPA-Personal and WPA-Enterprise.
WPA-Personal
Most home networks belonging to this mode, when the password is set on a wireless router or access point (the AP), the user must enter a password to connect to the network Wi-Fi.
In PSK mode, it can not individually or collectively manage wireless access. A password for all users, manually modify once on the original wireless router or AP, it will end on manually change all wireless clients.
In the wireless client password is stored. So, anyone on your computer can be connected to a network, you can also see the password.
WPA-Enterprise
This mode provides security business environment required for your wireless network. Set up more complicated, it can be personalized and centralized control access to Wi-Fi networks. When a user tries to connect to the network, they need to show their login credentials.
This mode supports 802.1x RADIUS authentication for the deployment of RADIUS server. Only connect RADIUS server for client authentication should use WPA-Enterprise.
Users never deal with the actual encryption key. After presenting their user login credentials, they are safely created and assigned to each user session in the background. This prevents people obtain the network key from your computer.
Configuration
Home Network Configuration
Use the command: sudo raspi-config carried Raspberry Pi configuration, enter the following interface, select 2. Network Options.
Select N2 wi-fi.
Enter the SSID and password, SSID is the name of Wifi.
Of course you can also be connected by way of WiFi, the following command can be used to scan for wireless networks close to:
sudo iwlist wlan0 scan
Add password WIFI network, a wireless network can be provided to be connected by configuring wpa_supplicant.conf.
sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
In the end of the file add the code, and replace ssid_name and password can be.
network={
ssid="ssid_name"
key_mgmt=WPA-PSK
psk="password"
}
by
ifconfig wlan0
You can view the IP address is assigned successfully
Enterprise Certified Network Configuration
Enterprise network needs account password.
Wireless configuration editor:
sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
for reference only:
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="eduroam"
key_mgmt=WPA-EAP
pairwise=CCMP TKIP
group=CCMP TKIP
eap=PEAP TTLS
# 账号
identity="user_sample"
# 密码
password="password_sample"
#认证证书,如果没有注释掉即可
ca_cert="/etc/certs/cacert.pem"
phase1="peapver=0"
phase2="MSCHAPV2"
scan_ssid=1
mode=0
auth_alg=OPEN
proto=WPA RSN
proactive_key_caching=1
}
After the configuration execute the command:
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
# 出现以下提示说明配置成功
Successfully initialized wpa_supplicant
kill off wpa_supplicant program being executed
sudo killall -q wpa_supplicant
summary
由于安装的 Linux 系统没有图形界面,可能会比有图形的稍微麻烦一下下。