3532
Comment:
|
3533
|
Deletions are marked like this. | Additions are marked like this. |
Line 45: | Line 45: |
}} | }}} |
How to setup Debian 11 on Raspberry Pi 4
In this article, I'd like to discuss how I setup Debian 11 on Raspberry Pi 4
Raspberry Pi 4 a small logic board with Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC (System on a Chip).
You can get it with 2GB, 4GB or even 8GB of Memory. I'm using Raspberry Pi 4 with 8G of memory with 32G microSD Card.
Contents
System Requirements
Here is basic System Requirements for this article.
+ Raspberry Pi 4 (4G or 8G) + microSD Card (32G or higher)
Download Raspberry Pi 4 Image
You can download RPI 4(4G) Verified Image for Bullseye from https://raspi.debian.net/tested-images/
$ wget https://raspi.debian.net/verified/20210823_raspi_4_bullseye.img.xz
Write the image to microSD Card
Please refer to following document to write the image to microSD Card for Linux-based. https://wiki.debian.org/RaspberryPiImages
If you have macOS, use balenaEtcher https://www.balena.io/etcher/
Boot Raspberry Pi 4 with microSD
Assuming you're already assembled Raspberry Pi 4 on its own case and plug-in to a Display via HDMI, simply plugin microSD to Raspberry Pi 4 and boot from it.
The default username is root without password (set it to your own)
Remote Login to Raspberry Pi 4
To remote login (ssh) to RPI4, I would recommend to create your own account.
# adduser tchung # passwd tchung
I also recommend to install vim and sudo.
# apt update # apt install vim # update-alternatives --config editor (choose vim.basic) # apt install sudo # adduser tchung sudo
logout and login as yourself
Neofech on Raspberry Pi 4
I always install neofetch on new system for login script
$ sudo apt install neofetch $ echo; neofetch --ascii_colors 1 1 1 1 1 1
Here is result.
More Information
Here is more information from RPI4:
$ sudo apt install lsb-release $ lsb_release -d Description: Debian GNU/Linux 11 (bullseye)
$ uname -a Linux rpi4-20210823 5.10.0-8-arm64 #1 SMP Debian 5.10.46-5 (2021-09-23) aarch64 GNU/Linux
$ lscpu | egrep 'Arch|CPU|Byte|Vendor|Model' Architecture: aarch64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: ARM Model: 3 Model name: Cortex-A72 CPU max MHz: 1500.0000 CPU min MHz: 600.0000 NUMA node0 CPU(s): 0-3
$ df -hT Filesystem Type Size Used Avail Use% Mounted on udev devtmpfs 3.8G 0 3.8G 0% /dev tmpfs tmpfs 781M 644K 781M 1% /run /dev/mmcblk1p2 ext4 30G 965M 27G 4% / tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock /dev/mmcblk1p1 vfat 296M 75M 222M 26% /boot/firmware tmpfs tmpfs 781M 0 781M 0% /run/user/1000
$ free -hw total used free shared buffers cache available Mem: 7.6Gi 89Mi 7.1Gi 0.0Ki 12Mi 399Mi 7.3Gi Swap: 0B 0B 0B