You are not logged in.
Pages: 1
I'm trying to set wpa_supplicant start at the boot with netcfg but it won't work. I followed the instructions at the wiki but without success. Wireless network with WPA protection works all right but I just can't automate it to start at the boot.
As I try to load my profile with netcfg I receive the following feedback:
# netcfg wpa_supp1
/etc/network.d//wpa_supp1: line 6: unexpected EOF while looking for matching `"'
/etc/network.d//wpa_supp1: line 7: syntax error: unexpected end of file
/etc/network.d//wpa_supp1: line 6: unexpected EOF while looking for matching `"'
/etc/network.d//wpa_supp1: line 7: syntax error: unexpected end of file
I'm wondering why there are two slashes in the address while there is only one for real. How did it end up there?
wpa_supp1
CONNECTION="wireless"
DESCRIPTION="A wpa_supplicant configuration based wireless connection"
INTERFACE="wlan0"
SECURITY="wpa-config"
WPA_CONF="/etc/wpa_supplicant.conf
IP="dhcp"
rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf-8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Helsinki"
KEYMAP="fi"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(!pcspkr ath5k)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="arch"
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
wlan0="dhcp"
INTERFACES=(wlan0 !etho0)
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(wpa_supp1)
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng !network netfs crond @net-profiles)
Offline
WPA_CONF="/etc/wpa_supplicant.conf
Should be:
WPA_CONF="/etc/wpa_supplicant.conf"
Offline
Ok thanks! One error less but still no success.
Offline
Ok thanks! One error less but still no success.
When you say 'no success', do you mean that it fails connection to your wireless network?
If so, then maybe increasing the DHCP Timeout to like 60 seconds (place below code at the end of your netcfg file):
DHCP_TIMEOUT=60
If you don't mean that and you are getting an error, please provide that error in the post.
Hope this helps!
Arch linux i686 | Dell XPS m1530 | Intel Core 2 Duo 2 GHz | 3 GB RAM | 250GB HDD
Offline
Check your logs for clues during/after the connection attempt.
Offline
I mean it fails connection. Though I'm not sure does it really try connect at all. I tried look my log files but I didn't find them. /var/logs/ does not exist.
I have to set up connection manually.
[root@arch /]# ifconfig wlan0 up
[root@arch /]# iwconfig wlan0 essid ssid
[root@arch /]# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
[root@arch /]# dhcpcd wlan0
If I try to load my netcfg profile it says
[root@arch /]# netcfg wpa_suppl
:: wpa_suppl up [BUSY] Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Last edited by Cocktus (2010-02-05 11:45:49)
Offline
Firstly, for logs try /var/log/ (note singular).
Right, I thought your first error was familiar (I missed exactly the same " and put it down to my copy-paste at the time). The second I *think* I got also. You've copied /etc/network.d/examples/wireless-wpa-config haven't you? I did that and looking, it has the same missing " - which I'd not noticed before.
IIRC (it was a while ago) I added the following lines to get mine working:
ESSID="<ssid>"
WPA_OPTS="-Dwext"
Try adding those.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Did that but it didn't help me
EDIT: I also checked some log files but I didn't find anything interesting.
Last edited by Cocktus (2010-02-05 14:03:42)
Offline
What's in your /etc/wpa_supplicant.conf file (remember to delete the passkey etc.)?
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Have the same problems!!! Package is somewhat broken I guess,,,
Offline
network={
ssid="ssid"
#psk="password"
psk=<key>
}
Last edited by Cocktus (2010-02-05 16:47:19)
Offline
I installed gnome-network-manager and now it connects at boot.
Last edited by Cocktus (2010-02-05 14:33:06)
Offline
network={ ssid="ssid" #psk="password" psk=<key> }
You should remove the psk entry from your post, as that's the security key generated from the password.
You need to add the following at the top of wpa_supplicant.conf (as specified here):
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Pages: 1