LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   tuning wireless configuration Slackware 12.0 (https://www.linuxquestions.org/questions/slackware-14/tuning-wireless-configuration-slackware-12-0-a-582250/)

geomatt 09-04-2007 08:53 PM

tuning wireless configuration Slackware 12.0
 
Just wondering what advice the Slackware gurus out there can give me on wireless configuration. I switch often between different wireless networks -- some with WEP encryption, some without, and am looking for some help making switching easier. A this point I find myself having to constantly re-edit /etc/rc.d/rc.wireless.conf in order to get an internet connection. I typically re-edit rc.wireless.conf with WEP key #1 or #2 or no key, then restart /etc/rc.d/rc.inet1, then openup wifi-ranger and connect from there. If I leave out one of those steps I can't seem to get a connection, unless I happen to be booting up in the place with the WEP key already listed in wireless.conf. There's got to be a better way to do this kind of thing, right?

Thanks,
-geomatt

witz 09-04-2007 09:25 PM

You could take a look at Wireless Assistant : http://www.kde-apps.org/content/show...095d4011ef985f

Or WiFi Radar : http://wifi-radar.systemimager.org/

perry 09-04-2007 10:28 PM

Quote:

Originally Posted by geomatt (Post 2881454)
Just wondering what advice the Slackware gurus out there can give me on wireless configuration. I switch often between different wireless networks -- some with WEP encryption, some without, and am looking for some help making switching easier. A this point I find myself having to constantly re-edit /etc/rc.d/rc.wireless.conf in order to get an internet connection. I typically re-edit rc.wireless.conf with WEP key #1 or #2 or no key, then restart /etc/rc.d/rc.inet1, then openup wifi-ranger and connect from there. If I leave out one of those steps I can't seem to get a connection, unless I happen to be booting up in the place with the WEP key already listed in wireless.conf. There's got to be a better way to do this kind of thing, right?

Thanks,
-geomatt

I got a rather simple 20 line script that does the whole sha-bang for me, take a look at my signature, go to that page and look up wireless and then let me know how you made out.

- Perry

geomatt 09-04-2007 10:30 PM

Quote:

You could take a look at Wireless Assistant : http://www.kde-apps.org/content/show...095d4011ef985f

Or WiFi Radar : http://wifi-radar.systemimager.org/
Thanks for the suggestions. I am already using wifi-radar (sorry, that was a typo in the original post where I said "wifi-ranger"). What I am after is a way of using it more effectively in combination with the native Slackware configuration scripts. It can be run in daemon mode right? How can that be setup to play nicely with the Slackware scripts? Or is it possible to use wifi-radar instead of rc.inet1?

-geomatt

perry 09-04-2007 10:38 PM

Well...
 
In light of how much trouble (i thought) it take for me to setup wireless on my system, not having to fool around with rc.wireless or rc.wireless.conf is like a breath of fresh air. I'm using ndiswrapper, and ndiswrapper is handling all the details for me. If your wireless comes with an .inf file, seriously look into what I'm suggesting. I'm not sure what your looking for other than that.

I got it easy,
Code:

1. download, make & install ndiswrapper
2. install the .inf file
3. modprobe ndiswrapper
4. run the script to start or stop
5. attach the script to the startup sequence (rc.M/rc.6)

Doesn't get any simpler... if it does, let me know!

Cheers

- Perry

ps.
as far as wep is concerned, /sbin/iwconfig can help you with that. perhaps you can elaborate on a version of rc.wlan0 that would take two parameters with the 2nd specifying the type of encryption to use..!

geomatt 09-04-2007 11:28 PM

Perry,
Thanks! Didn't see your post -- I must've been responding to was responding to witz while you were writing. I'll look through your info on setting up wireless config stuff tomorrow when I am more awake than now... My NIC is an Intel 3945 mini pci card and I have a driver that seems to work fine. Isn't ndiswrapper a tool for using windows drivers under linux?

Cheers and good night!
-geo

Alien Bob 09-05-2007 02:28 AM

Quote:

Originally Posted by perry (Post 2881502)
In light of how much trouble (i thought) it take for me to setup wireless on my system, not having to fool around with rc.wireless or rc.wireless.conf is like a breath of fresh air. I'm using ndiswrapper, and ndiswrapper is handling all the details for me. If your wireless comes with an .inf file, seriously look into what I'm suggesting. I'm not sure what your looking for other than that.

I got it easy,
Code:

1. download, make & install ndiswrapper
2. install the .inf file
3. modprobe ndiswrapper
4. run the script to start or stop
5. attach the script to the startup sequence (rc.M/rc.6)

Doesn't get any simpler... if it does, let me know!

Cheers

- Perry

ps.
as far as wep is concerned, /sbin/iwconfig can help you with that. perhaps you can elaborate on a version of rc.wlan0 that would take two parameters with the 2nd specifying the type of encryption to use..!

You don't want to edit the network configuration files (rc.inet1.conf or rc.wireless.conf) yet you advise people to edit the Slackware init scripts themselves (rc.M and rc.6)?
That way, every time you upgrade parts of Slackware you run the risk that your modified rc.M and rc.6 are overwritten and you loose your wireless access. Plus you indicate that your home-made script only allows for unencrypted networks, WEP and WPA envryption are not supported by your script.

And yet it is so simple to add wireless configuration to rc.inet1.conf ... without having to write additional scripts, or hack the Slackware init scripts.

An example:
Suppose you have a wireless card. Either it gets detected by UDEV and a driver for it is loaded automatically, or (in the case of ndiswrapper) you need to load the driver yourself.
If you need to load the wireless driver, you add a single line to the end of the file /etc/rc.d/rc.modules like this (example is for ndiswrapper):
Code:

/sbin/modprobe ndiswrapper
This guarantees that your card is properly working by the time the wireless/network configuration script kicks in.
Now for that configuration; suppose the wireless card is known as wlan0, it uses DHCP, the Access Point has an ESSID name of "any" which means any Access Point will do, the encryption is off, then an entry in rc.inet1.conf will look like:
Code:

IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_ESSID[4]="any"
WLAN_MODE[4]=Managed

I picked 'slot' number 4 but any unused one is OK for you to use usually, only 'slot' 0 is being used for eth0)
Now, add WEP encryption with a passphrase of "mysecret" for an access point called "wolfram" and the above will look like:
Code:

IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_ESSID[4]="wolfram"
WLAN_MODE[4]=Managed
WLAN_KEY[4]="s:mysecret"

And if instead this Access Point uses WPA encryption, the section will look like:
Code:

IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_ESSID[4]="wolfram"
WLAN_MODE[4]=Managed
WLAN_WPA[4]="wpa_supplicant"

and you have to add your ESSID and Pre-Shared Key (the WPA key) to the file /etc/wpa_supplicant.conf

If you configured WPA on your Access Point using a passphrase, then it is simple to calculate the WPA PSK using wpa_passphrase: this command will generate a few lines of output which you can directly paste into /etc/wpa_Supplicant.conf. Example:
Code:

# wpa_passphrase
usage: wpa_passphrase <ssid> [passphrase]

# wpa_passphrase wolfram mysecret
network={
        ssid="wolfram"
        #psk="mysecret"
        psk=9556e5aca35bb51207832a39ca23330952b739ade4a2bd551b97c1ff10eb3d91
}

Some more information about configuring your wireless network in my Wiki.

Eric

geomatt 09-05-2007 06:35 AM

Eric,
Thanks for the suggestions as well. How would you handle the multiple access points issue (some encrypted, some not) with a minimum amount of reconfiguring things?

-geo

merer 09-05-2007 07:17 AM

Alien Bob already gave you your answer:
Use wpa_supplicant to configure network settings (both encrypted and unencrypted) and use the third version of rc.inet1.conf (the one with wpa encryption - with the line WLAN_WPA[4]="wpa_supplicant" ).

geomatt 09-05-2007 07:46 AM

OK. I'm new to wpa_supplicant. Guess I should do my homework on it. :)
-geo

perry 09-05-2007 11:01 AM

Your being a little unfair...!
 
We are talking about wireless communications here not Internet, not Network.

When I went out and asked the Internet how to setup wireless communications on my system all I got was volumns and volumns of information and one fireworks show after another on how to setup wireless!

Sitting back and shooting at me because (as an option) you would make an addition to rc.M & rc.6 is only manditory and a major part of using the Linux kernel the way it was meant to be used. To simple additions as outlined are all thats required and then you never have to look back.

Further as far as using Windows drivers are concerned, I have been told that under ndiswrapper they are far more reliable that native wireless support provided for Linux to date. Further, the developers of those drivers could only wish that they had something as reliable as Linux to write their drivers for. Writing software for hardware is an exact discipline that requires skill. So using Windows drivers by way of ndiswrapper is simply a matter of rescuing the efforts of a lot of skill, hardworking engineers (with or without the ring).

My advice is simpler and by way of iwconfig, wep encryption can be configured to the users descretion. Given the flaky nature of wireless encryption there is not much point in providing much of a standard way to do that do the issues involved.

For a new user to Linux, my way is simpler and therefore superior!

Cheers

- Perry

Alien Bob 09-05-2007 12:27 PM

Well you asked for it... I am going to answer you here, and further discussion should take place on Freenode's ##slackware IRC channel as far as I am concerned.

Quote:

Originally Posted by perry (Post 2882106)
We are talking about wireless communications here not Internet, not Network.

When I went out and asked the Internet how to setup wireless communications on my system all I got was volumns and volumns of information and one fireworks show after another on how to setup wireless!

Well then instead of asking The Internet you could have asked here, and I would have given the same advice as I just did in this thread...

I think you need to realize that 'wireless' equals 'networking' and on a Linux box, Internetworking and LAN networking is essentially the same thing. This is also the reason that you can use rc.inet1.conf as the single source of all your network configuration... wireless and non-wireless; encrypted as well as non-encrypted.

Quote:

Sitting back and shooting at me because (as an option) you would make an addition to rc.M & rc.6 is only manditory and a major part of using the Linux kernel the way it was meant to be used. To simple additions as outlined are all thats required and then you never have to look back.
On the contrary - you propose a hack to Slackware system files which run the risk of being overwritten by the next package upgrade, whereas I show how to use the Slackware way of configuring your wireless card - and by doing it like this you do not have to write a single line of shell script to support it. Now that is a one-time edit and then never look back!
And um, pardon me... "using the Linux kernel the way it was meant to be used", what does that have to do with it?

Quote:

Further as far as using Windows drivers are concerned, I have been told that under ndiswrapper they are far more reliable that native wireless support provided for Linux to date. Further, the developers of those drivers could only wish that they had something as reliable as Linux to write their drivers for.

Writing software for hardware is an exact discipline that requires skill. So using Windows drivers by way of ndiswrapper is simply a matter of rescuing the efforts of a lot of skill, hardworking engineers (with or without the ring).
Whoever told you that wireless networking under ndiswrapper is far more reliable and stable than the native drivers may now bow his head in shame. The ndiswrapper is a hack so that a Linux box can use a wireless card even if the manufacturer refuses to release the hardware specs, and is arrogant enough that only Windows drivers are offered. Ndiswrapper is well-known for kernel stacksize problems where the kernel crashes in the wireless driver because the Linux kernel was never meant to co-operate with Windows code - the Windows driver needs a much larger stacksize for some cards (some run in 32K) than the 8K of the Slackware kernel and under high network load you will experience crashes.
A native Linux driver is almost always the preferable. Almost: because some native drivers need time to mature and get equipped with enough features to make them useable.
I respect the authors of open source wireless drivers much more than any company refusing to support anything but the MS Windows platform.

Quote:

My advice is simpler and by way of iwconfig, wep encryption can be configured to the users descretion. Given the flaky nature of wireless encryption there is not much point in providing much of a standard way to do that do the issues involved.

For a new user to Linux, my way is simpler and therefore superior!
You're a new user to Slackware Linux and try to find your own solutions to the problems you encounter. I think that is good. You will learn a lot.
But your solutions are not always the proper, or the best, or the most elegant, or the simplest. Your other thread in this forum shows that several times - you should not tell people to use Vector Linux as a Slackware rescue disk when the Slackware boot disk can do all the rescuing you need.

In this case of the wireless support, you wrote a script, and hacked two system files, when all that was needed was editing the configuration files Slackware offers you on a plate. I've just shown you how simple it is. Both ways work equally well, let that much be clear, but your way lacks encryption support and is targeted at your specific machine.

Eric

Lufbery 09-05-2007 01:17 PM

Quote:

Originally Posted by geomatt (Post 2881857)
Eric,
Thanks for the suggestions as well. How would you handle the multiple access points issue (some encrypted, some not) with a minimum amount of reconfiguring things?

-geo

Quote:

Originally Posted by merer
Alien Bob already gave you your answer:
Use wpa_supplicant to configure network settings (both encrypted and unencrypted) and use the third version of rc.inet1.conf (the one with wpa encryption - with the line WLAN_WPA[4]="wpa_supplicant" ).

Hi all,

I'm new to this too, and I'm wondering if I'm missing something fundamental. So here is a very basic question:

Is it possible to log onto open networks like at my local pizza shop or Borders book store without knowing the details of how their wireless access point is configured and/or editing configuration files on my hard drive?

Regards,

-Drew

dennisk 09-05-2007 01:37 PM

Two comments

After you have your wifi card working, checkout kwifimanager to manage it for you.

And if you've tried everything to get your BroadCom miniPCI laptop wifi card to work and it still won't, go on eBay and purchase for under $25 an Intel IWP2200 card. The Intel driver comes with Slackware and all you need to do is install (actually just copy to /lib/firmware) the firmware then reboot the laptop or restart the network.

Dennisk

geomatt 09-05-2007 01:52 PM

Quote:

Two comments
RE: #1 -- I'd rather avoid using kwifimanager, since I find KDE apps a bit clunky. But that's an aesthetic judgment, not a functional one. I have been using wifi-radar and the results have been unreliable.

RE: #2 -- The wifi card is in fact an Intel IPW3945 card. I am using the iwl3945 driver and am thinking of switching to the slackbuild version of the ipw3945 driver to see if it makes a difference. I'd rather wait a bit before ripping open my new laptop and sticking a used piece of hardware in it, though I am not averse to that in general. ;)

The problem has been that I find myself having to re-edit too many config files, and restart too many services too often, and I was just looking for a more trimmed down way.

-geo

onebuck 09-05-2007 08:35 PM

Quote:

Originally Posted by Lufbery (Post 2882270)
Hi all,

I'm new to this too, and I'm wondering if I'm missing something fundamental. So here is a very basic question:

Is it possible to log onto open networks like at my local pizza shop or Borders book store without knowing the details of how their wireless access point is configured and/or editing configuration files on my hard drive?

Regards,

-Drew

Hi,

I don't use KDE to connect my lan but you could use the Wireless Assistant App. wifi-radar would be another KDE application. These links and others are referenced at 'Slackware-Links' formerly 'Slackware LQ Suggestions Links!' for other good online references.

perry 09-05-2007 11:45 PM

Thanks!
 
Eric:

I'm not disputing your way of doing things, it's just that when I went to get wireless working on the system I kept running into this:
Quote:


Wireless card..Wireless router.. Slackware 10.2 ..Problems with ...

Wireless router.. Slackware 10.2 ..Problems with Internet Connection. ... There will be plenty of other users who have setup this card in linux who will ...
http://www.linuxquestions.org/questi...d.php?t=406897 - 53k - Cached - Similar pages
Building a Slackware Wireless Access Point - LinuxQuestions.org

Section 3 shows you how to set up an Ethernet card, which you may safely skip if you .... and firewalling, so that wireless clients can access the Internet. ...
http://www.linuxquestions.org/linux/...ng/Building_a_Slackware_Wireless_Access_Point - 45k - Cached - Similar pages
[ More results from www.linuxquestions.org ]

DHCP and Slackware Linux - UBC Information Technology

This document describes how to set up Slackware Linux 8.0 using DHCP (Dynamic ... If you are connecting using ResNet, Internet Access Ports or Wireless, ...
www.it.ubc.ca/internet/resnet/setupdocs/dhcpslackware.html - 23k - Cached - Similar pages

Wireless

First, you'll want to configure your wireless access point. ... of setting up wifi for those times when you find yourself at an Internet cafe, coffee shop, ...
slackbook.org/html/network-configuration-wireless.html - 9k - Cached - Similar pages

HOWTO: Set up wireless internet (Desktop or laptop) - Ubuntu Forums

HOWTO: Set up wireless internet (Desktop or laptop) Tutorials & Tips. ... Debian, Fedora/RedHat, Slackware, OpenSuse, Mac OSX, Gentoo, Windows Discussions ...
ubuntuforums.org/showthread.php?t=112526 - Similar pages

Need help with configuring wireless internet on a fresh Kubuntu ...

There was a PET about ndiswrapper and wireless setup on LJR but it didn't make it over ... Slackware Help, Macintosh Help, Linux General / Installation Help ...
www.openfree.org/forums/showthread.php?t=15265 - 37k - Cached - Similar pages

Wireless and Slackware? - Linux Forums

It was fairly simple to set up a wireless PCMCIA card in my Slackware 10.1 ... I have it working with internet on the Debian install, but now Slackware. ...
www.linuxforums.org/forum/slackware-linux-help/44052-wireless-slackware.html - 62k - Cached - Similar pages

slackware + wireless USB - Linux Forums

Discuss slackware + wireless USB on the 'Wireless Internet' forum of ... Wireless Internet Anything related to getting wireless set up in Linux. ...
www.linuxforums.org/forum/wireless-internet/76063-slackware-wireless-usb.html - 40k - Cached - Similar pages
[ More results from www.linuxforums.org ]

Internet Security Effecting U Torrent ???

I haven't changed ISP's but have set up wireless but my connection seems fine ... If your port test is OK, then you can run a test with Slackware 10.2 ...
forums.afterdawn.com/thread_view.cfm/546484 - 71k - Cached - Similar pages

Slackware 12 Review: configure wireless, NTFS, VMWare, and create ...

You are here: Home → RSS Feed Manager → Slackware 12 Review: configure wireless, NTFS, VMWare, and create a custom installation DVD ...
http://www.linux.co.uk/rss_manager/2...earchterm=None - 25k - Cached - Similar pages


And what you see there is Santa Clause in comparison.

Thanks to you, I now know of a very simple way of setting up wireless however no where was this info made apparent. No where on LQ.org or anywhere else. Everything had to be installed from scratch and this was only a few short months ago.

I'm tempted to try your way of doing things, but I got the script written now and for none encryption purposes it's fine. Not arguing that your method of doing it is right or wrong... just completely unknown to me due to 10,000 reasons.

For the record, I appreciate your input.

- Perry

Alien Bob 09-06-2007 05:01 AM

That google search did indeed return nothing useful ;-)

I just realized that I will have to write a proper README_WIRELESS.TXT for inclusion in the next slackware-current tree when Pat goes public again.
Your google-search results are reasons enough for writing that...

I am glad you did not take my rant as a display of arrogance. It was meant as positive feedback. Please have a look at some of the articles on wireless here: http://alien.slackbook.org/dokuwiki/...ware:slackware - they did not show up in your search.

Eric

geomatt 09-06-2007 05:51 AM

If you guys don't mind me chiming in here -- I really appreciate your discussion (I was kind of hoping that this would happen so I could learn more about what's going on under the hood when Slackware starts...). At this point I am wondering whether my difficulties in getting access to different wireless networks might be issues with a not-yet-fully-mature driver. I was using the iwl3845 driver and have just switched to the ipw3945 driver (thanks for the slackbuild Eric!) and so far things seem much more straightforward. The problems have been not seeming to be able to find one setup or routine that would work consistently in all cases, even though the Slackware config files should be simple to set up properly. I'll continue testing on various wireless access points today.

-geo

perry 09-06-2007 09:37 PM

Actually...
 
Were it not my only link to the web, I'd love to see if Eric's method would work for me. I cannot seem to find the CONFIG_4KSTACK in my .config file (on the web you'll find it and for a 2.6.21.5 kernel, but not mine!) so I'm stuck with that complication which, I would have to say, would perhaps be the #1 reason why I made the jump from my Slackware 10.1 2.4.x kernel to Slackware 12.0 2.6.x series. Had I only know about that "hack" I would not have took the chance on Slackware w/o Gnome... and where would I be today...?

I simply LOVE my Slackware 12.0 / Dropline Gnome, even over a Mac and that's saying something.

There is something about doing it yourself that gives you so much more of a *connected* feeling, albeit to your machine. Now if I could only figure out how to compile a kernel for the girlfriend....

- perry

Alien Bob 09-07-2007 04:19 AM

Quote:

Originally Posted by perry (Post 2883959)
I cannot seem to find the CONFIG_4KSTACK in my .config file (on the web you'll find it and for a 2.6.21.5 kernel, but not mine!)

Hi Perry

The "CONFIG_4KSTACK" is indeed not found in the kernel config, and this is the reason why an ndiswrapper compilation complains.
However, this is not at all a problem. The default for the kernel is to use 8K stacksize, and "CONFIG_4KSTACK" is by default never present in the .config. You can enable "#CONFIG_4KSTACK is not set" in the advanced kernel features and this will silence the compilation of ndiswrapper, but this is basically a pointless exercise for the kernel's configuration. Really the ndiswrapper should check the stack size in a different way.
To summarize: your stock Slackware kernels are completely fine, and ndiswrapper does an incorrect check for stack size.

Eric

geomatt 09-07-2007 08:08 AM

Update:
Using the ipw3945 driver seems to have solved my problem. In the /etc/rc.d/rc.wireless.conf file I use the minimal settings, including my home WEP key. And then when open up X I use wifi-radar to switch to other networks if I happen to be elsewhere. No problems. No need to reedit the conf file or restart /etc/rc.d/rc.inet1 or reload the driver. And best of all the little wireless LED also works. ;) Now that that's fixed I'll start messing around with wpa_supplicant...

-geo

perry 09-07-2007 10:20 AM

I gave it a shot...
 
Code:

#
# Eric: First I tried just the parameters you suggested, then I just cut & pasted
#      what you had there. Even did a "ifconfig wlan0 up" nothing happened!
#      (out of everything I've read, it looked the most promising!)
#
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_ESSID[4]="any"
WLAN_MODE[4]=Managed

Eric:

i didn't do a reboot however, i thought a simple rc.inet1 stop/start would be fine. as i need to do this in order to manually toggle the wireless due to it's nature. previously i had a netgear wireless router that sometimes went down about every five minutes, my new linksys router (i have a linksys router and a linksys wireless adaptor) is up pretty much all day (but does manage to get jammed at least once a day).

- perry

Code:

# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

#
# Eric: First I tried just the parameters you suggested, then I just cut & pasted
#      what you had there. Even did a "ifconfig wlan0 up" nothing happened!
#      (out of everything I've read, it looked the most promising!)
#
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_ESSID[4]="any"
WLAN_MODE[4]=Managed

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="AuthMode=WPAPSK EncrypType=TKIP WPAPSK=7B1ABEEB5D197741923ED26727569C365E31212096A0EAFAD563B268BAD01CAF TxRate=0"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"      # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"          # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR        # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by prepending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="AuthMode=WPAPSK EncrypType=TKIP WPAPSK=thekey TxRate=0"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (space-separated, see the
                                # example).


Alien Bob 09-08-2007 05:09 AM

Does "ifconfig -a" still show a "wlan0" interface? Now that you no longer use your own script, you would have to add a line of "/sbin/modprobe ndiswrapper" to for instance the end of the file "/etc/rc.d/rc.modules" or else your wireless card won't get activated.

What does "iwconfig -a" tell you?

Eric

dennisk 09-08-2007 11:14 AM

Quote:

RE: #1 -- I'd rather avoid using kwifimanager, since I find KDE apps a bit clunky. But that's an aesthetic judgment, not a functional one. I have been using wifi-radar and the results have been unreliable.
The March 2005 issue of Linux Magazine has a nice introductory article (link is to the PDF) about Kwifimanager. It's a small app that sits in the tray and lets you configure up to 10 acess points. Kwifimanager can also automatically connect to any up AP if you want.

Quote:

I'd rather wait a bit before ripping open my new laptop and sticking a used piece of hardware in it, though I am not averse to that in general.
Makes sense if your card is not simply accessed thought an easy to open door. Price quote was for a new card. Bluetooth is also very cheap and (again depending on the laptop) easy to install.

Quote:

The problem has been that I find myself having to re-edit too many config files, and restart too many services too often, and I was just looking for a more trimmed down way.
Check out the article above and decide for yourself if kwifimanager will do the job for you.

Dennisk

perry 09-08-2007 12:23 PM

Quote:

Originally Posted by Alien Bob (Post 2885349)
Does "ifconfig -a" still show a "wlan0" interface? Now that you no longer use your own script, you would have to add a line of "/sbin/modprobe ndiswrapper" to for instance the end of the file "/etc/rc.d/rc.modules" or else your wireless card won't get activated.

What does "iwconfig -a" tell you?

Eric

Code:


root@slackware:/home/perry# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:11:09:84:96:1B 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:18 Base address:0xaf00

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:72 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3600 (3.5 KiB)  TX bytes:3600 (3.5 KiB)

wlan0    Link encap:Ethernet  HWaddr 00:12:17:81:B2:64 
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::212:17ff:fe81:b264/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12488 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8291 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14326514 (13.6 MiB)  TX bytes:658594 (643.1 KiB)

root@slackware:/home/perry# iwconfig -a
-a        No such device


geomatt 09-08-2007 12:59 PM

dennisk,
Thanks for the further info on kwifimanager. I'll check it out. It seems that the problem had less to do with the particular tools I was using, than it did with the driver. Since I switched to the ipw3945 driver I can easily get connected. For some reason the iwl3945driver from intellinux must have been the reason I couldn't get reliable connections without multiple redits and restarts of config files scripts. Hopefully the ipw3945 driver will follow the earlier ipw2100 and 2200 into the kernel.

cheers,
-geo

dennisk 09-08-2007 02:01 PM

All's well that ends well, so they say. Glad it's working.

Dennisk

BCarey 09-08-2007 03:28 PM

Quote:

Originally Posted by perry (Post 2885670)
[code]
root@slackware:/home/perry# iwconfig -a
-a No such device

The -a switch is only applicable to ifconfig, not iwconfig. It was probably just a typo in Eric's post.

In my experience the CONFIG_4STACK warning can be ignored.

It seems like your wireless is working fine now?

Brian


All times are GMT -5. The time now is 01:17 PM.