Login (generic cert)
Logout
Guests 20
If you can walk and chew gum at the same time, you can run GNU/Linux
Blog Pushes

debian tutorials
debiantutorials.org is built on and runs on Debian.

 

Creative Commons License
Wireless on Lenny from a net install iwl4965 Print E-mail
Written by machiner   
Saturday, 28 February 2009 11:11

With a net install you may not have all the firmware and drivers you need to be fabulous from square one, so it's important to have what you need on hand before you start. Unless you don't worry about connecting wirelessly from your porch. But if you want that you can have it with a little planning. I have an HP Pavilion laptop. The wireless nic is an Intel PRO/Wireless 4965AGN. Although the Lenny installer will prompt me for the firmware during install it forces a WEP encrypted connection and I use WPA2. Therefore I don't bother with this functionality, but you can if you like. I already have copies floating around of the deb files I need, namely:

.

Here is an archived I uploaded of the deb files my HP needs to get wireless after a minimal net install installation. It's the above 3 packages with dependencies. md5sum Extract:$ tar -xzf <filename.tar.gz>

Wireless in 3, 2, ...

Following a Lenny net install, and the reboot; wireless is only a moment away. Make sure to log in as root and then simply cd (change directory)

# cd /vault/for-reinstall/wireless

into the folder where those .deb files from above (or yours) are saved and install them; run:

# dpkg -i *.deb  which installs every (*).deb file in the directory.

Then load the Intel driver with a quick:

# modprobe iwl4965

Then I like to run iwconfig to see what's up:

# iwconfig

Choices, choices, choices...

Take your pick of the following 2 ways to introduce your wireless connection creds to your system. Either edit a file, like below, or run a command with arguments that does that for you, as you'll see in option 2 below.

(1)  Then what I do is edit my interfaces file to include an entry for my wireless nic. It's pretty simple, have a look at my entry:

# nano /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

//---begin edit---//

iface wlan0 inet static
network 192.168.1.0
address 192.168.1.102
gateway 192.168.1.1
netmask 255.255.255.0
wpa-psk XXXXXXXXX
wpa-ssid XXXXXXXXX

//---end edit---//

(2) Of course, you need not edit /etc/network/interfaces at all, you can simply use iwconfig to do it for you by passing the correct arguments:

# iwconfig wlan0 essid <essid name> key s:<WPA key> mode Managed

Either way you're good, but running arguments with iwconfig never works for me even though man iwconfig reads that's how.

The last step before connecting is to give some nameserver entries to /etc/resolv.conf. After yesterday's net install I didn't have a resolv.conf file, but opening nano with a file name argument, adding contents and saving it fixes that. So I did, and I added the OpenDNS nameservers:

# nano /etc/resolv.conf

I added the following:

nameserver 208.67.220.220
nameserver 208.67.222.222

So far, so good. Firmware installed and loaded, connection info passed to system, DNS handled, now all we have to do is to restart networking to incorporate our changes and then call up the wlan0 interface. Wicked easy:

Connect

Issue...

# /etc/init.d/networking restart

# ifup wlan0

Bam - there ya go. What I do next is to restore my sources.list, my /root/.bashrc file and reinstall my desktop as it was with dselect, or as I feel at the moment. Which is more often than not the case.

Since I use wicd on my desktop I'll make sure to purge /etc/newtork/interfaces after I've installed it. Wicd manages all that for you and as a bonus nobody can snoop your interfaces file.

Don't feel like you have to install Debian this way. Sometimes I have a 1/2 hour to kill and I'm just too friggen geek to help it. Sigh.

--machiner 27feb09

Edited 1 Mar 09 for clarity because Mum said I had to.

Comments
Add New
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Zach  - Rad   |118.90.2.xxx |2009-03-06 21:53:26
Nice post, clear blog, great style.

Perhaps include this site for people who have
HP notebooks/Intel wireless cards but aren't sure about the drivers needed: http://www.intellinuxwireless.org/
Richs  - Very nice toot   |87.221.208.xxx |2009-03-06 22:24:54
Very well written toot machiner. The new web style is looking sweet as well.

Keep up the good work!

Rich
andmalc  - Firmware install no longer needed   |69.159.77.xxx |2009-06-06 15:31:03
firmware-iwlwifi is no longer needed when running kernels after 2.6.24

Thanks
machiner  - Yes it is   |71.88.102.xxx |2010-01-25 12:40:44
On my laptop, anyway.
Jim   |71.221.160.xxx |2010-04-23 23:10:35
The current Debian installer includes firmware-iwlwifi.
lproee   |71.75.82.xxx |2010-07-16 04:29:52
does not work at all.
bobmacans   |112.201.246.xxx |2010-07-22 00:06:44
Very informative, that what makes me love about this site.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Tuesday, 28 April 2009 12:05