https://www.raspberrypi.com/products/raspberry-pi-2-model-b/
Tested on march 16th, 2025
Installation
Download the latest Raspberry Pi OS, lite version, based on Debian bookworm:
$ wget https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-11-19/2024-11-19-raspios-bookworm-armhf-lite.img.xz
Verify the integrity of the file:
$ wget https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2024-11-19/2024-11-19-raspios-bookworm-armhf-lite.img.xz.sha256
$ echo "$(cat 2024-11-19-raspios-bookworm-armhf-lite.img.xz.sha256)" | sha256sum --check
Copy the image to an SD card:
$ unxz 2024-11-19-raspios-bookworm-armhf.img.xz
$ sudo dd if=2024-11-19-raspios-bookworm-armhf-lite.img of=<device> bs=16M status=progress oflag=sync
Now put the SD card in the RaspberryPi, connect it to an HDMI monitor and a USB keyboard, and boot.
Enter keyboard layout, the user name and the password.
Login.
Enable ssh:
$ sudo systemctl enable ssh
Change the hostname:
$ sudo hostnamectl set-hostname tabechaka-05
Also edit the file /etc/hosts
to replace raspberrypi
with tabechaka-05
.
Turn it off:
$ systemctl poweroff
Now I can move it to the rack and login with ssh.
Install software for administration:
$ sudo apt update
$ sudo apt install emacs-nox byobu
Enable ssh public key authentication:
$ mkdir --mode 700 ~/.ssh
Add my user public key to ~/.ssh/authorized_keys
.
Adjust the permission of this file.
$ chmod 600 .ssh/authorized_keys
Disable ssh password autentication:
Edit the file /etc/ssh/sshd_config
, uncommenting and setting:
PasswordAuthentication no
$ sudo systemctl reload sshd
Reboot:
$ sudo systemctl reboot
System information
tl;dr:
Processor ARM Cortex-A7, 32 bits, 1GB of memory, Debian 12
$ lsb_release --all
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
$ lscpu
Architecture: armv7l
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: ARM
Model name: Cortex-A7
Model: 5
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Stepping: r0p5
CPU(s) scaling MHz: 67%
CPU max MHz: 900.0000
CPU min MHz: 600.0000
BogoMIPS: 38.40
Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Not affected
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Not affected
Srbds: Not affected
Tsx async abort: Not affected
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 58G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 57.4G 0 part /
$ free --human
total used free shared buff/cache available
Mem: 920Mi 104Mi 765Mi 976Ki 99Mi 816Mi
Swap: 511Mi 0B 511Mi