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: Sat, 03 Sep 2011 14:15:39
Message-Id: 1315059267.35956.YahooMailNeo@web39308.mail.mud.yahoo.com
In Reply to: Re: [gentoo-user] Wireless Configuration... by Mick
1 ----- Original Message -----
2
3 > From: Mick <michaelkintzios@×××××.com>
4 > To: gentoo-user@l.g.o
5 > Cc:
6 > Sent: Friday, September 2, 2011 11:29 AM
7 > Subject: Re: [gentoo-user] Wireless Configuration...
8 >
9 > On Friday 02 Sep 2011 14:38:56 BRM wrote:
10 >> ----- Original Message -----
11 >>
12 >> > From: Canek Peláez Valdés <caneko@×××××.com>
13 >> >
14 >> > On Thu, Sep 1, 2011 at 11:52 PM, BRM <bm_witness@×××××.com>
15 > wrote:
16 >> >>  I still haven't decided what to get for my system to replace
17 > the NIC
18 >> >
19 >> > with, but the card I have should be working with my existing 802.11g
20 >> > network already; however, it doesn't - I have had to connect my
21 > laptop
22 >> > via Ethernet cable to my wireless bridge to get network access.
23 >> >
24 >> >>  /etc/init.d/net.wlan0 starts, but goes immediately inactive. From
25 > what
26 >> >>  I
27 >> >
28 >> > can find on-line, this seems to have been something common after
29 > moving
30 >> > to Base Layout 2/OpenRC; however, I couldn't find anything that
31 >> > specified what the actual solution was - I think most ended up doing a
32 >> > complete reinstall of their wicd/wpa-supplicant software - either way
33 >> > details were lacking.  I've successfully had wpa-supplicant
34 > working in
35 >> > the past, and as a result of all of this I've tried to get it up
36 > through
37 >> > the other method too (iwconfig?), but no success. (I think I have
38 >> > managed to get it to scan some, but not sufficiently and certainly no
39 >> > connections.)
40 >> >
41 >> > Did you followed the instructions at
42 >> >
43 >> > http://www.gentoo.org/doc/en/openrc-migration.xml
44 >> >
45 >> > specifically the network section?
46 >>
47 >> Yes, I believe so. It's been a while since I made the migration, but
48 > the
49 >> wireless configuration seems to have broken about the same time.
50 >>
51 >> The wired configuration works just fine, and the guide mentions nothing
52 >> about Wireless changes - e.g. WPA Supplicant - and that's where the
53 >> problem is.
54 >>
55 >> >>  Anyone see this issue and know what the solution is? I'd like
56 > to at
57 >> >
58 >> > least get my 802.11g access back - the current setup is a bit of a
59 > pain
60 >> > and very limiting.
61 >> >
62 >> > Since you use a laptop, I will assume you have either KDE, GNOME or
63 >> > Xfce. If that's the case, why don't you try NetworkManager or
64 > connman,
65 >> > and use the GUI thingy to do the work for you? I haven't manually
66 >> > configured a wireless network in years, and I have been the last three
67 >> > months traveling with my laptop literally all over the world,
68 >> > connecting to all kinds of access points.
69 >> > NetworkMnager just works, but I also hear great comments about
70 > connman.
71 >>
72 >> I'm using KDE, yes. I've tried the tools but it doesn't seem to
73 > ever scan
74 >> for a wireless network on its own, and the scans I have been able to force
75 >> don't result in a connection - they don't even find the network
76 > I'm trying
77 >> to attach it to.  Prior to the change, I could get WPA Supplicant to
78 >> connect to my wireless, though I did have to have it specifically
79 >> configured to do so. It wouldn't typically work using the tools for the
80 >> one wireless network, while I could get it to for others (hotels, other
81 >> places, etc.).
82 >>
83 >> I have added another network that is configured a little differently that I
84 >> would prefer to connect to (over the old one), but at the moment I'll
85 > take
86 >> either. (The new 802.11g network uses WPA2; the old one uses WEP+Shared.)
87 >
88 > Assuming that you have built in your kernel or loaded the driver module for
89 > your NIC and any firmware blobs have also been loaded, please show:
90
91 Yes. As I noted, it's worked before. The driver loads it find the firmware, etc.
92 Configuration information is below.
93  
94 > /etc/conf.d/net
95
96 # This is a network block that connects to any unsecured access point.
97 # We give it a low priority so any defined blocks are preferred.
98 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
99 #ctrl_interface_group=wheel
100 ap_scan=1
101 fast_reauth=1
102 # This blank configuration will automatically use DHCP for any net.*
103 # scripts in /etc/init.d.  To create a more complete configuration,
104 # please review /etc/conf.d/net.example and save your configuration
105 # in /etc/conf.d/net (this file :]!).
106
107 # Standard Network:
108 config_eth0=( "dhcp" )
109
110 dns_domain_lo="coal"
111 # Wireless Network:
112 # TBD
113 #config_wlan0 ( "wpa_supplicant" )
114 #
115
116 # Enable this to use WPA supplicant; however, need to change the configuration of the Wireless first.
117 modules=( "!plug" "!iwconfig" "wpa_supplicant" )
118 #modules=( "!plug" "wpa_supplicant" )
119 #modules=("iwconfig")
120 #wpa_supplicant_wlan0="-Dwext"
121 #wpa_timeout_wlan0=15
122
123 #modules=("iwconfig")
124 #iwconfig_wlan0="mode managed"
125 #wpa_timeout_wlan0=15
126  
127 > and 
128 >
129 > grep ^[^#] /etc/wpa_supplicant/wpa_supplicant.conf
130
131 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
132 ap_scan=1
133 fast_reauth=1
134 country=US
135
136 # Home Network
137 #network={
138 #       ssid="MY-NETWORK"
139 #       key_mgmt=IEEE8021X
140 #       eap=TLS
141 #       wep_key0=DEADBEAF0123456789ABCDEF000
142 #       priority=1
143 #       auth_alg=SHARED
144 #}
145 #
146 #network={
147 #       key_mgmt=NONE
148 #       priority=-9999999
149 #}
150
151 The network information is commented out as I was trying to get it to work with the normal user-space tools (e.g. Network Manager); however, it is no longer working in that configuration either. It doesn't seem to ever get to doing the SCAN portion of trying to find networks.
152
153 I can see wlan0 in wpa_gui, but I can't get it to scan at all. And I'd much rather use Network Manager if I could over wpa_gui; but it doesn't even see wlan0 (it happily finds eth0, my wired NIC.)
154
155 Ben

Replies

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