Hi,
I just created a custom Raspbian image following the procedure in the readme, and thought I’d share some notes. Since the procedure in the readme isn’t newbie proof, feel free to use any of this information to update the readme.
I started off by deleting all the distros from under the ‘os’ dir, except the Raspbian distro. There’s no point renaming the distro or changing the graphics at this point. Now boot the distro and install Raspbian as usual. Make the required changes, customize the wallpaper, configure the Wireless (if you are using a compatible adapter), install and remove apps.
When you are done, fire up a terminal and create the root and boot file systems as mentioned in the readme, with slight tweaks:
For the root filesystem:
$ cd /
$ tar -cvpf root.tar /* --exclude=proc/* --exclude=sys/* --exclude=dev/pts/*
For the boot filesystem:
$ cd /boot
$ tar -cvpf boot.tar
Instead of using the <label> to create the two tarballs as mentioned in the readme which would have created two file with identical names, I’m sticking with ‘boot’ and ‘root’.
Now the Pi doesn’t have the juice to compress these images. So you’ll have to move them out. You can do so by inserting a USB pen drive and copying the two tar files on to the USB drive. Assuming the drive is mounted at /media/usb:
$ cp /root.tar /media/usb
$ cp /boot/boot.tar /media/usb
Now shutdown the Pi, remove the SDCard and the USB drive and head to a normal Linux machine. Insert the drive and compress the tarballs just as mentioned in the readme:
$ xz -9 -e boot.tar
$ xz -9 -e root.tar
This will replace the files with their compressed versions, namely boot.tar.xz and root.tar.xz
Now format the SDcard and extract a fresh copy of NOOBS. Then remove all files under this directory except the distro you want to customise, for example Raspbian. Now follow Steps 4, 5, 6, 7 to customise the distro’s name, icon and slides.
If you are using Raspbian, also make sure to zap the flavour.json file, which I’m guessing overrides the os.json file.
You can safely skip step 8, unless you want to change the name of the compressed boot and root files we’ve just created.
Then follow step 9 and replace the existing boot.tar.xz and root.tar.xz with the versions in the USB drive that we’ve just created.
That’s it! Now boot the Pi with this card. The NOOBS menu will list your custom OS. After you’ve installed it, the distro will have all your customizations.
What a beautiful system! Kudos to everyone involved.
Cheers!
Mayank
geekybodhi.net
-
- Posts: 1
- Joined: Thu Dec 26, 2013 12:18 pm
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- The MagPi
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Raspberry Pi 400
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Operating system distributions
- Raspberry Pi OS
- Raspberry Pi Desktop for PC and Mac
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion