RPi:ArchLinuxOld: Difference between revisions

From Wiki³
Line 15: Line 15:


= Initial Boot & Configuration =
= Initial Boot & Configuration =
== System Update ==
First we need to update the system to make sure everything is current. Login to the system using the {{Mono|root}} account with the default password of {{Mono|root}} and run {{Mono|[https://www.archlinux.org/pacman/pacman.8.html pacman]}} to update the system. After this it is safe to reboot to enact the changes.
First we need to update the system to make sure everything is current. Login to the system using the {{Mono|root}} account with the default password of {{Mono|root}} and run {{Mono|[https://www.archlinux.org/pacman/pacman.8.html pacman]}} to update the system. After this it is safe to reboot to enact the changes.


Line 26: Line 27:


{{Code|systemctl reboot}}
{{Code|systemctl reboot}}
== Configuration ==


Upon login you should be able to see that you are now running the latest available kernel version. I now take the time to setup the actual system itself as if you just rebooted into a fresh Arch Linux installation.
Upon login you should be able to see that you are now running the latest available kernel version. I now take the time to setup the actual system itself as if you just rebooted into a fresh Arch Linux installation.
=== Hostname ===


Begin by setting the hostname. I will be using the hostname {{Mono|archey}}.
Begin by setting the hostname. I will be using the hostname {{Mono|archey}}.


{{Code|hostnamectl set-hostname archey}}
{{Code|hostnamectl set-hostname archey}}
=== Timezone ===


Set the timezone. For me this is {{Mono|US/Pacific}}.
Set the timezone. For me this is {{Mono|US/Pacific}}.


{{Code|timedatectl set-timezone US/Pacific}}
{{Code|timedatectl set-timezone US/Pacific}}
=== Locale ===


Setup the appropriate locale. First edit the {{Mono|/etc/locale.gen}} file and un-comment the lines that correspond to your language selection. Generate the needed locales, set you keymap and finally set the with the system.
Setup the appropriate locale. First edit the {{Mono|/etc/locale.gen}} file and un-comment the lines that correspond to your language selection. Generate the needed locales, set you keymap and finally set the with the system.
Line 48: Line 57:


{{Code|localectl set-locale LANG{{=}}"en_US.UTF-8"}}
{{Code|localectl set-locale LANG{{=}}"en_US.UTF-8"}}
=== Time/Date Syncing ===


Finally we can install and enable {{Mono|ntp}}. This is not required but as the RPi does not have a hardware clock it is useful to use a time syncing service.
Finally we can install and enable {{Mono|ntp}}. This is not required but as the RPi does not have a hardware clock it is useful to use a time syncing service.

Revision as of 09:50, 11 September 2013

Image SD Card

Download and image your SD Card with the image located at Arch Linux ARM.

Linux

dd bs=1M if=/path/to/archlinux-hf-2013-07-22.img of=/dev/sdX

Windows

Download and install Win32DiskImager.

Initial Boot & Configuration

System Update

First we need to update the system to make sure everything is current. Login to the system using the root account with the default password of root and run pacman to update the system. After this it is safe to reboot to enact the changes.

pacman -Syu

systemctl reboot

Now that the system is up to date we can install packer and update the RPi firmware/kernel to the latest version. In addition to this we will be installing arm-mem which are ARM-accelerated versions of selected functions from string.h. Then again reboot the machine to enact the changes.

pacman -S packer arm-mem-git linux-headers-raspberrypi-latest linux-raspberrypi-latest vim

systemctl reboot

Configuration

Upon login you should be able to see that you are now running the latest available kernel version. I now take the time to setup the actual system itself as if you just rebooted into a fresh Arch Linux installation.

Hostname

Begin by setting the hostname. I will be using the hostname archey.

hostnamectl set-hostname archey

Timezone

Set the timezone. For me this is US/Pacific.

timedatectl set-timezone US/Pacific

Locale

Setup the appropriate locale. First edit the /etc/locale.gen file and un-comment the lines that correspond to your language selection. Generate the needed locales, set you keymap and finally set the with the system.

vim /etc/locale.gen

Iconen_US ISO-8859-1 en_US.UTF-8

locale-gen

localectl set-keymap us

localectl set-locale LANG="en_US.UTF-8"

Time/Date Syncing

Finally we can install and enable ntp. This is not required but as the RPi does not have a hardware clock it is useful to use a time syncing service.

pacman -S ntp

systemctl enable ntp