In the summer before junior school came into contact with raspberry pie this thing feels very geek, so the purchase Raspberry Pi 3 B + model, a 16G memory card, then bought himself a piece of acrylic plate with a small fan (good cooling effect).
We began to engage in pleasant machine.
Article Directory
Burning System
Go directly to the official website to download the most suitable system RASPBIAN raspberry pie, then win32DiskManager recording system, and then insert the card slot of the Raspberry Pi.
Turn on the power, power.
NOTE : The first package systems require the HDMI cable to the video screen, a keyboard also preferably has access.
Then follow the prompts to install the system, will soon be installed, is not installed fan start when CPU heat is too much, it must be the heat.
The default keyboard replacement
Into the terminal end.
Change keyboard settings.
sudo dpkg-reconfigure keyboard-configuration
或
sudo raspi-config
Proceed as follows:
- Layout: Choose 101-key PC
- Layout: Other
- Layout: English (US), we are using are basically American-style keyboard.
- OK Follow the prompts.
Replace the default source
To be honest, this is a pit where, basically replacing the first google
/etc/apt/sources.list , here replaced by a source Ali cloud, but later execution
sudo apt-get update
sudo apt-get upgrade -y
, I found a list of software source is still foreign sources, is still very slow, so many times to google.
There are two sources needs to be replaced.
/etc/apt/sources.list
备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
换源
sudo nano /etc/apt/sources.list
The first line is below the replacement address or other domestic source will do
http://mirrors.ustc.edu.cn/raspbian/raspbian/
http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/
Save and exit.
sudo nano /etc/apt/sources.list.d/raspi.list
The first line of the address to be replaced
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui
Save and exit. Then perform
sudo apt-get update ; sudo apt-get upgrade ; sudo apt-get dist-upgrade ; sudo rpi-update
Set to automatically find and WIFI connection
In the case where the outside when the need to send switching network raspberry but without the screen may be provided by the network for known raspberry send power connection and returns its IP address, and can be connected by SSH.
Network Configuration
Need to change ** / etc / network / interfaces ** files,
And modified to
iface wlan0 inet dhcp
wpa_conf /etc/wpa_supplicant/wpa_supplicant.conf
Here the setting is switched Looking WIFI signal by ** / etc / wpa_supplicant / wpa_supplicant.conf ** and arranged to find wifi connection.
Known setting WIFI
Need to change ** / etc / wpa_supplicant / wpa_supplicant.conf **, here are saved WIFI Raspberry Pi has been connected and can manually add the following form.
# 最常用的配置。WPA-PSK 加密方式。
network={
ssid="WiFi1"
psk="password1"
priority=5
}
network={
ssid="WiFi2"
psk="password2"
priority=4
}
It noted that the priority attribute that specifies the priority is the WIFI connection.
After setting the restart Raspberry Pi should have been set up successfully, and because the DHCP assigned IP devices generally unchanged fixed MAC address, IP and find SSH connection. Of course, you can also use the Raspberry Pi comes with VNC connection.
other
For convenience, you can open SSH connections.