Normally, when setting up a Raspberry Pi (hereinafter referred to as RPi), after burning the image to the SD card, connect the HDMI display and USB keyboard directly to the RPi and make various settings. However, it is insanely troublesome to connect to the display or keyboard one by one, and I will write this article for my memorandum
・ Windows 10 ・ Raspberry pi 3 model B ・ Wired LAN
OS download ・ Https://www.raspberrypi.org/downloads/raspbian/
SD card format ・ Https://www.sdcard.org/downloads/formatter/eula_windows/index.html
Write OS image to SD card ・ Https://www.balena.io/etcher/
Create an empty folder named "ssh" at the top (Now you can start ssh automatically when you start RPi)
Connect RPi to a wired LAN and start it
Type the following from tera term to connect to ssh
Host name: raspberrypi.local Username: pi Password: raspberry
Type in the code below and follow the steps to enter your SSID and password
rasbian
$ sudo raspi-config
$ sudo nano /etc/dhcpcd.conf
Add the following code to the end
interface wlan0
static ip_address=192.168.1.221/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
After that, you can connect with ssh with ip address = 192.168.1.221 in tera term.
https://qiita.com/eup42/items/58bf6c336d325eba3ee2 https://qiita.com/mym/items/468d2cdb30d756b6df24 http://www.fml.org/home/fukachan/ja/linux.share.network.debian.html https://qiita.com/yuppejp/items/413b32d14d58c10e192c https://physical-computing-lab.net/raspberry-pi/raspberry-pi-3-%E3%81%AE%E7%84%A1%E7%B7%9Alan%E3%81%AB%E5%9B%BA%E5%AE%9Aip%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B.html
Recommended Posts