1 |
On Monday 26 Sep 2011 23:08:04 Mark Knecht wrote: |
2 |
|
3 |
> My experience so far: |
4 |
> |
5 |
> 1) As discussed earlier, needing to mess with routes when changing |
6 |
> which network I'm using. Sad when both options actually point to the |
7 |
> same address. |
8 |
|
9 |
If you use ifplugd the eth0 will be activated auto-magically once a link is |
10 |
detected on wired NIC. You can even further configure it to run commands of |
11 |
your choice once it detects that a link is up (i.e. is my wlan0 up then |
12 |
configure a route otherwise not, type of thing). |
13 |
|
14 |
|
15 |
> 2) If I start with wlan0 turned off and switch to root to disable eth0 |
16 |
> and enable wlan0, I get a message that wlan0 is up but 'not active'. |
17 |
> Indeed, as a user if I start a browser it doesn't work. However, if as |
18 |
> root I ping the router I immediately get a response and then my |
19 |
> browser works fine. |
20 |
|
21 |
This is odd. Something is amiss with your configuration ... |
22 |
|
23 |
> 3) If I disable wlan0 and then reenable it it doesn't work until I |
24 |
> restart wpa_supplicant |
25 |
|
26 |
This is definitely *not* how it works here. If by disabling it you mean |
27 |
running /etc/init.d/net.wlan0 then your /etc/init.d/net.wlan0 script should |
28 |
call wpa_supplicant. You should not have to run wpa_supplicant by hand. |
29 |
|
30 |
Are you sure you are calling the correct NIC driver for wpa_supplicant in your |
31 |
/etc/init.d/net.wlan0 file? (e.g. you may need to use broadcom instead of |
32 |
wext if you are running an old broadcom card). |
33 |
|
34 |
|
35 |
> 4) So far wpa_gui cannot find any networks, or at least doesn't |
36 |
> display anything when I attempt a scan. |
37 |
|
38 |
Assuming your init.d script and wpa_supplicant is correct then iwlist wlan0 |
39 |
scanning (or scan) should be able to scan and list devices. So should wpa_cli |
40 |
-i wlan0 (run it and then enter 'scan_results' on the prompt) and of course so |
41 |
should wpa_gui. |
42 |
|
43 |
|
44 |
> I don't understand at this point how to make this work for normal |
45 |
> users. Anyone in my family of three might want to pick this laptop up |
46 |
> and go to a different part of the house, or even go out of the house |
47 |
> and use the laptop with some public network. I haven't a clue yet how |
48 |
> anyone is supposed to change networks when they aren't root. I |
49 |
> understand that flies in the face of typical Linux security, but it |
50 |
> seems to me that a well thought out wireless environment could figure |
51 |
> out how to do that, and possibly has already but I haven't found the |
52 |
> info. |
53 |
|
54 |
You can set which group is allowed to mess about with wpa_supplicant (this of |
55 |
course applies also to the wpa_cli/gui) in the |
56 |
/etc/wpa_supplicant/wpa_supplicant.conf. You can for example set: |
57 |
|
58 |
ctrl_interface_group=wheel |
59 |
|
60 |
or |
61 |
|
62 |
ctrl_interface_group=users |
63 |
|
64 |
or |
65 |
|
66 |
ctrl_interface_group=my_wlan0_users_group |
67 |
|
68 |
(this is I think commented comprehensively in your .example file and in the |
69 |
man page) |
70 |
|
71 |
> Anyway, I am THRILLED to have wireless working at all and appreciate |
72 |
> all the help I got getting there. Without question I couldn't have |
73 |
> gotten here without it. |
74 |
|
75 |
I think something is amiss with your configuration which causes the problems |
76 |
you describe above. You can contact me off list if you want to keep the noise |
77 |
down and I'll take a closer look at your settings in case I spot something. |
78 |
|
79 |
-- |
80 |
Regards, |
81 |
Mick |