LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2005, 06:27 PM   #1
ftgow
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 69

Rep: Reputation: 15
whats the RIGHT way to work wireless in slackware


Ok, so using ndiswrapper, an odd little bit that runs a windows driver for this crazy network card, I can get this slackware laptop online in the following steps.

This is all down on slackware 10.1 with dropline gnome 2.10 running kernel 2.6.11-ck3 (from linux militia.net) and ndiswrapper 1.2rc1 on this netgear ma521 PCMCIA card. I'm on the laptop right now...

1. modprobe ndiswrapper
(I hacked in an entry into modules.rc, as well as one of those alias things for modprobe.conf, ndiswrapper -m updated modprobe.conf by itself however)

2. run iwconfig wlan0 essid "AT@Love" (the mode and channel options at their defaults seem to work) I later edited rc.wireless.conf and was able to use "sh rc.wireless wlan0" instead of iwconfig, even though it is still passing the damn comannds TO iwconfig.

(after running the above command the Lnk light comes on the card.

3. /sbin/dhcpcd wlan0 (grabs a quick ip)

4. and then thats it. Im online. I added the iwconfig/rc.wireless command and the dhcp command to rc.local, but the problem is I feel that this is really inefficient, and wrong use of slackware scripts.

What I would like would be some of the better slackware folks here to help me make the card work much better. I would like it to run the various commands whenever it is inserted, for instance. Right now the card has to be in on bootup, or I have to (su) and run rc.local, or just the commands themselves. Other than that I quess I should be content, (I should be content now, im technically using a WINDOWS driver, but slackware users have a hint of OCD), it would be nice to have rc.inet et al to think of the card more as a standard ethernet device. I imagine hotplug will have to be looked into

So whats the best, most elegant solution to working a wireless card in slackware?
Hopefully I dont sound like a rambling idiot and someone will help me.

But as always Thanks to all here at linuxquestions.org

Thanks.
 
Old 05-07-2005, 08:29 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
What's the card? It's entirely possible that you don't need to use the Windows driver. I know people who swear by ndiswrapper. Personally, I swear at it.

That said, if it works, it's good enough. There's not really any "right" way to do it. You've already set up rc.wireless. It works out of the box for any kernel-supported wlan card, because they get detected as eth?. If you don't have a kernel-supported card, then you get something else. It may follow the BSD standard wi?, it may be wlan?, or some oddball thing like ath? for atheros cards using madwifi.

You could always hack rc.inet1 as well, and tell it to bring up wlan0 as well. Or do something else. On my laptop, I created a "wlan" script, and put it in /sbin (it uses su-only commands, so makes sense to put it in su-only directory). Link the script in rc.local, but I can also use it any time during runtime. It displays a menu, asking which wlan I want to configure for (home, school, public-but-they-don't-know-it hotspot downtown, library), and then kills dhcp, sets the card, and acquires dhcp.
 
Old 05-07-2005, 08:53 PM   #3
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea, you should be able to add wlan0 to rc.inet1.conf... I use Linuxant's Driverloader and it assigns my card as eth*... So rc.inet1 picks it up right away. If you run as a user and not root, I don't see why you couldn't:

ln -sf /etc/rc.d/rc.inet1 /usr/bin/network

Then just:

network start

or just make a launcher that executes '/etc/rc.d/rc.inet1 start' if your really feeling lazy...

Or you could make a script yourself with all the manual commands required to activate your card and then drop that in you PATH or make a launcher pointing to it. You can pretty much do it any way you can imagine...

Last edited by jong357; 05-07-2005 at 09:00 PM.
 
Old 05-07-2005, 10:33 PM   #4
ftgow
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 69

Original Poster
Rep: Reputation: 15
Yeah I should be able to fiqure something out. It would be better if it was a kernel supported card.
Its one of those reltek8180's so ndiswrapper looks to be my only solution. And it gets assigned wlan0.
Ill look into inet1 stuff and If i need any other help Ill hollar./
 
Old 05-07-2005, 10:41 PM   #5
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
My card is rtl8180 based too, but I never could get ndiswrapper to work. I broke down and paid for Linuxant driverloader which works flawlessly.

After my slack install, I configured networking to use DHCP with all the default parameters. the dhcpcd program runs on boot now.

After installing the driverloader program and configuring, all I do is pop in my wireless card and it automatically configures and does the dhcp bid. I can also plug in my 10/100 nic card and it will use the same dhcp settings. They both use eth0 for the interface, but I can change them easily.
 
Old 05-07-2005, 11:19 PM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea, driverloader is nice... I have a Belkin card and I'm using the realtek 8180 drivers with it.... I'm pretty happy with Linuxant. I've bought HSF modem drivers for my onboard tornado and the wireless drivers. Money well spent in my book.

tornado? Thats my ethernet card... You get the idea...

Last edited by jong357; 05-08-2005 at 10:32 AM.
 
Old 05-08-2005, 04:41 AM   #7
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Quote:
Originally posted by jong357
Yea, driverloader is nice... I have a Belkin card and I'm using the realtek 8180 drivers with it.... I'm pretty happy with Linuxant. I've bought HSF modem drivers for my onboard tornado and the wireless drivers. Money well spent in my book.
I couldn't agree more! It has always worked with no configuration hassles. Now if I could get a sound driver for my laptop I'd be all happy..
 
  


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
Getting Linksys Wireless G-Card w/ Speedbooster WPC54GS to work on Slackware fader Slackware 25 05-30-2010 05:06 PM
Whats going on, on this wireless network? ginda Linux - Wireless Networking 12 03-22-2005 01:34 AM
Oninoco Silver Wireless Card won't work in Slackware 10 Cordless Linux - Hardware 0 09-14-2004 08:59 PM
Does the WMP54G Wireless Network Work with Slackware 10.0 on a P4C800 Asus Mobo? tuxylh Linux - Hardware 2 09-04-2004 05:16 PM
whats a NIC that will work? jimi_j Linux - Networking 3 05-19-2004 12:25 PM

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

All times are GMT -5. The time now is 04:46 AM.

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