Take the 2-minute tour ×
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.

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
    
Wireless is best managed via a daemon such as network-manager or wicd. –  jordanm Jun 24 '13 at 3:34
1  
Did you try this instruction to automatically connect to wireless networks: wiki.archlinux.org/index.php/Netcfg –  Salton Jun 24 '13 at 4:56
2  
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
add comment

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

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

1 Answer

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
add comment

Your Answer

 
discard

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.