Arch Linux ARM: Network tools missing

wifi-menu

wifi-menu

The newest Arch Linux ARM image for the OLinuXino (http://archlinuxarm.org/platforms/armv5/olinuxino) ships without the tools needed to configure a wireless connection.

Why?

Other people are experiencing the same problem, why remove such fundamental tools, and the hint pacman -S wireless_tools is not very helpful if you have no internet connection.

So how should I install additional tools if can’t setup an internet connection.

Let’s try to download them on another PC, copy them to the SD card and then install them on the OLinuXino.

On your PC:

[chris@thinkpad ~]$ wget http://os.archlinuxarm.org/arm/core/wireless_tools-29-8-arm.pkg.tar.xz
[chris@thinkpad ~]$ wget http://os.archlinuxarm.org/arm/core/wpa_supplicant-2.0-4-arm.pkg.tar.xz
[chris@thinkpad ~]$ wget http://os.archlinuxarm.org/arm/core/netctl-1.4-2-any.pkg.tar.xz
[chris@thinkpad ~]$ wget http://os.archlinuxarm.org/arm/core/dialog-1%3a1.2_20130928-1-arm.pkg.tar.xz
[chris@thinkpad ~]$ sudo mkdir /mnt/olinuxino/
[chris@thinkpad ~]$ sudo mount /dev/mmcblk0p2 /mnt/olinuxino/
[chris@thinkpad ~]$ sudo mv *.tar.xz /mnt/olinuxino/root/
[chris@thinkpad ~]$ sudo ls -la /mnt/olinuxino/root/
total 700
drwxr-x---.  2 root  root    4096 Dec  1 14:20 .
drwxr-xr-x. 17 root  root    4096 Aug  7 23:19 ..
-rw-------.  1 root  root     233 Jan  1  1970 .bash_history
-rw-rw-r--.  1 chris chris 172552 Oct 24 12:03 dialog-1:1.2_20130928-1-arm.pkg.tar.xz
-rw-rw-r--.  1 chris chris  33484 Dec  1 14:17 netctl-1.4-2-any.pkg.tar.xz
-rw-rw-r--.  1 chris chris  84860 Dec  1 14:16 wireless_tools-29-8-arm.pkg.tar.xz
-rw-rw-r--.  1 chris chris 390620 Jun  4 04:58 wpa_supplicant-2.0-4-arm.pkg.tar.xz
[chris@thinkpad ~]$ sudo umount /mnt/olinuxino

On the OLinuXino:

Arch Linux 3.12.0-dirty (ttyAMA0)

alarm login: root
Password:
Last login: Wed Dec 31 17:02:28 on ttyAMA0
[root@alarm ~]# ls
dialog-1:1.2_20130928-1-arm.pkg.tar.xz  wireless_tools-29-8-arm.pkg.tar.xz
netctl-1.4-2-any.pkg.tar.xz             wpa_supplicant-2.0-4-arm.pkg.tar.xz
[root@alarm ~]# pacman -U *.tar.xz
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (5): libnl-3.2.22-1  dialog-1:1.2_20130928-1  netctl-1.4-2
              wireless_tools-29-8  wpa_supplicant-2.0-4

Total Download Size:    0.19 MiB
Total Installed Size:   3.39 MiB
Net Upgrade Size:       3.23 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
error: failed retrieving file 'libnl-3.2.22-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : Could not resolve host: mirror.archlinuxarm.org
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.
[root@alarm ~]#

OK, back to the PC, download the missing libnl-3.2.22-1-arm.pkg.tar.xz and try it again.

[chris@thinkpad ~]$ wget http://os.archlinuxarm.org/arm/core/libnl-3.2.22-1-arm.pkg.tar.xz
[root@alarm ~]# pacman -U *.tar.xz
loading packages...
resolving dependencies...
looking for inter-conflicts...

Packages (5): dialog-1:1.2_20130928-1  libnl-3.2.22-1  netctl-1.4-2
              wireless_tools-29-8  wpa_supplicant-2.0-4

Total Installed Size:   3.39 MiB
Net Upgrade Size:       3.23 MiB

:: Proceed with installation? [Y/n] y
(5/5) checking keys in keyring                     [######################] 100%
(5/5) checking package integrity                   [######################] 100%
(5/5) loading package files                        [######################] 100%
(5/5) checking for file conflicts                  [######################] 100%
(5/5) checking available disk space                [######################] 100%
(1/5) installing dialog                            [######################] 100%
(2/5) installing libnl                             [######################] 100%
(3/5) upgrading netctl                             [######################] 100%
(4/5) installing wireless_tools                    [######################] 100%
(5/5) installing wpa_supplicant                    [######################] 100%
Optional dependencies for wpa_supplicant
    wpa_supplicant_gui: wpa_gui program
[root@alarm ~]#

Now you can use wifi-menu to configure your wireless network, it scans for available networks, just select one and enter your password.

[root@alarm ~]# wifi-menu