Raspberry Pi's official website to download the image to select ubuntu server
step 1:
Use SDFormatter format the SD card;
step2:
Use win32diskimager tool to write the image to the prepared SD card;
step3:
Insert the keyboard and the HDMI cable linking the TV power, power-on, the login screen appears enter a username and password ubuntu, reset the password.
step4:
Because ubuntu server iwconfig tool is not installed, you need to find a network cable network link, install wireless-tools:
sudo apt install wireless-tools
After installation wireless-tools, can be used in the following step iwconfig wireless network set up:
1, first set open wireless network card and set the SSID
1 sudo iwconfig wlan0 power on 2 sudo ifconfig wlan0 up 3 sudo iwconfig wlan0 essid "无线名称"
2, and then use the key to generate a radio wpa_passphrase
. 1 the sudo - I 2 wpa_passphrase wireless Password> /etc/wpa_supplicant.conf
3, then edit /etc/wpa_supplicant.conf
1 sudo vi the /etc/wpa_supplicant.conf
ensure the document reads as follows:
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 ap_scan=1 network={ ssid="OpenWrt_2.4G_4680A1" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk=0192c3b3469fcf872387c0e069fee5731ce7f8782654e1a5caa0c165700e76c8 }
! ! ! Note that the configuration key points as follows:
= Network { ssid = " my_network " # ssid note names are case sensitive. proto = RSN #Robust Security Network: robust security network, indicates that the network configuration to be more secure than WEP mode. key_mgmt = WPA-PSK # Please Whether you use WPA-PSK, WPA2-PSK, will enter it here WPA-PSK. This appears to WPA-PSK, WPA2-PSK WPA- are in wpa_supplicant PSK pairwise = CCMP TKIP # key point, wpa_supplicant is not yet recognized encryption standard AES of Group = CCMP TKIP # ditto PSK = 7b271c9a7c8a6ac07d12403a1f0792d7d92b5957ff8dfd56481ced43ec6a6515 #wpa_supplicant calculated encrypted password .
4, after the above setting is completed profile, then applied manually configure
1 sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf 2 sudo dhclient wlan0
5, in order to boot automatically open wifi, need to be added to the startup script to automatically perform the service, first add the following script in /etc/rc.local:
ip link set wlan0 up && wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf && dhclient wlan0
Edit /lib/systemd/system/rc-local.service then added as follows:
[Install] WantedBy=multi-user.target Alias=rc-local.service
This can be achieved automatically boot the wifi connection.