How mature is Raspberry Pi (RPI). A brief overview.
- 1 What is Raspberry Pi
- 2 Installing Arch Linux ARM
- 3 The first operation
- 4 Installing programs and environment
What is Raspberry Pi
Installing Arch Linux ARM
In this manual will describe only essential moments for different RPI. Other procedures are the same instructions for ArchLinux. The only exception is the basic initialization and installation of equipment. It is further assumed that the configuration is performed on a machine running Archlinux.
If you own an official card provided with your RPI (for example) recommend before installing Arch ARM Linux to backup using
dd. The path must be specified to the device
/dev/sdX not for another partition
# dd if=/dev/sdX of=$HOME/backup_RPi.img
Installation is similar to backing card. Download the image file from Arch Linux ARM
# dd bs=1M if=/path/to/archlinux.img of=/dev/sdX
After inserting the card into the slot on the PPi should boot the base system Arch Linux ARM.
The downloaded image file is approximately 2 gigabytes of which is /boot 94 megabytes and / 1.8 gigabytes. If you used a larger card to 2GB, so I recommend the rest of the card to connect as /home (or /usr). Clearance must be formatted using the example Gparted. At the first possible opportunity (after booting RPI or after mounting the card in the computer) need to be adjusted
# sudo vim /etc/fstab
For example, add
/dev/mmcblk0p3 / home ext4 defaults 0 0
The first operation
Summary of the official procedure:
Remote SSH access
If you do not use the HDMI output RPI and you will access the device using SSH, the following applies.
Root pasword is:
root. I recommend to perform key exchange SSH_Keys.
$ ssh email@example.com (Use your Ip RPI)
# vim /etc/locale.gen
en_US.UTF-8 UTF-8 and
generate localization files
Setting the time and date using OpenNTP
Setting the time and date manually
Changing the root password
After the first start RPI is native root password to root. It is therefore necessary to change it. Executed after power command
# passwd root
Adding another user
adduser to add the user.
# sudo visudo
add the line "USER ALL = (ALL) ALL" below the line root ALL = (ALL) ALL
Installing programs and environment
Below is a brief overview of the basic packages and procedures that are initially desolation RPI could come in handy.
To search for files and folders on the disc serves mlocate.
# pacman-S mlocate
after installation, you must restore the database
For work I recommend zsh.
# pacman-S zsh
You need to install X server xorg:
# pacman -S xorg-server xorg-xinit xorg-server-utils xinit xterm xorg-xinit
# pacman -S mesa
Video card drivers xf-video
# pacman-SYF xf86-video-fbdev
# pacman-S dbus gamin
Graphical environment LXDE:
# pacman -S lxde
further into the set
~/.xinitrc add the following line:
$ vim ~ /.Xinitrc (if they do not root)
exec ck-launch-session dbus-launch startlxde
Running LXDE environment