Need to connect raspberry to the network through the ethernet cable.
https://hackernoon.com/raspberry-pi-headless-install-462ccabd75d0
SSH is also not enabled by default. Need to put a file "ssh" into the boot partition of the SD card.
After reboot
Search subnet.
$ nmap -p 22 192.168.3.1/24
user: pi
pass: raspberry
Next is to enable wifi.
Something called rfkill is in the way.
u@raspberrypi:~ $ sudo rfkill list all
0: phy0: Wireless LAN
Soft blocked: yes
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
u@raspberrypi:~ $ sudo rfkill unblock wifi
u@raspberrypi:~ $ sudo rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
u@raspberrypi:~ $ sudo ifconfig wlan0 up
The rest is the same.
Remember to enable SSH, that ssh file only good for one time.
没有评论:
发表评论