Arch linux on raspberry pi April 27

Quick memo for a setup process for arch linux arm on rpi with a wireless adapter:

  1. Plugin the ethenet cable into rpi. Verify the wireless adapter is recognized by the kernel using lsusb:

     [root@alarmpi ~]# lsusb
     Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
     Bus 001 Device 004: ID 050d:945a Belkin Components F7D1101 v1 Basic Wireless Adapter [Realtek RTL8188SU]
    
  2. Update the system: pacman -Syu

  3. Install the base system and vim, netctl is the replcaement for the netcfg package: packman -S base-devel vim netctl
  4. Following is just a replica of contents in arch wiki: cp /etc/netctl/examples/wireless-wpa /etc/netctl
  5. Editing the netctl/wireless-wpa file: vim /etc/netctl/wireless-wpa

     ESSID='yourssid'
     Key='yourpassword'
    
  6. Testing the connection: netctl start wireless-wpa

  7. See the logs: netctl status wireless-wpa

     [root@alarmpi netctl]# netctl status wireless-wpa
     netctl@wireless\x2dwpa.service - Networking for netctl profile wireless-wpa
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
     Active: active (exited) since Sat 2013-04-27 07:56:54 BST; 7s ago
     Docs: man:netctl.profile(5)
     Process: 716 ExecStart=/usr/lib/network/network start %I (code=exited, status=0/SUCCESS)
     CGroup: name=systemd:/system/netctl@.service/wireless\x2dwpa
        ├─ 735 wpa_supplicant -B -P /run/wpa_supplicant_wlan0.pid -i wlan0...
        └─1066 dhcpcd -qL -t 10 wlan0`
    
  8. Add entry into systemd: netctl enable wireless-wpa

  9. Unplug the cable and testing the wireless connection!!!