Raspbian Installer - Raspbian Pi

From ETCwiki
Revision as of 00:19, 12 August 2013 by Ddxfish (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Recently I have been wanting to build a stripped down version of Raspbian which I am going to call Raspbian Minimal. It will be my base system for creating projects based on Raspbian. The fully installed Raspbian Minimal will be just like the Raspbian Wheezy image you get from the Raspberry Pi website, except it will not have the modifications and additions pre-included.

In other words, this is how to build Raspbian Minimal - no desktop, no xserver. A perfectly blank canvas for you to mold to your will.

Raspbian Installer

This guide is how to install Raspbian from the Raspbian Installer on the Raspberry Pi itself. It is 7MB of files you load onto an SD card that will load the debian (raspbian) installer to build your system from scratch by connecting to the internet to download the most up to date patches from the start. You need at least a 1GB card for this.

Make Raspbian Installer SD Card

  1. Download the Raspbian Installer Files
    1. From Raspberry Pi - rpi_installer_08-19-12.zip - found at raspbian.org
    2. From Etcwiki - rpi_installer_08-19-12.zip - backup link in case the main one does not work
  2. get your SDcard and format it fat32
  3. copy and paste all files inside rpi_installer_08-19-12.zip on the SD card
  4. Pop the card into the pi


Fill in Raspbian info

  1. Boot the Pi
  2. Select Language
    1. English
  3. Select Country
    1. United States
  4. Keymap to use
    1. American English
  5. Hostname
    1. rpi
  6. Domain Name
    1. (blank)
  7. Repository
    1. Add Manually
    2. mirrordirector.raspbian.org
    3. /raspbian/
  8. No kernel modules were found. This is probably due to a mismatch between the kernel used by this version of the installer and the kernel version available in the archive. Continue Installing without loading kernel modules?
    1. Yes
  9. Choose root password
  10. Choose new user
  11. Choose password for new user
  12. Select your timezone

Raspbian Partition Layout

If you want a swap file (ram overflow on a very slow SD card) Just go ahead and use default partition settings. Its going to slow down ur Pi though.

alt Raspbian Partition Layout with no swap
  1. If you want NO swap file (really how u should run it)
  2. NOTE: YOU WILL HAVE TO CHANGE cmdlist.txt in /rpiboot to reflect this! see below
    1. Go to the swap file in the partitioner, 255.9MB
    2. Delete partition 2 (swap)
    3. Delete partition 3 (/ ext3)
    4. Create a new PRIMARY partition in the space (any size for ur root FS above 850MB)
    5. Type: ext4
    6. Mount Point: /
    7. Mount Options: noatime
    8. NOT BOOTABLE
  3. Done editing. Finish Changes.
  4. You have not selected any partitions to use as swap space. Do you want to return to the partitioning menu?
    1. No
  5. Write Changes to disk?
    1. Yes

Raspbian Installation

Now you see a long progress bar, installing base system. Mine took about 45 minutes, but yours might take longer.

Note: I have had a crash here at 56% complaining about debootstrap that was fatal to my install. Just reimage installer and restart install.

  1. No Installable kernel was found in the defined APT sources. Continue without installing a kernel?
    1. Yes
  2. Participate in the package usage survey?"
    1. No
  3. You will now be able to choose which SETS of packages you want to install on your pi, right from the start. Here is what I choose for Raspbian Minimal
    1. SSH Server
      alt Raspbian Features during Installation
    2. Standard System Utilities
    3. nothing else if u want a true raspbian minimal
  4. No Bootloader has been installed...
    1. Continue

Post-Installation Essentials

Tell it to boot from our new partition setup

As you notice, the pi does not work right away. It is looking for our root partition in partition number 3, but we dont have one anymore, so lets change it to use partition 2.

Note: This is best on linux, I used Linux Mint

  1. shutdown the pi and remove power, then memory card
  2. put memory card in linux computer
  3. Using Mint, a 74MB volume pops open with 11 files in it.
  4. Edit cmdline.txt
  5. Find this part:
    1. root=/dev/mmcblk0p3
  6. Change to:
    1. root=/dev/mmcblk0p2
  7. save, close, and eject the drive safely!
  8. boot into Raspbian Minimal (I boot into root every time...)

Update any packages

Update the system to the most recent build of packages. This is pretty important, even if you got a recent image from me, still update it.

apt-get update
apt-get upgrade

Get Raspi-Config

Post-Installation Optional

Purge Locales

The Raspbian Install we just did puts a bunch of language packs (locales) into its default install. It is possible to remove these saving (according to the program, 72MB of space on a 500MB image) The program is called localepurge and can be gotten from apt-get

apt-get install localepurge

It will ask you about what languages you use. I recommend you choose: EN, "EN_US UTF8"


Remove some packages

External Links