Raspberry Pi

BerryBoot
Eventually, you might begin to run out of large sized SDCards. And while card prices are getting cheaper all the time, you might want to

SDCard Boot Disk
Not as convenient as berryboot, but this is good

Hardware Procedure1

 * Raspberry Pi Model B Rev 2.0 512MB
 * Motorola Atrix Lapdock ($50)
 * (Needs replacing) On Networks N300MA Wifi Dongle (0846:f001 Netgear WNA3001M RTL8192CU)

-


 * dd image to sdcard
 * Resize partition to fill empty space with gparted

On Networks N300MA Wifi Dongle
The driver for the Netgear N300 is odd, and while it seems to be made by realtek as a rtl8192cu card, it does not work with such drivers.

Since we cannot install ndiswrapper on ARM, this dongle is a lost cause.


 * for wifi dongle, create  with   as text
 * Or use  from AUR
 * Last resort: Use easy-n300-installer from Google Code to install ndiswrapper drivers

Arch Linux Setup Procedure

 * pacman -Syyu
 * Create new user
 * Install sudo
 * Install wicd
 * Install LXDE
 * (optional) Install a login manager, such as SLIM
 * Install packer
 * Install LXDE Ozone3 theme
 * Install faenza-icon-theme
 * Wallpaper: Bjango Trio Hot
 * Install my bashrc: `git clone git://github.com/treeofsephiroth/dotfiles/
 * Get a better /etc/issue

LXDE Ozone3 Theme
LXDE's default theme isn't the best looking one around. However, on Lubuntu, they've managed to cook up a nice new theme called Ozone3 that makes it look like a modern piece of technology.

Wicd
https://wiki.archlinux.org/index.php/Wicd

LXDE
LXDE doesn't come with fonts, so install these. These get used out of the box, but may need some configuration in obconf and lxappearance.

pacman -S ttf-droid-sans ttf-inconsolata Some extra tiny programs that might be useful:

pacman -S leafpad Midori works really well if you have the 512MB version. If not, use elinks or netsurf.

pacman -S midori The only light archiver around is file-roller from Gnome 3.

pacman -S p7zip unrar zip file-roller. If you're using LXDE or something, installing volwheel is a good idea for graphical sound management.

pacman -S volwheel It's strongly recommended that you run volwheel the first time, right click the tray icon, click &quot;Preferences&quot;, and click the &quot;MiniMixer&quot; tab. Remove everything except &quot;PCM&quot;. These other channels do not exist, and they need to be removed or volwheel will go nuts.

It's probably a good idea to run volwheel at every startup. Add it to your DE's startup, or in.

ALSA
Finally, installing the ALSA userspace utilities is a pretty good idea. This will give you the ability to use the ncurses. ALSA itself is already integrated into the Linux kernel.

pacman -S alsa-utils This command is designed to automatically set sound output (though it doesn't always work as expected)

amixer cset numid=3 0 This command directs output to the 3.5mm plug.

amixer cset numid=3 1 This commmand directs output to HDMI audio.

amixer cset numid=3 2

Building AUR packages on Arch Linux ARM
Arch Linux ARM basically builds every single official Arch Linux package. But what Arch Linux distro is complete without the massive AUR?

The Arch User Repository is a database of package build instructions (PKGBUILDs) along with any necessary patches. It automates the tired old practice of turning source code into dependency tracking, easily updateable and removable software packages.

Although your system is ARM, by using the PKGBUILDs in the AUR, one can build from source and get a package customized for their system with a single command.

There are some caveats, though:


 * ARM is not an officially supported architecture of Arch Linux. This means that there might be some incompatiblities or oversights that the packagers usually are not aware of. Generally, this is not an issue for source-code based packages if they are done right.
 * A handful of packages violate the source-code based nature either out of necessity (proprietary packages) or for convenience. These are generally postfixed with

'-bin`, for binary. Since these are precompiled for x86 systems, these packages can't be used at all on ARM systems.

Manual Build
Since makepkg prefers not to build PKGBUILDs that do not explicitly support your architecture, we need to tell it to ignore such fields.

It is also helpful to have  install all necessary dependencies in Pacman automatically. Therefore, the complete command is below:

makepkg -sA

AUR Helper
By design,  has an insurmountable flaw; it does not resolve dependencies that are on the AUR. This is where the AUR helper comes in. It functions as a wrapper for  and   that adds an AUR package search and AUR dependency resolver, so that installing AUR packages is just as simple as using.

However, just as with makepkg, we need to tell  to ignore AUR architecture.

AUR Packages
omxplayer is a special media player optimized for the Raspberry Pi.

packer -S omxplayer-git However, apparently there is an issue with the newest build that breaks sound. Edit the  and set it to , the last known good commit.

/etc/issue
https://bbs.archlinux.org/viewtopic.php?id=50845