Gentoo Archives: gentoo-user

From: BRM <bm_witness@×××××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Wireless Configuration...
Date: Tue, 06 Sep 2011 14:25:59
Message-Id: 1315319073.62993.YahooMailNeo@web39313.mail.mud.yahoo.com
In Reply to: Re: [gentoo-user] Wireless Configuration... by Mick
1 ----- Original Message -----
2
3 > From: Mick <michaelkintzios@×××××.com>
4 > On Saturday 03 Sep 2011 15:14:27 BRM wrote:
5 >> ----- Original Message -----
6 >> > Assuming that you have built in your kernel or loaded the driver
7 > module
8 >> > for your NIC and any firmware blobs have also been loaded, please
9 > show:
10 >>
11 >> Yes. As I noted, it's worked before. The driver loads it find the
12 > firmware,
13 >> etc. Configuration information is below.
14 >>  
15 >>
16 >> > /etc/conf.d/net
17 >>
18 >> # This is a network block that connects to any unsecured access point.
19 >> # We give it a low priority so any defined blocks are preferred.
20 >> ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
21 >
22 > I think the above should be either:
23 >
24 >   ctrl_interface=/var/run/wpa_supplicant
25 >   ctrl_interface_group=wheel
26 >
27 > or,
28 >
29 >   DIR=/var/run/wpa_supplicant GROUP=wheel
30
31 Ok. Corrected that to the first one.
32  
33 >> #ctrl_interface_group=wheel
34 >> ap_scan=1
35 >> fast_reauth=1
36 >> # This blank configuration will automatically use DHCP for any net.*
37 >> # scripts in /etc/init.d.  To create a more complete configuration,
38 >> # please review /etc/conf.d/net.example and save your configuration
39 >> # in /etc/conf.d/net (this file :]!).
40 >>
41 >> # Standard Network:
42 >> config_eth0=( "dhcp" )
43
44 > The old syntax you use here, which was ( "value" ) is now deprecated. 
45 > You
46 > should replace all such entries by removing the brackets, e.g. the above
47 > becomes:
48 >
49 > config_eth0="dhcp"
50 >
51 > This is explained in: http://www.gentoo.org/doc/en/openrc-migration.xml
52
53 Corrected that one too. eth0 was working fine though.
54  
55 >> dns_domain_lo="coal"
56 >> # Wireless Network:
57 >> # TBD
58 >> #config_wlan0 ( "wpa_supplicant" )
59 >> #
60 >>
61 >> # Enable this to use WPA supplicant; however, need to change the
62 >> configuration of the Wireless first. modules=( "!plug"
63 > "!iwconfig"
64 >> "wpa_supplicant" )
65 >> #modules=( "!plug" "wpa_supplicant" )
66 >> #modules=("iwconfig")
67 >> #wpa_supplicant_wlan0="-Dwext"
68 >> #wpa_timeout_wlan0=15
69 >>
70 >> #modules=("iwconfig")
71 >> #iwconfig_wlan0="mode managed"
72 >> #wpa_timeout_wlan0=15
73 >
74 > You should also add something like:
75 >
76 > modules="wpa_supplicant"
77 > wpa_supplicant_wlan0="-Dwext"
78 > config_wlan0="dhcp"
79
80 I re-enabled those and added the last line.
81  
82 >
83 >> > and
84 >> >
85 >> > grep ^[^#] /etc/wpa_supplicant/wpa_supplicant.conf
86 >>
87 >> ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
88 >> ap_scan=1
89 >> fast_reauth=1
90 >> country=US
91 >>
92 >> # Home Network
93 >> #network={
94 >> #      ssid="MY-NETWORK"
95 >> #      key_mgmt=IEEE8021X
96 >> #      eap=TLS
97 >> #      wep_key0=DEADBEAF0123456789ABCDEF000
98 >> #      priority=1
99 >> #      auth_alg=SHARED
100 >> #}
101 >> #
102 >> #network={
103 >> #      key_mgmt=NONE
104 >> #      priority=-9999999
105 >> #}
106 >>
107 >> The network information is commented out as I was trying to get it to work
108 >> with the normal user-space tools (e.g. Network Manager); however, it is no
109 >> longer working in that configuration either. It doesn't seem to ever
110 > get
111 >> to doing the SCAN portion of trying to find networks.
112 >>
113 >> I can see wlan0 in wpa_gui, but I can't get it to scan at all. And
114 > I'd much
115 >> rather use Network Manager if I could over wpa_gui; but it doesn't even
116 >> see wlan0 (it happily finds eth0, my wired NIC.)
117 >>
118 >> Ben
119 >
120 > You need to add or uncomment the following to your wpa_supplicant.conf:
121 > =====================
122 > network={
123 >         key_mgmt=NONE
124 >         priority=0
125 > }
126 > =====================
127 > The above will let latch on the first available AP.
128
129 I wasn't sure that that one was for. I've re-enabled it and the original one for my network.
130  
131 > Also, you can then add any AP of preference with passphrases and what not:
132 > =====================
133 > # Home Network
134 > network={
135 >       ssid="MY-NETWORK"
136 > #      key_mgmt=IEEE8021X  <--You don't need these entries here, unless
137 > #      eap=TLS            <--you run SSL certs for authentication
138 >       wep_key0=DEADBEAF0123456789ABCDEF000
139 >       priority=1
140 >       auth_alg=OPEN
141 > }
142 > =====================
143
144 Interestingly, wpa_supplicant complains if those two lines are not there even though I am not doing SSL auth.
145  
146 > and something like this for WPA2:
147 > =====================
148 > network={
149 >         ssid="what-ever"
150 >         proto=RSN
151 >         key_mgmt=WPA-PSK
152 >         pairwise=CCMP
153 >         auth_alg=OPEN
154 >         group=CCMP
155 >         psk"pass_123456789"
156 >         priority=5
157 > =====================
158
159 I want to try to get away from adding things directly to the wpa_supplicant.conf file as I would rather that the connection information be managed by a GUI tool.
160  
161 > Something like the above should get you online again, but you may need to
162 > experiment with different settings depending on the encryption used by the
163 > chosen AP.
164 >
165 > When wardriving open the wpa_gui, scan and double-click on your desired AP. 
166 > Then enter the key for it (if it has one) and you should be able to associate. 
167 > At that point dhcpcd will kick in and you'll get an IP address and be able
168 > to
169 > connect to the Internet (as long as the AP is not asking for DNS
170 > authentication or some such security measure).
171 >
172 > Of course if you use networkmanager you do not need to use wpa_gui.
173
174 I'd rather use the NetworkManager in KDE than wpa_gui.
175
176 That said, NetworkManager in KDE seems to be using wicd for some reason.
177
178 I also have KDE running under Kubuntu on my work computer (4.6.2) and the Network Manager is completely different (don't know why) - it's not wicd as far as I can tell.
179
180 However, They are still not working. wpa_gui refuses to scan and find networks; while wicd is not finding networks either - but there's so little information in the GUI that it is practically useless to say why.
181 Perhaps I've got something at the KDE layer screwed up?
182
183 I also updated everything so I am now using KDE 4.6.5 (I think it was 4.6.2 or 4.6.3 before).
184
185 TIA,
186
187 Ben

Replies

Subject Author
Re: [gentoo-user] Wireless Configuration... Mick <michaelkintzios@×××××.com>