Archlinux


A - Installation Archlinux sur Raspberry Pi Model B

A.1 - Installation du systeme Achlinux sur une carte SDHD de 16Go à partir d'un linux (06/06/2013)
Téléchargement de l'OS
# pacman --noconfirm -S wget

# wget http://files.velocix.com/c1410/images/archlinuxarm/
archlinux-hf-2013-05-14/archlinux-hf-2013-05-14.img.zip

# pacman --noconfirm -S unzip

# unzip archlinux-hf-2013-05-14.img.zip


Copie de l'image sur la SDHD (/dev/sdc)
# pacman --noconfirm -S util-linux

# lsblk -p

# pacman --noconfirm -S coreutils

# dd bs=4M if=archlinux-hf-2013-05-14.img of=/dev/sdc


Agrandissement (3,4Go) du / sur la SDHD
# pacman --noconfirm -S parted

# parted /dev/sdc

(parted) unit chs

(parted) print

Modèle: TS-RDF5 SD Transcend (scsi)

Disque /dev/sdc : 486191,3,15

Table de partitions : msdos

Numéro Début    Fin        Type    Système de fichiers Fanions

1      2,0,0    2911,3,15  primary fat16               démarrage, lba

2      2912,0,0 57311,3,15 primary ext4

(parted) rm 2

(parted) mkpart primary 2912,0,0 114621,3,15

(parted) quit

# pacman --noconfirm -S e2fsprogs

# e2fsck -f /dev/sdc2

# resize2fs /dev/sdc2


A.2 - Configuration du systeme Achlinux (06/06/2013)
Connexion en ssh à partir d'un linux
# pacman --noconfirm -S openssh

# ssh -l root 192.168.x.y

The authenticity of host '192.168.x.y (192.168.x.y)' can't be established.

ECDSA key fingerprint is xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy.

Are you sure you want to continue connecting (yes/no)? 
yes

root@192.168.x.y's password: 
root

Last login: Thu Jun  6 12:07:19 2013 from 192.168.x.z


Passage en français du Raspberry Pi
# loadkeys fr-pc

Loading /usr/share/kbd/keymaps/i386/azerty/fr-pc.map.gz

# cat /etc/locale.gen | grep -v "^#"

en_GB.UTF-8 UTF-8

en_US.UTF-8 UTF-8

# cat /etc/locale.gen | grep "fr_FR.UTF"

#fr_FR.UTF-8 UTF-8

# sed -e "s/en_GB\.UTF-8 UTF-8/#en_GB\.UTF-8 UTF-8/g" -i /etc/locale.gen

# sed -e "s/en_US\.UTF-8 UTF-8/#en_US\.UTF-8 UTF-8/g" -i /etc/locale.gen

# sed -e "s/#fr_FR\.UTF-8 UTF-8/fr_FR\.UTF-8 UTF-8/g" -i /etc/locale.gen

# cat /etc/locale.gen | grep -v "^#"

fr_FR.UTF-8 UTF-8

# locale-gen

Generating locales...

  fr_FR.UTF-8... done

Generation complete.

# cat /etc/locale.conf

LANG=en_US.UTF-8

LC_COLLATE=C

# sed -e "s/en_US/fr_FR/g" -i /etc/locale.conf

# cat /etc/locale.conf

LANG=fr_FR.UTF-8

LC_COLLATE=C

# cat /etc/vconsole.conf

KEYMAP=us

FONT=lat9w-16

FONT_MAP=8859-1_to_uni

# sed -e "s/us/fr/g" -i /etc/vconsole.conf

# cat /etc/vconsole.conf

KEYMAP=fr

FONT=lat9w-16

FONT_MAP=8859-1_to_uni

# rm /etc/localtime

# ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime

Mise à jour du Raspberry Pi (se reconnecter en ssh)
Suppression du package localepurge car le chemin n'est pas /usr/bin
# pacman --noconfirm -R localepurge

# systemctl reboot


Mise à jour du Raspberry Pi (se reconnecter en ssh)
# pacman --noconfirm -Su pacman

# pacman-key --init

Attendre 2 minutes
# pacman --noconfirm -Syu --ignore filesystem,bash

# rmdir /usr/sbin

# pacman --noconfirm -S bash

# pacman --noconfirm -Syu

# pacman --noconfirm -S htop lsof iotop vim lynx lshw sudo dnsutils

# pacman --noconfirm -R syslog-ng

# pacman --noconfirm -R lvm2

# pacman --noconfirm -S localepurge

# pacman --noconfirm -Scc

# rm /etc/systemd/system/syslog.service

# rm /etc/systemd/system/multi-user.target.wants/syslog-ng.service

# echo "export LS_OPTIONS='--color=auto'" >> /etc/bash.bashrc

# echo "export EDITOR='/usr/bin/vim'" >> /etc/bash.bashrc

# echo "alias ls='ls $LS_OPTIONS'" >> /etc/bash.bashrc

# echo "alias ll='ls $LS_OPTIONS -lha'" >> /etc/bash.bashrc

# echo "alias vi='vim'" >> /etc/bash.bashrc

Atribution du nom pi au Raspberry Pi
# echo "Hostname='pi'" >> /etc/netctl/ethernet-dhcp


Suppression de l'ipv6
# echo "net.ipv6.conf.all.disable_ipv6 = 1" > /etc/sysctl.d/ipv6.conf

# echo "net.ipv6.conf.eth0.disable_ipv6=1" >> /etc/sysctl.d/ipv6.conf

# echo "net.ipv6.conf.default.disable_ipv6=1" >> /etc/sysctl.d/ipv6.conf

# echo "net.ipv6.conf.lo.disable_ipv6=1" >> /etc/sysctl.d/ipv6.conf

# sed -e "s/tty1/tty1 ipv6\.disable=1/g" -i /boot/cmdline.txt

# echo "Auth8021X='no'" >> /etc/netctl/ethernet-dhcp

# echo "IP6='no'" >> /etc/netctl/ethernet-dhcp

# echo "noipv6rs" >> /etc/dhcpcd.conf

# echo "noarp" >> /etc/dhcpcd.conf

# sed -e "s/::1/#::1/g" -i /etc/hosts

# echo "options ipv6 disable = 1" > /etc/modprobe.d/disable-ipv6.conf

# echo "alias net-pf-10 ipv6 off" >> /etc/modprobe.d/disable-ipv6.conf

# echo "alias net-pf-10 off" >> /etc/modprobe.d/disable-ipv6.conf

# echo "alias ipv6 off" >> /etc/modprobe.d/disable-ipv6.conf

# echo "install ipv6 /bin/true" >> /etc/modprobe.d/disable-ipv6.conf

# echo "install ip6table_filter /bin/true" >> /etc/modprobe.d/disable-ipv6.conf

# echo "install ip6_tables /bin/true" >> /etc/modprobe.d/disable-ipv6.conf

# echo "blacklist ipv6" >> /etc/modprobe.d/disable-ipv6.conf

# echo "blacklist ip6table_filter" >> /etc/modprobe.d/disable-ipv6.conf

# echo "blacklist ip6_tables" >> /etc/modprobe.d/disable-ipv6.conf

# sed -e "s/restrict ::1/#restrict ::1/g" -i /etc/ntp.conf

# systemctl reboot


B - Installation clavier Logitech diNovo Mini Bluetooth sur Raspberry Pi

B.1 - Installation de l'adaptateur USB bluetooth Trust 17772 - Atheros AR3011 (06/06/2013)
Se connecter en ssh sur le Raspberry Pi
# pacman --noconfirm -S bluez python2-dbus python-gobject python-dbus python2-gobject dbus-glib

# systemctl start bluetooth

# systemctl enable bluetooth

ln -s '/usr/lib/systemd/system/bluetooth.service' '/etc/systemd/system/dbus-org.bluez.service'

ln -s '/usr/lib/systemd/system/bluetooth.service' '/etc/systemd/system/bluetooth.target.wants/bluetooth.service'

# systemctl reboot

Connecter l'adaptateur USB bluetooth Trust sur l'un des 2 ports USB
Se connecter en ssh sur le Raspberry Pi
# lsusb | grep -i Bluetooth

Bus 001 Device 007: ID 0cf3:3005 Atheros Communications, Inc. AR3011 Bluetooth

# hciconfig hci0 up

# hcitool dev

Devices:

        hci0    xy:xy:xy:xy:xy:xy


B.2 - Installation du clavier Logitech diNovo Mini (06/06/2013)
Appuyer sur le bouton rouge situé derrière le clavier diNovo Mini
# hcitool scan

Scanning ...

        uv:uv:uv:uv:uv:uv       Logitech diNovo Mini

# bluez-simple-agent hci0 uv:uv:uv:uv:uv:uv

RequestPinCode (/org/bluez/360/hci0/dev_uv_uv_uv_uv_uv_uv)

Enter PIN Code: 
1234

Taper 1234 sur le clavier diNovo Mini (sans appuyer sur MAJ) et ensuite sur la touche "Entrée"
Release

New device (/org/bluez/360/hci0/dev_uv_uv_uv_uv_uv_uv)

# bluez-test-device trusted uv:uv:uv:uv:uv:uv yes

# bluez-test-input connect uv:uv:uv:uv:uv:uv


C - Installation scanner Canon LiDE 210 sur Raspberry Pi

C.1 - Installation scanner Canon LiDE 210 (06/06/2013)