Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Running Arch Linux with kernel 3.6.11-12-ARCH+ on my Raspberry Pi.

I have a Linksys wifi usb dongle (WUSB54GC v3) that is running and working after I execute the following commands:

$> sudo ifconfig wlan0 up
$> sudo iwlist scan
$> sudo iwconfig wlan0 mode managed essid myssid key "mykey" retry 7
   # Only had to do this next one the first time
$> sudo wpa_passphrase myssid "mypassword" > /etc/wpa_supplicant/wpa_supplicant.conf 
$> sudo wpa_supplicant -B -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
$> sudo dhcpcd wlan0

How do I get wifi on this device to work everytime after booting? Eventually I want to deploy it in location without a wired connection (hence the wifi), but I obviously can't do that if I have to manually start/connect the wifi everytime.

share|improve this question

migrated from serverfault.com Jun 24 '13 at 3:12

This question came from our site for system and network administrators.

Wireless is best managed via a daemon such as network-manager or wicd. – jordanm Jun 24 '13 at 3:34
Did you try this instruction to automatically connect to wireless networks: wiki.archlinux.org/index.php/Netcfg – Raza Jun 24 '13 at 4:56
netcfg is depreciated in favour of netctl (not sure if that change has been reflected in the ARM respin of Arch yet though), but yes that is the way to handle your network config. – fukawi2 Jun 24 '13 at 5:18

You should use netctl. It is the Arch Linux built in network management system. If it isn't already installed (it should be though), run pacman -Syu netctl then look in /etc/netctl. There are example configuration files in /etc/netctl/examples. To use an example, just copy it to /etc/netctl and edit it to fit your set up. So for your case, run cp /etc/netctl/example/wireless-wpa /etc/netctl/somedescriptivename then edit /etc/netctl/somedescriptivename to fit your set up.
To enable auto configuration of your wireless networks with systemd, make sure the wpa_actiond package is installed and enable the service: systemctl enable netctl-auto@wlan0.service

For more information please refer to the Netctl wiki entry.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.