1 |
----- Original Message ----- |
2 |
|
3 |
> From: Mick <michaelkintzios@×××××.com> |
4 |
> To: gentoo-user@l.g.o |
5 |
> Cc: |
6 |
> Sent: Tuesday, September 6, 2011 5:32 PM |
7 |
> Subject: Re: [gentoo-user] Wireless Configuration... |
8 |
> |
9 |
> On Tuesday 06 Sep 2011 15:24:33 BRM wrote: |
10 |
>> ----- Original Message ----- |
11 |
>> |
12 |
>> > From: Mick <michaelkintzios@×××××.com> |
13 |
>> > |
14 |
>> > On Saturday 03 Sep 2011 15:14:27 BRM wrote: |
15 |
>> >> ----- Original Message ----- |
16 |
> |
17 |
>> > I think the above should be either: |
18 |
>> > |
19 |
>> > ctrl_interface=/var/run/wpa_supplicant |
20 |
>> > ctrl_interface_group=wheel |
21 |
>> > |
22 |
>> > or, |
23 |
>> > |
24 |
>> > DIR=/var/run/wpa_supplicant GROUP=wheel |
25 |
>> |
26 |
>> Ok. Corrected that to the first one. |
27 |
> |
28 |
> Fine. I note that you said the wpa_gui won't scan further down this thread, |
29 |
> |
30 |
> just in case ... is your user part of the wheel group? |
31 |
> |
32 |
>> >> #ctrl_interface_group=wheel |
33 |
>> >> ap_scan=1 |
34 |
>> >> fast_reauth=1 |
35 |
>> >> # This blank configuration will automatically use DHCP for any |
36 |
> net.* |
37 |
>> >> # scripts in /etc/init.d. To create a more complete |
38 |
> configuration, |
39 |
>> >> # please review /etc/conf.d/net.example and save your |
40 |
> configuration |
41 |
>> >> # in /etc/conf.d/net (this file :]!). |
42 |
>> >> |
43 |
>> >> # Standard Network: |
44 |
>> >> config_eth0=( "dhcp" ) |
45 |
>> > |
46 |
>> > The old syntax you use here, which was ( "value" ) is now |
47 |
> deprecated. |
48 |
>> > You |
49 |
>> > should replace all such entries by removing the brackets, e.g. the |
50 |
> above |
51 |
>> > becomes: |
52 |
>> > |
53 |
>> > config_eth0="dhcp" |
54 |
>> > |
55 |
>> > This is explained in: |
56 |
> http://www.gentoo.org/doc/en/openrc-migration.xml |
57 |
>> |
58 |
>> Corrected that one too. eth0 was working fine though. |
59 |
> |
60 |
> Yes, because eth0 will default to dhcp, after the old syntax you were using |
61 |
> errors out or is ignored. |
62 |
> |
63 |
> |
64 |
>> > modules="wpa_supplicant" |
65 |
>> > wpa_supplicant_wlan0="-Dwext" |
66 |
>> > config_wlan0="dhcp" |
67 |
>> |
68 |
>> I re-enabled those and added the last line. |
69 |
> |
70 |
> OK, wpa_supplicant should now work as intended. |
71 |
> |
72 |
> |
73 |
>> > You need to add or uncomment the following to your |
74 |
> wpa_supplicant.conf: |
75 |
>> > ===================== |
76 |
>> > network={ |
77 |
>> > key_mgmt=NONE |
78 |
>> > priority=0 |
79 |
>> > } |
80 |
>> > ===================== |
81 |
>> > The above will let latch on the first available AP. |
82 |
>> |
83 |
>> I wasn't sure that that one was for. I've re-enabled it and the |
84 |
> original |
85 |
>> one for my network. |
86 |
> |
87 |
> OK, this is useful for open AP which accept connections. If they need |
88 |
> encryption you can add this using the wpa_gui. |
89 |
> |
90 |
> |
91 |
>> > Also, you can then add any AP of preference with passphrases and what |
92 |
>> > not: ===================== |
93 |
>> > # Home Network |
94 |
>> > network={ |
95 |
>> > ssid="MY-NETWORK" |
96 |
>> > # key_mgmt=IEEE8021X <--You don't need these entries |
97 |
> here, unless |
98 |
>> > # eap=TLS <--you run SSL certs for authentication |
99 |
>> > wep_key0=DEADBEAF0123456789ABCDEF000 |
100 |
>> > priority=1 |
101 |
>> > auth_alg=OPEN |
102 |
>> > } |
103 |
>> > ===================== |
104 |
>> |
105 |
>> Interestingly, wpa_supplicant complains if those two lines are not there |
106 |
>> even though I am not doing SSL auth. |
107 |
> |
108 |
> Hmm ... what is the error/warning that comes up? |
109 |
|
110 |
pneumo-martyr wpa_supplicant # /etc/init.d/net.wlan0 start |
111 |
* Bringing up interface wlan0 |
112 |
* Starting wpa_supplicant on wlan0 ... |
113 |
Line 17: WPA-PSK accepted for key management, but no PSK configured. |
114 |
Line 17: failed to parse network block. |
115 |
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'. |
116 |
* start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant' [ !! ] |
117 |
* ERROR: net.wlan0 failed to start |
118 |
|
119 |
|
120 |
> Either way, can you please add: |
121 |
> |
122 |
> eapol_version=1 |
123 |
|
124 |
Done. |
125 |
|
126 |
>> > and something like this for WPA2: |
127 |
>> > ===================== |
128 |
>> > network={ |
129 |
>> > ssid="what-ever" |
130 |
>> > proto=RSN |
131 |
>> > key_mgmt=WPA-PSK |
132 |
>> > pairwise=CCMP |
133 |
>> > auth_alg=OPEN |
134 |
>> > group=CCMP |
135 |
>> > psk"pass_123456789" |
136 |
>> > priority=5 |
137 |
>> > ===================== |
138 |
>> |
139 |
>> I want to try to get away from adding things directly to the |
140 |
>> wpa_supplicant.conf file as I would rather that the connection information |
141 |
>> be managed by a GUI tool. |
142 |
> |
143 |
> You should be able to add such details in the GUI of choice. Adding them in |
144 |
> wpa_supplicant.conf means that they should appear already filled in the GUI. |
145 |
> |
146 |
> |
147 |
>> I'd rather use the NetworkManager in KDE than wpa_gui. |
148 |
>> |
149 |
>> That said, NetworkManager in KDE seems to be using wicd for some reason. |
150 |
> |
151 |
> You need someone else to chime in here, because I use neither of these. As |
152 |
> far as I read in this M/L wicd is more or less fool-proof. |
153 |
> |
154 |
>> I also have KDE running under Kubuntu on my work computer (4.6.2) and the |
155 |
>> Network Manager is completely different (don't know why) - it's not |
156 |
> wicd |
157 |
>> as far as I can tell. |
158 |
>> |
159 |
>> However, They are still not working. wpa_gui refuses to scan and find |
160 |
>> networks; while wicd is not finding networks either - but there's so |
161 |
>> little information in the GUI that it is practically useless to say why. |
162 |
>> Perhaps I've got something at the KDE layer screwed up? |
163 |
> |
164 |
> I don't know if one is causing a clash with the other, so don't try to |
165 |
> use |
166 |
> both at the same time. If wicd is started automatically when you boot/login, |
167 |
> then just use that. |
168 |
> |
169 |
> When wpa_gui refuses to scan what message do you get? What do the logs say. |
170 |
> |
171 |
> Also, if wpa_gui or wicd fail to scan for APs what do you get from: |
172 |
> |
173 |
> # iwlist wlan0 scanning |
174 |
|
175 |
Simply returns: |
176 |
|
177 |
wlan0 No scan results |
178 |
|
179 |
It also returns "0". I have wlan0 logs directed to /var/log/net/wireless, here's the output from the last attempt: |
180 |
|
181 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): driver supports SSID scans (scan_capa 0x01). |
182 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): new 802.11 WiFi device (driver: 'b43legacy') |
183 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1 |
184 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): now managed |
185 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): device state change: 1 -> 2 (reason 2) |
186 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): bringing up device. |
187 |
Sep 7 23:01:43 pneumo-martyr kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready |
188 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): preparing device. |
189 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): deactivating device (reason: 2). |
190 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): supplicant interface state: starting -> ready |
191 |
Sep 7 23:01:43 pneumo-martyr NetworkManager: <info> (wlan0): device state change: 2 -> 3 (reason 42) |
192 |
|
193 |
That's about as far as I have been able to get tonight. |
194 |
|
195 |
Ben |