Archlinux/Raspberry Pi - Issues, Notes and Links

Known issues

Pacman -Syu failed

Symtom

command: pacman -Syu
    error: failed to initialize alpm library
    (database is incorrect version: /var/lib/pacman/)
    error: try running pacman-db-upgrade

****************************************

command: pacman-db-upgrade
    ==> ERROR: You must have correct permissions to upgrade the database.

Reason:

The system is executet in read-only mode, to change this you …

Continue reading »

Archlinux/Raspberry Pi - Network Bridge

Setup a network bridge under archlinux

Archlinux Wiki - Network Bridge

#Connects eth0 and eth1 to a bridge
sudo brctl addbr br0
sudo brctl addif br0 eth0
sudo brctl addif br0 eth1
brctl show
sudo ip link set up dev br0

Attention: the network connection from the used devices will stop …

Continue reading »

Archlinux/Raspberry Pi - Einrichtung UMTS Stick XS Stick P10

Am einfachsten können wir ein Script benutzen, dass nahezu alle UMTS Sticks unterstützt, so auch den XS Stick P10 von Callmobile (Amazon 10-15€).

USB_SWITCHMODE

Wenn der Stick angesteckt ist, schauen wir zunächst ob er erkannt wurde

lsusb
    Bus 001 Device 005: ID 7392:7811 Edimax ...
    Bus 001 Device 004: ID …

Continue reading »

Archlinux/Raspberry Pi - Systemd create a service unit

General example

/etc/systemd/system/testunit.service
[Unit]
Description=Start Pi Router
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
ExecStart=/sbin/testscript.sh start
ExecStop=/sbin/testscript.sh stop
/sbin/testscript.sh
#!/bin/sh

echo $(date "+%Y.%m.%d-%H.%M.%S") $*>>/var/log/test_tmp.log
/sbin/testscript2.sh
#!/bin …

Continue reading »

Archlinux/Raspberry Pi - Wifi connection

WLAN connection with EDiMAX EW-7811Un

Installation

#Installation Stick
pacman -Sy dkms-8192cu

#Verbindung herstellen
wpa_passphrase SSID PASSWORD > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B

#Aktiviere DHCP Client
dhcpcd wlan0

Kill connection:

killall wpa_supplicant

Quellen

Continue reading »