From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-45767-garchives=archives.gentoo.org@gentoo.org>)
	id 1FyhRS-0007bs-8A
	for garchives@archives.gentoo.org; Fri, 07 Jul 2006 03:55:46 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k673s5Ag012398;
	Fri, 7 Jul 2006 03:54:05 GMT
Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175])
	by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k673mOPD004085
	for <gentoo-user@lists.gentoo.org>; Fri, 7 Jul 2006 03:48:24 GMT
Received: by ug-out-1314.google.com with SMTP id j40so550824ugd
        for <gentoo-user@lists.gentoo.org>; Thu, 06 Jul 2006 20:48:24 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=VN9o2b0WIlc8rHxXyi+eMUmvF8sxtoepsfups6MXFUt6+b0tzBfJ9gXhNUOyca2DnlDhDQaXGolrEf395De1WtKvQCfR+XZZ6yrzSvWCd5qEzWcQTxbPlePvC7UW8wDuHZOdNItAG1uRF78aum/JTe4IO/PuSd8XWp6vKrzUyDk=
Received: by 10.66.219.11 with SMTP id r11mr1506689ugg;
        Thu, 06 Jul 2006 20:48:24 -0700 (PDT)
Received: by 10.66.243.7 with HTTP; Thu, 6 Jul 2006 20:48:24 -0700 (PDT)
Message-ID: <342e1090607062048s7c774936ybca35ef99a9ae877@mail.gmail.com>
Date: Fri, 7 Jul 2006 00:48:24 -0300
From: "Daniel da Veiga" <danieldaveiga@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Guidance requested for setting up ndiswrapper wireless under Gentoo
In-Reply-To: <5bdc1c8b0607062018q798feb7bw45e74f606e8815a5@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <5bdc1c8b0607061756i22095bat1fefd94549497558@mail.gmail.com>
	 <5bdc1c8b0607062018q798feb7bw45e74f606e8815a5@mail.gmail.com>
X-Archives-Salt: 52addc95-87da-4565-8fcd-7d4f15b80399
X-Archives-Hash: 08c9cd7ce6e8256761a4e414ce7623ba

On 7/7/06, Mark Knecht <markknecht@gmail.com> wrote:
> On 7/6/06, Mark Knecht <markknecht@gmail.com> wrote:
> > Hi,
> >    Help........I cannot seem to find any good instructions for setting
> > up a wireless NIC using ndiswrapper on Gentoo. Can someone point me in
> > the right direction?
> >
> >    The main Gentoo doc I found:
> >
> > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4
> >
> > doesn't mention ndiswrapper. A wiki I found here:
> >
> > http://gentoo-wiki.com/HOWTO_Wireless_Configuration_and_Startup#Configuration_using_iwconfig
> >
> > barely mentions ndiswrapper. Certainly not enough to get anything
> > working. (I think...)
> >
> >   I cannot use WPA supplicant as my NIC is not supported. I did have
> > the NIC working under FC2 for a long time but am attempting to convert
> > the machine to Gentoo. (well, it's converted but wireless is the only
> > thing not working...)
> >
> >    I think I must be missing some good page on how to do this.
> >
> > Thanks in advance,
> > Mark
> >
>
> Continued.....
>
> Again, thanks in advance for any help you can give.
>
> 1) I found a Windows driver online for my card - LinkSys DWL-G510
> 2) emerged ndiswrapper and installed the driver. The card and driver are found:
>
> christmas ~ # ndiswrapper -l
> Installed ndis drivers:
> net8180 driver present, hardware present
> christmas ~ #
>
> 3) The card is running but only 11Mb so far. Not important right now
> but will be later.
>
> christmas ~ # iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wlan0     IEEE 802.11b  ESSID:off/any
>           Mode:Auto  Frequency:2.412 GHz  Access Point: Not-Associated
>           Bit Rate:11 Mb/s   Tx-Power:20 dBm   Sensitivity=0/3
>           RTS thr:2432 B   Fragment thr:2432 B
>           Encryption key:off
>           Power Management:off
>           Link Quality:100/100  Signal level:-95 dBm  Noise level:-256 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> christmas ~ #

Maybe its not running full speed because there's not access pointe associated...

>
> 4) I emerged wpa_supplicant based on info here that says
> wpa_supplicant can be used with ndiswrapper:

Never used it as my access point does not use WPA or even WEP, I keep
it open for my friends that eventually join a lan party here to use.

>
> http://ndiswrapper.sourceforge.net/mediawiki/index.php/WPA
>
> 5) When I emerged wpa_supplicant it said I needed to create a config
> file /etc/wpa_supplicant/wpa_supplicant.conf and gave a path to an
> example, so I've extracted the example file and copied it to the
> prescribed location. However the Gentoo pages say the right location
> is /etc/wpa_supplicant.conf. Which location is correct?
>
> 6) it's so deep in examples I'm currently not clear how to modify it
> or even why I'm using it. What is a wpa_supplicant and why does one
> use it?

AFAIK, its a encryption method used by access points to increase
security (someone will point me if I'm wrong). It must be configured
in your access point to work. Another encryption method (pretty easy
to break, in fact, but still add some security) is WEP. It is all set
at the access point.

>
>    At this point I'm pretty lost. I'm guess I'm making some headway
> with ndiswrapper being that it's loaded not complaining too much, but
> none of my iwconfig commands seem to change its state so far. I.e. - I
> tell it an essid but it doesn't show that it changed the essid:

What about simply:

ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0
/etc/init.d/net.wlan0 start

?

If you have no security and DHCP at the access point, it shall connect to it...

>
> christmas System Stuff # iwconfig wlan0 essid LadySmithBliss
> christmas System Stuff # iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wlan0     IEEE 802.11b  ESSID:off/any
>           Mode:Auto  Frequency:2.412 GHz  Access Point: Not-Associated
>           Bit Rate:11 Mb/s   Tx-Power:20 dBm   Sensitivity=0/3
>           RTS thr:2432 B   Fragment thr:2432 B
>           Encryption key:off
>           Power Management:off
>           Link Quality:100/100  Signal level:-95 dBm  Noise level:-256 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> christmas System Stuff #
>
>    I think that if someone can get me clued in about wpa's and how to
> configure for real network I'll likely get there pretty quickly from
> here.

You must know what type of security your access point has. After you
know this, you'll need to edit /etc/conf.d/wireless and configure it.
If (as I said before) you have DHCP, SSID broadcast and no encryption
at your access point, you don't need any of these, just the two
commands above, else you'll have to configure it, take a look at
/etc/conf.d/wireless.example.

-- 
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------
-- 
gentoo-user@gentoo.org mailing list