Bought a Raspberry Pi a few months ago, and threw it on one side without tinkering, and today buttoned up the laptop through the home WiFi login to the Raspberry Pi, listed below for the setup process.
Lab Environment:
Network: Only WiFi
Material: One Laptop (Win10), Raspberry Pi, edup USB wireless card, one cable
Goal:
- The Raspberry Pi is connected to the laptop via a network cable, the laptop can access the Raspberry Pi via ssh, and the Raspberry Pi can connect to the Internet.
- Configure the wireless network card, the Raspberry Pi boot automatically connects WiFi, the laptop accesses the Raspberry Pi via wifi.
Resources:
- No monitor no router no keyboard no mouse, only the network cable directly connected notebook with the simplest configuration to play the Raspberry Pi
- Raspberry Pi How to configure a wireless card and connect to WiFi
- 9 SSH Common Command options
Stage One: The notebook accesses the Raspberry Pi directly through the network cable
Detail Reference Web page "No monitor no router no keyboard no mouse, only the network cable directly connected notebook with the simplest configuration to play the Raspberry Pi"
1, the network cable connects the notebook and the Raspberry Pi, launches the Raspberry Pi.
2. Run the DOS window, enter Arp–a, and find the IP address of the Raspberry Pi
In the figure, 192.168.3.7 is the IP address of the laptop connected to WiFi
192.168.3.111 's Raspberry Pi connection WiFi address
192.168.137.232 is the address of the Raspberry Pi connected to the wired network
3. Open software git Bash (https://git-scm.com/download/), enter command ssh–l PI 192.168.137.232
The following information is displayed:
Enter Yes, then enter the password to enter the Raspberry Pi command line, the default registered User:pi, password is:Raspberry
Stage Two: Raspberry Pi boot auto Connect wifi
Refer to "How to configure a wireless network card and connect to WiFi" in Raspberry Pi
1. Plug in the USB wireless card
2, according to phase a method to access the Raspberry Pi, modify the network configuration file/etc/network/interfaces, input vi/etc/network.interfaces, content modified into the form.
After modifying, enter sudo reboot.
3, after the Raspberry Pi restarts, enter in Git bash
Ssh–l Pi 192.168.3.111
Then enter the password (the default is raspberry) to go to the Raspberry Pi.
Now, just start the Raspberry Pi and you can access the Raspberry Pi via IP address 192.168.3.111. Because the IP address is set to static, if the notebook and Raspberry Pi connection Other network may encounter problems, the network knows little, temporarily do not care about this problem.
Window 10 connects Raspberry Pi via network cable and WiFi