The following recipe explains how to install an operating system on an SD card using BerryBoot.
Unlike many Raspberry Pi distributions, BerryBoot is not a standalone disk image. It is a bare minimum Linux operating system running as a single application that automates the installation of the Raspberry Pi. It is by far the easiest way of selecting and installing an operating system distribution.
BerryBoot supports the installation of multiple Linux distributions on a single SD card and is by far the easiest way of installing an operating system for your Raspberry Pi. However, it does require an Internet connection during setup and installation.
The installation takes place by booting the Raspberry Pi with an installer that can be easily copied to a FAT-formatted SD card using drag-and-drop from any PC. When the Raspberry Pi boots, the installer runs and uses the Raspberry Pi's network connection to download the latest distribution of selected operating systems.
You will need the following:
berryboot.zip
file (see the link given in the See also section of this recipe)The Raspberry Pi needs to be connected to the Internet (via a home or office network) to complete this recipe. During installation, the network connection is used to download the selected distribution files. Without an Internet connection this recipe will not work.
The preceding screenshot shows the contents of the berryboot.zip
file.
The following are the steps for creating a boot disk with BerryBoot:
berryboot.zip
file to the newly formatted SD card. Again, the normal archival tools that come with your PC will do the job.The preceding screenshot shows BerryBoot's Welcome screen.
The Welcome screen has video settings and locale settings. If green bars are displayed at the top and bottom of the screen (as in the preceding example), then the Video mode should be set to Yes (disable overscan). This screen also contains locale settings for choosing a time zone and a keyboard layout. Click on the OK button to continue.
The preceding screenshot shows BerryBoot's Disk selection screen.
The preceding screenshot shows BerryBoot's Add OS screen.
The preceding screenshot shows BerryBoot's BerryBoot menu editor screen.
First an SD card is formatted as a bootable FAT disk (using the utility of your choice). Then the BerryBoot installation files are copied to the disk. No special image writers are required! Just drag-and-drop all the unarchived files onto the SD card.
Once all the installation files are copied to the newly formatted SD card, the disk can be safely ejected and inserted into an unpowered Raspberry Pi. When the power cord is connected to the Raspberry Pi, the Raspberry Pi will boot automatically into the BerryBoot installation application.
After booting, the Raspberry Pi tries to detect all attached network cards. The installation application can detect many modern wireless USB network cards; however, only a limited number are actually configurable by the application. Once the network has been detected (and selected), the Welcome screen is displayed.
The BerryBoot install application will then detect any attached USB disk devices (or network storage). The installation application will permit the operating system to be installed on a disk other than the SD card. However, the Raspberry Pi will still need the BerryBoot SD card to boot. The Raspberry Pi will not boot from any other device. Choose mmcblk0
to format the SD card. For most uses, the ext4 filesystem is the best choice. The B-tree file system (BTRFS) has advanced features that are not covered in this book. Choose ext4 – with discard flag set
when formatting the SD card.
After the disk is formatted, the Add OS screen appears with a selection of Raspberry Linux distributions. There are distributions for using the Raspberry Pi as a media center (OpenELEC), as a classroom workstation (LTSP thin client BerryTerminal), and as a web server (BerryWebserver). There are also alternative Linux distributions (Puppy Linux and Sugar). And, of course, the "official" Raspbian Linux distribution is also included.
Once a Linux distribution has been chosen, it is downloaded and added to the boot menu. Choosing Exit from the BerryBoot menu editor screen reboots the Raspberry Pi. After reboot, the downloaded distributions are displayed on the boot menu and the user can select which distribution to boot.
Each of the recipes in this book could be used to create an "application cartridge".
An application cartridge is like a game cartridge that is plugged into a game console, ready to play. The only difference is an application is stored on the cartridge instead of a game. So when the application cartridge is plugged into the Raspberry Pi, an application is started and is ready to use.
Using application cartridges, the Raspberry Pi can easily be repurposed just by switching the cartridge (the SD card). After shutting down and turning off the Raspberry Pi, the current SD card in the Raspberry Pi could be replaced with another SD card that has a different image installed on it – easily switching the Raspberry Pi from one purpose to another.
Write a multimedia home theatre distribution, for example OpenELEC or Raspbmc on one SD card to create a home theatre application cartridge. Write an IPFire image on another SD card to create a firewall application cartridge. A Berry Terminal image could be used to create an application cartridge for client access to a terminal server; or recipes from this book could be used to create application cartridges for a file server, a web server, or a wireless access point.
With a library of application cartridges, a Raspberry Pi can serve multiple purposes.
This Linux distribution turns the Raspberry Pi into a low-cost thin client allowing users to log in to a central Linux Terminal Server Project (LTSP) server. Thin clients can be used to run applications from Linux and Windows servers. Thin clients are reliable, cost-effective solutions for improving total cost of ownership (TCO) for organizations that only require simple desktop features (schools, call centers, factories).
http://en.wikipedia.org/wiki/IPFire
IPFire is a GNU Linux distribution that acts as a router and firewall. The Wikipedia article describes the distribution in more detail. You can download IPFire from http://www.ipfire.org/.
http://en.wikipedia.org/wiki/List_of_software_based_on_XBMC
You can find a list of software distributions that are derived from the XBMC Media Center.
http://en.wikipedia.org/wiki/XBMC
You can find a Wikipedia article describing the free and open source media player application developed by the XBMC Foundation.
http://wiki.openelec.tv/index.php?title=Installing_OpenELEC_on_Raspberry_Pi
You can find the installation instructions for putting OpenELEC on a Raspberry Pi.
http://planet.ipfire.org/post/ipfire-on-raspberry-pi-ready-to-first-test
A forum post describing how IPFire can be installed on a Raspberry Pi can be found.
The Open Embedded Linux Entertainment Center Linux distribution can be found.
A minimal XMBC Linux distribution developed specifically for the Raspberry Pi can be found.
3.149.243.32