How to setup Raspberry Pi 4?

Raspberry Pi
Reading Time: 4 minutes

I bought Raspberry Pi 4, now I managed to connect SSH via Wi-Fi.

I am interested in using Raspberry Pi as mini PC!
But what is needed?
How can I setup Raspberry Pi to use?

This page solves this issue.

What should be prepared?

  • Raspberry Pi 4
    Needless to say.
  • Heat spreader
    Recently Raspberry Pi has great CPU power.
    On the other hand it can produce much heat.
    I would recommend to use heat spreader for stable usage.
  • microSD
    Please buy Class10 for the best performance.
  • USB cable
    If you want to connect some peripherals like USB HDD, please choose USB cable that can output 3.0A at minimum.

Open box and connect

First you take Raspberry Pi from box.
In box we can find only Raspberry Pi, simple instruction sheet, and that’s it.

画像に alt 属性が指定されていません。ファイル名: 20201020_223204-1024x485.jpg
画像に alt 属性が指定されていません。ファイル名: 20201020_223247-1024x485.jpg

Then I attached heat spreader.
This is almost the same size as tobacco, very small!

画像に alt 属性が指定されていません。ファイル名: 20201020_224058-1024x485.jpg

I connected USB cable.
In this image Raspberry Pi is connected to VAIO laptop.
– Of course it is not safe to connect peripheral that consumes much current like USB HDD.

画像に alt 属性が指定されていません。ファイル名: 20201021_174518-485x1024.jpg

Install Raspberry Pi OS to microSD

Then I installed operating system to microSD.
Now we can find Raspberry Pi Imager which is useful installation tool provided officially.

画像に alt 属性が指定されていません。ファイル名: Screenshot-2020-11-08-at-09.56.31-810x1024.png

I am linuxer so I used dd 🙂

# Downloading image file by curl. -L option is used to redirect.
curl -L -o

# Extracting

# Writing to microSD
sudo dd if=2020-08-20-raspios-buster-armhf-lite.img of=/dev/sda bs=1M

This file name is the latest one as of October 2020, so please check official site for the latest version.

Download Raspberry Pi OS for Raspberry Pi
Raspberry Pi OS (previously called Raspbian) is the Foundation's official supported operating system. Install it with NOOBS or download the image below.

After finishing writing, disconnect microSD once and connect again.
Mount boot partition to setup SSH and Wi-Fi connection.

# Mounting /dev/sda1 partition to /mnt.
pi@raspberrypi:~ $ sudo mount /dev/sda1 /mnt
# Create empty file to /mnt/ssh to make Raspberry Pi start SSH.
pi@raspberrypi:~ $ sudo touch /mnt/ssh

Next is Wi-Fi settings.
<SSID> and <PresharedKey> should be replaced by your own environment values.

sudo vim /mnt/wpa_supplicant.conf

# Below is the contents of wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

That’s it for initial setup.
Please unmount /mnt, disconnect and connect to Raspberry Pi.

sudo umount /mnt

Connect with SSH

Let’s start Raspberry Pi!
Raspberry Pi starts automatically if USB cable connects Raspberry Pi and USB cable connects power supply.

If you are not able to identify IP address of Raspberry Pi, you can use network scanning tool like this.

Network Scanner - Apps on Google Play
App will find all hosts in your home network or in selected IP range. It can be used not only to know who are using your WiFi and learn more about every device,...

With this tool you can easily identify Raspberry Pi’s IP address!
– In this image, is Raspberry Pi.

画像に alt 属性が指定されていません。ファイル名: Screenshot_20201108-101942_Network-Scanner-519x1024.jpg

You should be able to connect by SSH, let’s try.
– User name: pi
– Password: raspberry

ssh pi@
The authenticity of host ' (' can't be established.
ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts.
pi@'s password: 
Linux raspberrypi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Nov  8 01:00:09 2020 from 192.168.1.x

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

You got it!


How was that? Is it interesting?

The new Raspberry Pi has much CPU/RAM, so the performance is not cheap, it can be used documentation, or personal server and so on.

And Raspberry Pi OS is debian based linux, so we can easily install contents server software like wordpress, nextcloud, or others. We can make web camera if camera module connects to Raspberry Pi!

I am enjoying, I like this!

If you have any trouble when you are using/setting up Raspberry Pi, feel free to contact me via SNS or inquiry form!

Below are the list of my Raspberry Pi/peripherals.
You can buy them totally 100 USD!


I am software engineer at foreign company in Japan.
My experience of embedded software is over 15 years.
I was in charge of designing of software which has embedded linux.
I love Raspberry Pi.
I earn 10000USD per year on the stock market.
I married Hong Konger.

Please follow me
Raspberry Pi
Please follow me
The World's Linux Journal