![]() |
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 |
You could take a look at Wireless Assistant : http://www.kde-apps.org/content/show...095d4011ef985f
Or WiFi Radar : http://wifi-radar.systemimager.org/ |
Quote:
- Perry |
Quote:
-geomatt |
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 ndiswrapperCheers - 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..! |
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 |
Quote:
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 ndiswrapperNow 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"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"Code:
IFNAME[4]="wlan0"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_passphraseEric |
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 |
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" ). |
OK. I'm new to wpa_supplicant. Guess I should do my homework on it. :)
-geo |
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 |
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:
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:
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:
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:
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 |
Quote:
Quote:
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 |
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 |
Quote:
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 |
| All times are GMT -5. The time now is 04:37 AM. |