Raspberry Pi Pidora

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
Line 63: Line 63:
== Installing Pidora (Fedora remix) ==
== Installing Pidora (Fedora remix) ==
1. Follow the instractions on the Fedora Raspberry side and install "fedora arm-installer  
1. Install "fedora arm-installer  
<pre>yum install fedora-arm-installer</pre>
<pre>yum install fedora-arm-installer</pre>
2.You can obtain the Pidora version from [http://files.velocix.com/c1410/images/pidora/pidora-18-r2c/pidora-18-r2c.zip Pidora 18]
2. You can obtain the Pidora version from [http://files.velocix.com/c1410/images/pidora/pidora-18-r2c/pidora-18-r2c.zip Pidora 18] (492 MB)
3. You can use the file archiver to extract the file and should find pidora-18-r2c.img
3. You can use the file archiver to extract the file and should find pidora-18-r2c.img
4. Just follow the [http://fedoraproject.org/wiki/Fedora_ARM_Installer the inctructions here]
4. Just follow the [http://fedoraproject.org/wiki/Fedora_ARM_Installer the inctructions here] and install tzhe image to the sdcard (the installer has autodetect).
== Preparing the Pi ==
== Preparing the Pi ==

Revision as of 18:59, 19 March 2014

This page needs some love
This page should be revised or reconstructed to be more helpful. Problems may include being out of step with current team or project status or process.
We need more hands on board!
We need more folks to improve the distribution process. We need YOU!


Raspberry-PI Fedora Remix

The Raspberry Pi Fedora Remix, produced and maintained by the Seneca Centre for Development of Open Technology, is a Fedora-based Linux distribution that runs on the low-cost ($25 and $35) system-on-a-chip (Broadcom BCM2835) known as the Raspberry Pi (RPi or RasPi). This distribution consists of software packages from the Fedora ARM project (armv5tel architecture) and a small number of additional packages that are modified from the Fedora versions or which cannot be included into Fedora due to licensing issues (e.g., the libraries for accessing the Raspberry Pi’s VideoCore GPU).

This page will show you how to install Fedora Remix on the Raspberry Pi. Installing Fedora Remix on the Raspberry Pi is easier than installing Fedora on a laptop or desktop because all you have to do is copy the prepared image to a SD card and plug in the Pi.

 The current build of Fedora 18 seems to be stable to me so far, but if you want to be safe you might want to use the latest Fedora 17 build.
 The first core components of the Broadcom BCM2835 landed in kernel 3.7 and there might be some bits to report soon with regard to firmware distribution.

At present, the Fedora Remix is the only option, so let’s get started with it!

Installing the Raspberry Pi Fedora Remix

There are two ways to get Fedora. You can either use the unofficial installer that extracts the files and formats the SD card automatically, or use the original method. Instructions and downloads for the installer can be found at http://fedoraproject.org/wiki/Fedora_ARM_Installer and the original way is explained below.

There are four steps to installing Fedora Remix on your Raspberry Pi the manual way.

  • Copy the ready-made Fedora Remix image onto an 4GB (or larger, I use an 8GB card) SD memory card
  • Hook up a monitor (preferably via HDMI), a USB keyboard and mouse (ideally that share a single USB port) and, optionally, an internet connection (ethernet cable, USB wireless card or USB tethering to a smartphone)
  • Power on and walk through the Fedora “first boot” wizard
  • Reboot, login and geek out!

The SD card serves as the Raspberry Pi’s primary drive. By default, the Pi will look on the SD card for the operating system to load (though it’s possible to boot from other devices as well). Therefore, the first step is to grab the image and put it on the card.

1. Download the latest Raspberry Pi Fedora 17 Remix distribution, rpfr-{*fedora version*}-xfce-RC{*subversion*}.img (972MB).

2. Extract the archive using the Archive Manager (file-roller) application or unzip from the command line. This will create the file rpfr-{*fedora version*}-xfce-RC{*subversion*}.img.

3. Get the device name of the SD card using the Disks (palimpsest) application or sudo fdisk -l from the command line. Most likely the SD card is named /dev/mmcblk0. (or can be different on your machine)

4. Transfer the extracted image file rpfr-{*fedora version*}-xfce-RC{*subversion*}.img to the SD card using a terminal window.

Here’s the transfer command to execute in Step 4.

 sudo dd if=rpfr-{*fedora version*}-xfce-RC{*subversion*}.img of=/dev/mmcblk0 bs=1M

The command above assumes you saved rpfr-{*fedora version*}-xfce-RC{*subversion*}.img in your home directory after extraction. If you saved the file elsewhere, you’ll need to change to the appropriate directory via the command line (cd directory/name) before executing the dd command. dd is a low-level copy command that can read and write complete disk images. if stands for “input file”, of stands for “output file” and bs tells dd how many bytes to read at a time.

In our case, the input file is the disk image rpfr-{*fedora version*}-xfce-RC{*subversion*}.img, the output file is the SD card device /dev/mmcblk0 and the block size is one megabyte (1M). This command will create the necessary file systems partitions on the SD card, occupying 3.1GB of space, then copy the prepared operating system files to those partitions. A one step installation!

NOTE: As you’ll learn later, the first boot wizard will allow you to resize the main partition to use all available space on the card.

TIP: The dd command is also your friend if you need to move to a bigger SD card. Simply reverse the if and of values, insert a bigger card and run the above command again.

The dd command doesn’t output any messages until the operation is complete, so be patient. The length of time to execute the command will vary depending on the speed of the card. With my Class 6 card, it takes about 8 minutes (7 MB/s). Here’s an example of the output you’ll see when the command finishes:

 3000+0 records in
 3000+0 records out
 3145728000 bytes (3.1 GB) copied, 445.969 s, 7.1 MB/s

To be on the safe side issue the following command to make sure the data buffer has writen everything to the SD card.

 # sudo sync 

You can verify the operation worked by ejecting the SD card, reinserting it, then browsing the contents using the file explorer. You should see two mounts, boot and rootfs. Once you’re done poking around, unmount boot and rootfs and eject the card. The SD card is ready. Now let’s prepare the Pi!

Installing Pidora (Fedora remix)

1. Install "fedora arm-installer

yum install fedora-arm-installer

2. You can obtain the Pidora version from Pidora 18 (492 MB)

3. You can use the file archiver to extract the file and should find pidora-18-r2c.img

4. Just follow the the inctructions here and install tzhe image to the sdcard (the installer has autodetect).

Preparing the Pi

Plug the following inputs into the Raspberry Pi board:

   SD card
   Monitor HDMI cable
   USB keyboard
   USB mouse
   Ethernet cable, USB wireless card or USB tethered smartphone

Next, turn on the monitor and, if necessary, the keyboard and mouse. Set the resolution of the monitor to “Just Scan” if it offers that setting. Otherwise, use the default setting (e.g., 16:9 or 4:3).

The Raspberry Pi only has two USB ports, which you may quickly outgrow. One solution is to expand the number of ports by adding a (preferably powered) USB hub. Before going that route, you can save one of the USB ports by getting a keyboard and mouse that can share the same port.

Power it up!

The final input is the power (otherwise known as the “on” switch).

Grab a your proper charger(5 Volt 700mA~1200mA) and plug it into a power outlet. You may be tempted to use the USB port of your laptop as the power source; however, the USB port may not provide the necessary power required by the Model B Raspberry Pi (700mA). The general recommendation is to play it safe and use a wall outlet.Also don't forget the your charger must give proper volt and amper to make it work properly for your Raspberry-PI.

It’s action time! Plug the micro USB end of the cable into the micro USB input and wait a few seconds for a raspberry to appear on the monitor. If you see one, then the Fedora Remix is booting. If not, you may need to play with the settings on your monitor.

Customizing the installation on first boot

This wouldn’t be a Fedora installation without the first boot wizard. The inclusion of first boot is one of the features that sets the Fedora Remix apart from other Raspberry Pi distributions. In addition to the simple first boot operations (review license, set language, timezone and date, root password), the Fedora Remix allows you to:

Resize the rootfs partition to use all remaining space on the SD card, optionally allocating some of that space for a swap file (I used the defaults)

Create a user account (add the user to administrators group)

Fedora Remix create user boot screen

   On the system settings screen you can modify the host name (default is raspi.local), choose graphical or text boot type mode, configure the RAM allocation between the CPU and GPU (out of available 256MB), and select video display configurations. I used the wizard selected options shown in the screenshot below.
   If you want to use the Raspberry Pi without keyboard, mouse or monitor, you can already access it via SSH. The default root password is "raspberrypi". Then, you can kill Firstboot, create accounts, and customize the installation. 

Fedora Remix create system settings boot screen

Hit the finish button. The Pi will reboot twice on its own (once to resize the disk). Go get some coffee, this will take several minutes.

 NOTE: If you get the Oh no! Something has gone wrong. screen, don’t panic. 
 Type ctrl+alt+delete to initiate a third reboot.

Once the desktop comes up, don’t worry if it doesn’t fill the screen, we can fix that later. Now log into the XFCE desktop with the user account you created during the boot wizard.

Raspberry Pi XFCE desktop login

After you’ve logged in (go check your email, this may take a moment as well), you’ll see the following dialog window.

Raspberry Pi XFCE start panel

This is part of the XFCE desktop; You can choose the default or manual configuration.

Updating Fedora Remix on the Raspberry Pi

You use Fedora Remix on the Raspberry Pi just like any other Fedora installation. You might start by opening a terminal and updating the packages (internet connection required):

 sudo yum -y update

Installing updates via yum

You can browse the hardware information by installing and running hardinfo:

 sudo yum -y install hardinfo

After you type the above command, you will be asked for your password. Next, the system will resolve dependencies, download new packages, run transaction check and test, run transaction, and install packages.

Installing hardinfo via yum

The flashing lights on the Raspberry Pi board will indicate that the computer is hard at work.

Raspberry Pi hard at work

When the hardinfo installation is complete and the command line prompt reappears, type:


System information via hardinfo

Now you can easily explore the Raspberry Pi and Fedora Remix system specifications.

The desktop may seem a bit sluggish, but keep in mind what you are running it on. (It’s also because the Fedora Remix has not been compiled to take full advantage of the processor, which may change in Fedora 18).

One setting you won’t be able to configure from the control panel is the resolution. For that to change, you have to modify the Raspberry Pi configuration file. Let’s explore a few of those settings. Tweaking the display and memory on the Raspberry Pi

The Raspberry Pi hardware is configured in the config.txt file in the /boot partition (/boot/config.txt). One of the key settings is the display resolution. Here’s the setting I used to stretch the desktop to full 1080 resolution (since my monitor supports it):

 NOTE: You can’t simply click on the text document, open it in leafpad, edit it and hit save because you need root priviledges. 
 To update this file you’ll need to access it through a terminal using sudo.

Open a terminal window and type:

 cd /boot
 sudo leafpad config.txt

After you enter your password, leafpad will launch. Add the following setting to the file in leafpad:


I also recommend these settings to make the monitor display the image properly.


Configuring the HDMI settings in leafpad for the Raspberry Pi

Save the file and close it. Reboot the Raspberry Pi for the changes to take affect. You can type the following command in the terminal to reboot.

 sudo shutdown -r now

Keep in mind that running the desktop at higher resolution does take more memory. You may want to opt for a lower resolution. Experiment with the values until you find what works for you. Consult the full list of resolution modes to find the hdmi_mode value for each resolution.

You can also make the desktop run faster by allocating more memory to the CPU. The RAM partitioning is controlled by the file start.elf in the /boot partition (/boot/start.elf). There are several alternative partitioning files in that directory with the pattern arm*_start.elf.

The number after “arm” is the amount of RAM dedicated to the CPU. To give 240MB of RAM to the CPU and the remaining 16MB to the GPU, use this copy command:

 cp arm240_start.elf start.elf

If you want to play multimedia, you probably want to split the RAM down the middle at 128MB a piece (the most you can give to the GPU):

 cp arm128_start.elf start.elf

Reboot for the change to take affect. Play with the values and see which one works best for you.


The Fedora Remix is one of many distributions you can install on the Raspberry Pi, and there is plenty of room for it to improve. If your goal is to use the Raspberry Pi as a multimedia center, Fedora Remix may not be your best option (check out OpenELEC). You’d choose Fedora Remix for things the Fedora OS excels at, such as software development. Fortunately, you don’t have to limit yourself to a single distribution. Changing distributions is as easy as swapping SD cards. We encourage you to try different distributions to get the most out of your Raspberry Pi.

Raspberry-PI Photobooth

Check what are we doing with Raspberry-PI !!! ;)

Raspberry Pi photobooth