Raspberry Pi

樹莓派是基於Linux的單晶片電腦,由英國樹莓派基金會開發,目的是以低價硬體及自由軟體促進學校的基本電腦科學教育。

Learning Raspberry Pi

Tutorials

Hardware

Picroft

Introduction

Picroft is a ready-made way to run Mycroft on a Raspberry Pi 3, 3B+ or 4 and is provided as a disk image that you can burn to a Micro SD card.

 

 

Raspberry Pi OS

Enable SSH

Default credential is pi / raspberry

Option #1: For headless setup

SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD Card.

Option #2: From the desktop

  1. Launch Raspberry Pi Configuration from the Preferences menu
  2. Navigate to the Interfaces tab
  3. Select Enabled next to SSH
  4. Click OK

Option #3: Using the raspi-config

  1. Enter sudo raspi-config in a terminal window
  2. Select Interfacing Options
  3. Navigate to and select SSH
  4. Choose Yes
  5. Select Ok
  6. Choose Finish

 

 

PiShrink

Dumping existing image

Install cockit on Raspberry Pi

sudo apt install cockpit

Shutdown Raspberry PI, take out the SD card, and connect it to your PC.

The boot- and rootfs-partitions were automatically mounted at the mentioned mount points. Before you proceed, unmount them with :

umount /dev/mmcblk0p1
umount /dev/mmcblk0p2

Now we copy the contents of the SD card to our file system.

sudo dd if=/dev/mmcblk0 of=/home/alang/worktmp/PiShrink/my_rasp.v2.img bs=32M

Download the PiShrink

https://github.com/Drewsif/PiShrink 

Now invoke the script by typing:

sudo ./pishrink.sh my_rasp.v2.img
Flash the image to the SD card