-
Notifications
You must be signed in to change notification settings - Fork 1
Creating a new Raspberry Pi release
- How to create a new Raspberry Pi release to upload to the Github Release page
- Method 1 (manual)
`cd /tmp wget https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bookworm.img.xz -o /tmp/dietpi.img.7z`
5. Download the latest dietpi.txt from the Tunnel Gui Project: `wget https://raw.githubusercontent.com/roelbroersma/tunnel-gui/main/dietpi.txt` 6. Install 7zip: `apt-get install 7zip` 7. Extract the downloaded zipfile:
`cd /tmp` `7zr x /tmp/DietPi_RPi-ARMv8-Bookworm.img.xz`
8. Start the Desktop environment on a machine which has a monitor connected (or a Hyper-V console window) using the command: `startx` 9. Start the Gnome disk utility, open a Terminal and type: `gnome-disks` 10. Click the Hamburger Menu and click 'Attach Disk Image... (.iso, .img)', now select the unpacked .img file at /tmp/DietPi_RPi-ARMv8-Bookworm.img and **make sure to unclick Set up read-only loop device!** 11. You will see two partitions, select the first FAT partition and click the Play button, it will now mount as /media/.... 12. Go to the /media/.... folder and drag and drop the /tmp/dietpi.txt file to it that we downloaded in step 5. **Overwrite it**. 13. Go back to the gnome-disk-utility and click the STOP button to stop mounting the FAT partition. 14. Now click the MINUS button in the top bar to DETACH the .img file. 15. Go to a terminal and zip the .img file using a normal .zip utility (this is more friendly for our Windows users): `cd /tmp` `zip -9 -o dietpi_image_output_file.zip DietPi_RPi-ARMv8-Bookworm.img`
- Method 2 (automatic)
- Step 1: Download latest DietPi image for Raspberry Pi
- Stap 2: Unpack the .xz so we have our .img file
- Step 3: Calculate the Offset and mount the .img file
- Use Fdisk to see the START sector of the first image
- Multiply this with the sector size of 512 bytes:
- Create the mount folder and mount
- Step 4: Download and replace the dietpi.txt file
- Step 5: Unmount
- Step 6: Zip the .img file using a normal zip (to make it easy for our Windows users) and with maximum compression