raspios install

 

 


bullseye

 

Raspberry Pi OS Lite Version

May 3rd 2023

  • Zip Size: 364MB
  • SD Card: 2G

Setup SD Card

IMG=2023-05-03-raspios-bullseye-armhf-lite.img.xz

wget https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2023-05-03/$IMG

lsblk

...

xzcat 2023-05-03-raspios-bullseye-armhf-lite.img.xz > /dev/sdX
mkdir /mnt/pi

mount /dev/sdf1 /mnt/pi -o noatime

touch /mnt/pi/ssh                                                                       # auto start ssh

cp /mnt/pi/cmdline.txt{,.bak}

cp /mnt/pi/config.txt{,.bak}

sed -i 's/$/ ip=192.168.88.240/' /mnt/pi/cmdline.txt                     # 設定 IP

sed -i 's/^#\(hdmi_force_hotplug=1\)$/\1/' /mnt/pi/config.txt       # HDMI 支援 hotplug

sed -i 's/^#hdmi_group=1/hdmi_group=2/' /mnt/pi/config.txt       # 設定 HDMI 做 720p

sed -i 's/^#hdmi_mode=1/hdmi_group=85/' /mnt/pi/config.txt

umount /mnt/pi

 


 

Creative Commons license icon Creative Commons license icon