Raspberry Pi
RPi[edit]
BerryBoot[edit]
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[edit]
Not as convenient as berryboot, but this is good
Hardware Procedure1[edit]
- 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[edit]
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.
modprobe 8192cu
for wifi dongle, create/etc/modules-load.d/8192cu.conf
with8192cu
as text- Or use
dkms-8192cu
from AUR - Last resort: Use easy-n300-installer from Google Code to install ndiswrapper drivers
Arch Linux Setup Procedure[edit]
- 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[edit]
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.
Useful Programs[edit]
Wicd[edit]
https://wiki.archlinux.org/index.php/Wicd
LXDE[edit]
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 "Preferences", and click the "MiniMixer" tab. Remove everything except "PCM". 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 /etc/xdg/autostart/
.
ALSA[edit]
Finally, installing the ALSA userspace utilities is a pretty good idea. This will give you the ability to use the ncurses alsamixer
. 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[edit]
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[edit]
Since makepkg prefers not to build PKGBUILDs that do not explicitly support your architecture, we need to tell it to ignore such fields. ARCH=("i686", "x86_64")
It is also helpful to have makepkg
install all necessary dependencies in Pacman automatically. Therefore, the complete command is below:
makepkg -sA
AUR Helper[edit]
By design, makepkg
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 makepkg
and pacman
that adds an AUR package search and AUR dependency resolver, so that installing AUR packages is just as simple as using pacman
.
However, just as with makepkg, we need to tell packer
to ignore AUR architecture.
AUR Packages[edit]
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 _gitref
and set it to b0143ac0
, the last known good commit.