Raspberry pi initial setting (for myself)

Background and overview

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

environment

・ Windows 10 ・ Raspberry pi 3 model B ・ Wired LAN

1. 1. OS image creation

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/

2. Setting

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

3. 3. Wi-fi settings

Type in the code below and follow the steps to enter your SSID and password

rasbian


$ sudo raspi-config

4. Fixed IP address setting

$ 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.

References

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

Raspberry pi initial setting (for myself)
Raspberry Pi 4B initial setting
Raspbian initial settings (Raspberry Pi 4)
Access google spreadsheet using python on raspberry pi (for myself)
Try fishing for smelt with Raspberry Pi
python [for myself]
Raspberry Pi backup
Portable SSD expansion swap setting for Raspberry Pi OS 64bit β version
Initial settings for using GrovePi + starter kit and camera on Raspberry Pi
Media programming with Raspberry Pi (preparation for audio)
Beginning cross-compilation for Raspberry Pi Zero on Ubuntu
From setting up Raspberry Pi to installing Python environment
GPGPU with Raspberry Pi
Hardware for web programmers mille-feuille Support tool for Raspberry Pi
pigpio on Raspberry pi
Raspberry Pi video camera
Raspberry Pi Bad Knowledge
Let's do Raspberry Pi?
heroku memo (for myself)
DigitalSignage with Raspberry Pi
Raspberry Pi 4 setup memo
Cython on Raspberry Pi
Raspberry Pi system monitoring
Freecad memorandum (for myself)
Distributed environment construction with Raspberry PI series (7: tftp route setting and startup test for each Raspberry Pi)
Update Python for Raspberry Pi to 3.7 or later with pyenv
Run AWS IoT Device SDK for Python on Raspberry Pi
Cross-compiling for Raspberry Pi Zero on Debian-Try using shared libraries
I made a resource monitor for Raspberry Pi with a spreadsheet
Construction of Cortex-M development environment for TOPPERS using Raspberry Pi
Translate I2C device driver for Arduino to Python for Raspberry pi
Indoor monitoring using Raspberry Pi
Mutter plants with Raspberry Pi
Python memo (for myself): Array
Install Raspberry Pi OS (Raspbian)
Anaconda 4.4.0 Initial Settings for Windows
Python Tkinter notes (for myself)
I talked to Raspberry Pi
Introducing PyMySQL to raspberry pi3
Raspberry Pi + Python + OpenGL memo
[Python] numpy.empty initial value setting
Pipenv usage summary (for myself)
raspberry pi 1 model b, python
Linux Command Dictionary (for myself)
Introduced pyenv on Raspberry Pi
Use NeoPixel on Raspberry Pi
Install OpenCV4 on Raspberry Pi 3
Install TensorFlow 1.15.0 on Raspberry Pi
[Note] [For myself] Django command
[Linux Nginx] Command collection used for initial setting of Web server
Cross-compile for Raspberry Pi Zero on Debian-Create your own shared library
SSD swap operation check for Raspberry Pi OS 64bit β version