Difference between revisions of "Raspberry Pi"

From ArchWiki
Jump to: navigation, search
Line 1: Line 1:
 
{{Note|Support for the ARM architecture is provided on http://archlinuxarm.org/ }}
 
{{Note|Support for the ARM architecture is provided on http://archlinuxarm.org/ }}
= Introduction =
+
=Introduction=
  
 
How mature is Raspberry Pi (RPI). A brief overview.
 
How mature is Raspberry Pi (RPI). A brief overview.
  
What is == Raspberry Pi ==
+
What is ==Raspberry Pi==
  
 
It is a minimalist computer built for ARMv6 architecture. More information about this project can be found on http://www.raspberrypi.org/ and technical specification to: http://cz.farnell.com/raspberry-pi?ref=lookahead
 
It is a minimalist computer built for ARMv6 architecture. More information about this project can be found on http://www.raspberrypi.org/ and technical specification to: http://cz.farnell.com/raspberry-pi?ref=lookahead
  
== Installing Arch Linux ARM ==
+
==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.
 
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.
  
Backup Cards === ===
+
==Backup Cards==  
 
If you own an official card provided with your RPI, for example http://cz.farnell.com/samsung/raspberry-pi-prog-4gb-sdcard/memory-sdcard-raspberry-pi-4gb/dp/2113756 recommend before installing Arch ARM Linux to backup using {{ic | dd}}. The path must be specified to the device {{ic | / dev / sdX}} not for another partition / dev/sdc1
 
If you own an official card provided with your RPI, for example http://cz.farnell.com/samsung/raspberry-pi-prog-4gb-sdcard/memory-sdcard-raspberry-pi-4gb/dp/2113756 recommend before installing Arch ARM Linux to backup using {{ic | dd}}. The path must be specified to the device {{ic | / dev / sdX}} not for another partition / dev/sdc1
  
Line 22: Line 22:
 
{{Warning | Bad enter if and of prarmetru can damage your data.}}
 
{{Warning | Bad enter if and of prarmetru can damage your data.}}
  
== == Installation == ==
+
==Installation==
  
 
Installation is similar to backing card. Download the image file from Arch Linux ARM http://archlinuxarm.org/platforms/armv6/raspberry-pi
 
Installation is similar to backing card. Download the image file from Arch Linux ARM http://archlinuxarm.org/platforms/armv6/raspberry-pi
Line 31: Line 31:
 
After inserting the card into the slot on the PPi should boot the base system Arch Linux ARM.
 
After inserting the card into the slot on the PPi should boot the base system Arch Linux ARM.
  
== == Home == ==
+
==Home==
  
 
The downloaded image file is approximately 2 gigabytes of which is / boot and 94 megabytes / 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 {{ic | / etc / fstab}}
 
The downloaded image file is approximately 2 gigabytes of which is / boot and 94 megabytes / 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 {{ic | / etc / fstab}}
Line 46: Line 46:
 
Summary:
 
Summary:
  
== == Remote SSH access == ==
+
==Remote SSH access==
  
 
If you do not use the HDMI output RPI and you will access the device using SSH, the following applies.
 
If you do not use the HDMI output RPI and you will access the device using SSH, the following applies.
Line 53: Line 53:
 
  ~ Ssh root@192.168.1.123 (Use your Ip RPI)
 
  ~ Ssh root@192.168.1.123 (Use your Ip RPI)
  
== == Localization == ==
+
==Localization==
  
 
  # Vim / etc / locale.gen
 
  # Vim / etc / locale.gen
Line 63: Line 63:
 
  # Locale-gen
 
  # Locale-gen
  
== Setting the time and date using OpenNTP ==
+
==Setting the time and date using OpenNTP==
  
 
dopnit
 
dopnit
  
== Setting the time and date manually ==
+
==Setting the time and date manually==
  
 
complete
 
complete
  
== == Changing the root password == ==
+
==Changing the root password==
 
After the first start RPI is nastaveho root password to root. It is therefore necessary to change it. Executed after power command {{ic | passwd}}
 
After the first start RPI is nastaveho root password to root. It is therefore necessary to change it. Executed after power command {{ic | passwd}}
  
 
  # Passwd root
 
  # Passwd root
  
== == Adding another user == ==  
+
==Adding another user==
 
Ic using {{|}} adduser to add the user.
 
Ic using {{|}} adduser to add the user.
  
 
  # Adduser
 
  # Adduser
  
== == Sudo == ==
+
==Sudo==
 
Start ic {{|}} visudo
 
Start ic {{|}} visudo
  
Line 88: Line 88:
 
add the line "USER ALL = (ALL) ALL" below the line root ALL = (ALL) ALL
 
add the line "USER ALL = (ALL) ALL" below the line root ALL = (ALL) ALL
  
== Installing programs and environment ==
+
==Installing programs and environment==
  
 
Below is a brief overview of the basic packages and procedures that are initially desolation RPI could come in handy.
 
Below is a brief overview of the basic packages and procedures that are initially desolation RPI could come in handy.
  
== == Search == ==
+
==Search==
  
 
To search for files and folders on the disc serves [[mlocate]].
 
To search for files and folders on the disc serves [[mlocate]].
Line 102: Line 102:
 
  # Updatedb
 
  # Updatedb
  
== == Shell == ==
+
==Shell==
 
For work I recommend [[zsh]].
 
For work I recommend [[zsh]].
  
Line 115: Line 115:
 
  / Bin / zsh
 
  / Bin / zsh
  
== ==Graphical environment == ==
+
==Graphical environment==
  
 
You need to install X server [[xorg]]:
 
You need to install X server [[xorg]]:
Line 146: Line 146:
 
  exec ck-launch-session dbus-launch startlxde
 
  exec ck-launch-session dbus-launch startlxde
  
== ==Running LXDE environment:== ==
+
==Running LXDE environment:==
  
 
  startx
 
  startx

Revision as of 13:10, 22 October 2012

Note: Support for the ARM architecture is provided on http://archlinuxarm.org/

Introduction

How mature is Raspberry Pi (RPI). A brief overview.

What is ==Raspberry Pi==

It is a minimalist computer built for ARMv6 architecture. More information about this project can be found on http://www.raspberrypi.org/ and technical specification to: http://cz.farnell.com/raspberry-pi?ref=lookahead

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.

Backup Cards

If you own an official card provided with your RPI, for example http://cz.farnell.com/samsung/raspberry-pi-prog-4gb-sdcard/memory-sdcard-raspberry-pi-4gb/dp/2113756 recommend before installing Arch ARM Linux to backup using dd. The path must be specified to the device / dev / sdX not for another partition / dev/sdc1

# Dd if = / path / to / sdX of = / home / $ USER / backup_RPi.img


Note: There is a bit copy of the card. The resulting file is the same size as your card.
Note: card may not be installed.
Warning: Bad enter if and of prarmetru can damage your data.

Installation

Installation is similar to backing card. Download the image file from Arch Linux ARM http://archlinuxarm.org/platforms/armv6/raspberry-pi Image copy using dd.

# 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.

Home

The downloaded image file is approximately 2 gigabytes of which is / boot and 94 megabytes / 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 / etc / fstab

# Sudo vim / etc / fstab

For example, add

/ Dev/mmcblk0p3 / home ext4 defaults 0 0

The first operation == ==

The official procedure here: http://archlinuxarm.org/support/guides/system/first-steps Summary:

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. Dopročuji perform key exchange SSH_Keys.

~ Ssh root@192.168.1.123 (Use your Ip RPI)

Localization

# Vim / etc / locale.gen

uncomment en_US.UTF-8 UTF-8 and en_US ISO-8859-2

generate localization files

# Locale-gen

Setting the time and date using OpenNTP

dopnit

Setting the time and date manually

complete

Changing the root password

After the first start RPI is nastaveho root password to root. It is therefore necessary to change it. Executed after power command passwd

# Passwd root

Adding another user

Ic using {{|}} adduser to add the user.

# Adduser

Sudo

Start ic {{|}} visudo

# 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.

Search

To search for files and folders on the disc serves mlocate.

# Pacman-S mlocate

after installation, you must restore the database

# Updatedb

Shell

For work I recommend zsh.

# Pacman-S zsh

run

$ Chsh

and set

/ Bin / zsh

Graphical environment

You need to install X server xorg:

# Pacman-S xorg-server xorg-xinit xorg-server-utils xinit xterm xorg-

Mesa

# Pacman-S mesa

Video card drivers xf-video

# Pacman-SYF xf86-video-fbdev


Which is connected with gamin and dbus

# Pacman-S dbus gamin

Graphical environment LXDE:

# Pacman lxde

further into the set ~ /. xinitrc add the following line:

$ Vim ~ /. Xinitrc (if they do not root)

insert

exec ck-launch-session dbus-launch startlxde

Running LXDE environment:

startx