LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2006, 01:30 PM   #1
Steve50
Member
 
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121

Rep: Reputation: 15
Ndiswrapper and wifi settings at startup


Hi everyone. After installing slackware 10.2 I managed to get my broadcom wifi card working with ndiswrapper. Ndiswrapper compiled without a problem, and I used ndiswrapper -m to modprobe ndiswrapper at startup, and edited rc.wireless.conf with my essid and network details. I also entered the details in KDE's wireless configuration gui via wifimanager.

Problem is ndiswrapper doesn't always load at startup (sometime it does though?) so I have to manually modprobe it. Also, in order to connect I have to manually type dhcpcd wlan0 in a terminal.

I kind of expected that I would need to do some sort of manual configuration in slackware (in fact I've installed it so I can learn more about how to do these things manually). But I would appreciate any advice about how to ensure my wireless connection is established automatically at boot up.
 
Old 01-24-2006, 04:31 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'd just enter the needed commands into your /etc/rc.d/rc.local file. In my experience, the Slackware wireless config files don't work very well with ndiswrapper, so a script is a better option.
 
Old 01-24-2006, 04:32 PM   #3
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I found the way ndiswrapper -m worked was unreliable. Instead I undid that by removing the line it made, and then adding a line to /etc/rc.d/rc.local that says

/sbin/modprobe ndiswrapper

From there it works every time. The problem with settings is likely related. You can't apply network settings to an interface that doesn't exist, and if ndiswrapper isn't loaded the interface doesn't exist.
 
Old 01-24-2006, 04:36 PM   #4
Steve50
Member
 
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for this. I'll give these suggestions a try and let you know.
 
Old 01-24-2006, 05:51 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Code:
/sbin/modprobe ndiswrapper
If you add that line at the end of /etc/rc.d/rc.modules so that the driver gets loaded a lot earlier in the boot process, then rc.inet1 can configure your card just fine.

Make sure that in /etc/rc.d/rc.inet1.conf you have IFNAME[1]="wlan0" defined for your card, because the Slackware default is to assume that you only have "ethX" interface names. In your case of "wlan0" you will have to explicitly name it.
If you did not setup your wireless network card in slot 1 of /etc/rc.d/rc.inet1.conf (all the VARIABLENAME[1]="..." settings), please change the [1] to the appropriate value.

You should end up with something like this in /etc/rc.d/rc.inet1.conf (again assuming you're using slot [1]):

Code:
IFNAME[1]="wlan0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
These are the non-wireless related network settings. The wireless configuration was already done in /etc/rc.d/rc.wireless.conf so you should not need to touch that file now.

Eric
 
Old 01-25-2006, 08:16 AM   #6
Steve50
Member
 
Registered: Nov 2004
Location: Coventry, UK
Distribution: Debian Lenny, Ubuntu Feisty
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Alien Bob
Code:
/sbin/modprobe ndiswrapper
If you add that line at the end of /etc/rc.d/rc.modules so that the driver gets loaded a lot earlier in the boot process, then rc.inet1 can configure your card just fine.

Make sure that in /etc/rc.d/rc.inet1.conf you have IFNAME[1]="wlan0" defined for your card, because the Slackware default is to assume that you only have "ethX" interface names. In your case of "wlan0" you will have to explicitly name it.
If you did not setup your wireless network card in slot 1 of /etc/rc.d/rc.inet1.conf (all the VARIABLENAME[1]="..." settings), please change the [1] to the appropriate value.

You should end up with something like this in /etc/rc.d/rc.inet1.conf (again assuming you're using slot [1]):

Code:
IFNAME[1]="wlan0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
These are the non-wireless related network settings. The wireless configuration was already done in /etc/rc.d/rc.wireless.conf so you should not need to touch that file now.

Eric
Tried this and it seems to work. Many thanks.

Steve
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BCom wifi w/ ndiswrapper driver not getting ip kristersaurusrex Linux - Hardware 1 12-27-2005 04:22 AM
Wifi configured with ndiswrapper now what? DeadPenguin Linux - Wireless Networking 8 04-20-2005 09:52 AM
getting wifi to work with ndiswrapper zchoyt Linux - Wireless Networking 13 09-24-2004 05:57 PM
wifi interface with ndiswrapper robinang Linux - Wireless Networking 2 09-13-2004 11:46 PM
Troubles installing WiFi PCMCIA /w NDISwrapper brianjorgensen2 Linux - Wireless Networking 2 05-02-2004 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration