Raspberry Pi from burning system to ssh remote access

Raspberry Pi (English: Raspberry Pi ) is based on Linux 's single-chip computer (though it is small, but perfectly formed), the British developed Raspberry Pi Foundation, the purpose is to low-cost hardware and free software to promote the school's basic computer science education .

If you want to fiddle with it, you have to infuse it with soul (ง •_•)ง

Ready to work

hardware:

  • Raspberry Pi motherboard (physical): Models are A/A+/B/B+/2-generation B-type/3-generation B-type/3-generation B+-type/Compute Module/4-generation B-type, and after the second generation, the motherboard comes with WiFi And Bluetooth module (if you want to use WiFi before the 2nd generation, you need to buy a wireless network card)

  • Some accessories (skeleton): mouse, keyboard (the fish monster thinks that it is not necessary to buy a special Raspberry Pi, just use the one to play the game by yourself, the main reason is "poor"), screen (can be replaced by a TV ($ _ $) ), power supply (the 5v charger of the general mobile phone can be driven), SD card (equivalent to the storage device of Raspberry Pi, 16G is sufficient), card reader (for burning system), other accessories, etc.···· ··

    Mouse, keyboard, and screen are optional.

software:

  • System (soul)

Raspbian: special version for Raspberry Pi (need to burn)

NOOBS: The full name is New Out Of Box System (new out of box system) without burning CV directly to SD card

  • SD card formatting tool SDFormatter:

    The new SD card does not need to be formatted, mainly the old SD card

    Select the disk that needs to be formatted (note that you must select the right one), and the option configuration defaults. Maybe the first formatting will fail, just format it once.

  • Image burning tool Win32DiskImager:

    After selecting the system image location and drive letter (usually it will be automatically recognized), click Write, and the pop-up warning selects Yes, and then you are waiting for burning.······

After burning successfully

  • Create a new ssh file under the boot disk of the SD card (note that there is no suffix, nor a folder). Just leave it empty. Function: Allow SSH protocol remote communication when the Raspberry Pi is powered on

  • Also create a WiFi configuration file wpa_supplicant.conf in this directory and copy the content:

    country=GB
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    network={
    	ssid="你的WiFi名"
    	psk="你的WiFi密码"
    	priority=5 # 优先级设置
    }
    

    Pay attention to the parts that need to be modified! ! ! When you need to set up multiple WiFi, just copy the content in the network and modify it

  • After the above is completed, insert the SD card into the Raspberry Pi motherboard, connect some accessories, and then power on (feeding) to start it.

    If the screen is connected, it will show that the ssh protocol is insecure (you don't need to worry about it), and then it is welcome or something, personal suggestion (when you are asked to update, just ignore it, otherwise you will wait for the flowers to thank ( ̄'i  ̄;))

SSH remote access to Raspberry Pi

First, get the IP address of your Raspberry Pi:

  • If the screen is connected, this is easy, just click the logo of the Raspberry Pi WiFi, you can view the IP address of the current Raspberry Pi
  • If there is no screen, you can download the "LAN IP Scanner" software to scan the IP addresses of all devices under the current network segment
  • Or log in to the background of the WiFi router to view the IP address assigned to the Raspberry Pi

Download putty tool (for ssh remote connection)

Then click Open, a warning window pops up, select Yes

login as: enter pi

password: Enter the default password raspberry for the Raspberry Pi (if the password is modified, enter the modified password)

OK, ssh remote access to Raspberry Pi is done ( ̄︶ ̄)↗

Guess you like

Origin blog.csdn.net/xwmrqqq/article/details/105752653