In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to initialize the Zero of raspberry pie, this article introduces the corresponding analysis and answer in detail, hoping to help more friends who want to solve this problem to find a more simple and easy way.
Overview
After I got the raspberry pie, I really couldn't put it down. It was as small as some low-end VPS, with IO port / wifi/ Bluetooth and optional camera. In fact, it is a necessary artifact at home.
But the size is so small that there are still some problems with it. For example, usb has too few mouths.
Therefore, the best way to use pi0 is to simulate the network card and connect the host through the usb interface of pi0. Then access it through ssh or vnc on the host.
In this way, you can access and control raspberry pie 0 with only one USB line.
The overall work to be done
Download and burn the image
Set the initialization action (open ssh, initial wifi)
Download and burn the image
Mirror to the official website to download. For something as small as pi0, it is recommended to use lite (no graphical interface).
Download and get a zip, which is a mirror image.
It is recommended to use Rufus to burn the image. This thing is very small and easy to use. I usually burn the Win10,Ubuntu installation disk to the flash drive, and I also use this.
After burning and recording. Will prompt what disk needs to be formatted. Never mind.
Initialization Settin
Pi0's system is very conscientious, as long as write a few files for the mirrored TF card. You can complete the basic settings.
However, there will be some trouble in writing documents. Because, as just said, the written image, windows can not be opened.
At this point, you need another tool, DiskGenius, which can be used to read various unknown partitions. It is more than enough to deal with this tf.
After opening the software, the tree list on the left will list the TF card, which will have two partitions, one is boot. This is the partition we are going to operate on. Click on the boot partition. You can see all the files on the right.
Open ssh
Create a new file with empty content, named ssh (note not ssh.txt), and put it in the boot partition.
Set up wifi
In the boot section of the TF card, create a wpa_supplicant.conf file and add the following:
Country=CNctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network= {ssid= "wifi name" psk= "password" key_mgmt=WPA-PSK priority=1} network= {ssid= "wifi" key_mgmt=NONE priority=2} set usb network card
Open the boot partition, add the following code at the last line of the config.txt, and turn on the usb Nic mode:
Dtoverlay=dwc2
Then find the rootwait field in the cmdline.txt file, add the following information in the space after it, and turn on the usb Nic mode when you open the system.
Modules-load=dwc2,g_ether
After the above settings, insert the TF card into the pi0 and you can turn it on.
Connect PI0
The computer has to make some settings before connecting the raspberry pie.
Install the network card driver:
It is impossible to regard usb devices as network cards without installing drivers. The name of the driver is RPI_Driver_OTG.zip, click here to download
Connect to pi0 through ssh
Connect the usb port of the pi0 (note: it is the usb port, not the charging port) to the computer, then the green light flashes and the pi will power on. Wait patiently for 2 minutes and give pi sufficient time to initialize the system (otherwise there will be strange phenomena such as rejecting ssh connection, it won't take so long to boot next time). You can see if there is an extra RNDIS Gadget in windows's network connection. If so, there is a good chance of success.
Then use the ssh tool to connect to pi
Ssh pi@raspberrypi.local
If the connection is successful, enter the password, which is
Raspberry
Then you can have a good time.
Other
If you need a graphical interface. Then first download the image with a graphical interface. Secondly, set up vncserver, you can check the relevant information.
This is the answer to the question about how to initialize the Zero of raspberry pie. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.