Skip to content

layereight/raspberrypios-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

raspberrypios-setup

Prerequisites

  • installed software:
    • xz
    • fdisk
    • openssl

Usage

raspberrypios-setup.sh <ZIPPED_RASPBERRYPIOS_IMAGE> <HOSTNAME> <USER> <PASSWORD>
# typical run $ ~/bin/raspberrypios-setup.sh /data/software/raspberrypios/2025-12-04-raspios-trixie-armhf-lite.img.xz homecenter pi raspberry Zipped image: /data/software/raspberrypios/2025-12-04-raspios-trixie-armhf-lite.img.xz Working directory: /data/software/raspberrypios Unzipping... /data/software/raspberrypios/2025-12-04-raspios-trixie-armhf-lite.img.xz (1/1) 100 % 497.0 MiB / 2,568.0 MiB = 0.194 408 MiB/s 0:06 Unzipped image file: /data/software/raspberrypios/2025-12-04-raspios-trixie-armhf-lite.img Image sector size: 512 bytes Boot partition start at: 8388608 bytes Root partition start at: 545259520 bytes Temp image mounting directory: /tmp/tmp.GlFKMt2VoT [sudo] password for user: Create /ssh in boot partition Create /userconf in boot partition pi:$6$jNO9r.GzBAHHEVy.$SBEZqc6.n80TBCeED1uRFOaGNxPtKGTPXPqPWgc5GQpHDRi37IpZfiMdxIaJI0f7xHeBy7BFbRctRwfc1HPkz1 Contents of /etc/hostname in root partition: homecenter Contents of /etc/hosts in root partition: 127.0.0.1	localhost ::1	localhost ip6-localhost ip6-loopback ff02::1	ip6-allnodes ff02::2	ip6-allrouters 127.0.1.1	homecenter DONE. Your prepared image file is in /data/software/raspberrypios/2025-12-04-raspios-trixie-armhf-lite.img

Copy the resulting image

  • in a separate step
# # typical target devices (use lsblk to find out) # /dev/mmcblk0 for sdcard reader # /dev/sdX for USB sticks # sudo dd if=/data/software/raspberrypios/2025-12-04-raspios-trixie-armhf-lite.img of=/dev/mmcblk0 status=progress

About

Prepare a Raspberry Pi OS image for a headless installation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages