Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] How to configure wlan on my gentoo installation.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chappy
n00b
n00b


Joined: 02 Aug 2008
Posts: 6
Location: Mainz

PostPosted: Sun Aug 10, 2008 3:37 pm    Post subject: [solved] How to configure wlan on my gentoo installation. Reply with quote

Hi all,

i installed gentoo as the documentation on the gentoo homepage described (with wired network).
But now i want to install my wireless device (its a HP 6710b notebook with integrated wlan).
Wlan device is: "Intel(R) PRO/Wireless 3945ABG Network Connection".

As i'm totally new to linux (playing with gentoo maybe helps me to get better) i don't know how to start/go on.
How can i check if linux already detected the wlan device?

Thanks to you all for any kind of help!!!

Regards

Stefan


Last edited by chappy on Sun Aug 10, 2008 7:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Sun Aug 10, 2008 4:58 pm    Post subject: Reply with quote

Quote:
As i'm totally new to linux (playing with gentoo maybe helps me to get better) i don't know how to start/go on.


Okay, I'll tell you where to start investigating instead of actually providing a solution :)

There's a simple strategy I like to follow:

1. Precisely identify the task at hand and be able to phrase it correctly (what keywords would you search for?).
2. Find some documentation. http://google.com is a good starting point if gentoo-related sources didn't solve your problem already.
3. Follow the documentation and try to understand what you do. If you don't understand something, see point #1.

You should always check the official documentation (at gentoo.org), this forum and gentoo-wiki.com before you search on a wider basis. When searching packages in the Portage tree, try gentoo-portage.com or eix.

Some hints:

Quote:
How can i check if linux already detected the wlan device?


You need to install net-wireless/wireless-tools and run "iwlist scan" in a terminal. If it works, iwlist will show you all wireless networks in your area.

The command "lsmod" lists all your modules. If you're lucky, the output already shows a module for your wireless card.

If you need further help, we're here for you!
Back to top
View user's profile Send private message
chappy
n00b
n00b


Joined: 02 Aug 2008
Posts: 6
Location: Mainz

PostPosted: Sun Aug 10, 2008 5:20 pm    Post subject: Reply with quote

Hey zyko,

thanks a lot. In the meantime i searched for some things and now i'm at this status:

First of all i had to change/edit the kernel cause i didn't have the wlan functionality installed.
Lucky that there is the gentoo documentation where i found how to do this ;-)

- Emerged wireless-tools.
- lsmod: iwl3945 (i emerged the drivers for it)
- iwconfig wlan0 essid KD-chappy (set my essid)
- iwconfig wlan0 key s:mykeyhere (added my key in ascii mode)

Now when i try to scan i get this:
Code:
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

sit0      Interface doesn't support scanning.

wmaster0  Interface doesn't support scanning.

wlan0     Interface doesn't support scanning : Network is down


iwconfig shows up this:
Code:
LINUXchappy / # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"KD-chappy"
          Mode:Managed  Channel:0  Access Point: Not-Associated
          Tx-Power=0 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:6465-7268-756E-646B-6E75-7272-74
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


1. Do i have to bring my wlan0 up first? How can i do this? I read about the ifup command but my system does not recognize this.
2. iwconfig shows that Access Point is not associated --> does that mean that i have to set it up in any config file? I think giving him the essid should be enough?

Would be great if you could give me some more hints i think its maybe just a little command to bring the interface up but as i said before
i'm new to linux (shame on me for my windows past) :-)

EDIT// ok i typed "ifconfig wlan0 up" and now i can scan and if found the access point.
I think now i have to change wlan0 to use dhcp? Because i cannot ping anything. I will try :-)

Thanks a lot in advance.

Regards

Stefan
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Sun Aug 10, 2008 6:28 pm    Post subject: Reply with quote

I looked into this and it seems a little complicated for a linux novice, but WLAN stuff is always flaky. You'll receive your Linux Baptism by Fire, I guess ;)

Okay, you'll need to scan through some documents before the fun begins:

The iwlwifi project: http://intellinuxwireless.org/ -- this is the recommended driver for your wireless device, and it's in the Linux Kernel.
Gentoo-wiki, always helpful: http://gentoo-wiki.com/Iwlwifi
The German Gentoo-wiki: http://de.gentoo-wiki.com/IWLWIFI
The Gentoo Handbook on WLAN: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4

And the deprecated (!) ipw3945 page on gentoo-wiki: http://gentoo-wiki.com/Ipw3945 -- maybe this contains some useful information, so it wouldn't hurt to take a glance at it.

Just as an educational bonus, there are some more:
Gentoo-wiki's page on Wireless: http://gentoo-wiki.com/Wireless
And the German one: http://de.gentoo-wiki.com/Wireless_Konfiguration

Yeah, that's a lot, even for Gentoo's standards :)

I would build everything related to wireless as modules (<M> in menuconfig). Also, enable automatic module loading in your kernel. This will maximize the probability that udev/hotplug/whatever will automatically load everything that's needed. This means you shouldn't use modprobe or /etc/modules.autoload.d/kernel-2.6.

Just to make things clear: You most likely use WPA access points, since WEP is usually frowned upon. This means you can't use wireless-tools to connect to anything. Use wpa_supplicant. Wireless-tools are only useful for scanning access points (iwlist scan) and displaying info (iwconfig).
Back to top
View user's profile Send private message
chappy
n00b
n00b


Joined: 02 Aug 2008
Posts: 6
Location: Mainz

PostPosted: Sun Aug 10, 2008 7:14 pm    Post subject: Reply with quote

Hi zyko,

finally it's working now :-)

I turned off the encryption for testing and after it typed dhcpcd wlan0 i'm online ;-)
In the next step i will get through your documentation and try to use wpa_supplicant so that i can change back to my
wpa2-personal encryption.

Thanks a lot for your help i much appreciate that.

Wish you a nice weekend ending :-)

Cheers

Stefan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum