Is there a simple guide to setting up wlan in Slackware?
I've been trying out Slackware and having difficulty with wireless LAN, in particular with the guides at http://docs.slackware.com/slackware:beginners_guide, http://docs.slackware.com/slackbook:wifi and also http://alien.slackbook.org/dokuwiki/...eless_networks
I'm confused by the options, such as whether to run Network Manager, Wicd, whether to edit /etc/rc.d/rc.inet1.conf or rc.wireless.conf. Presumably for the average user, there is a tried and trusted way. Is there such a guide available? I noticed that when I run iwconfig, I see the following: eth0 no wireless extensions lo no wireless extensions wlan0 IEEE 802.11bgn ESSID: off/any Mode: Managed Access Point: Not-associated Tx-Power=0 dBm Retry long limit:7 RTS thr: off Fragment thr: off Encryption ley: off Power Management: on I presume this means Slackware has detected my Wireless card (a Broadcom BCMM4313 802.11 b/g/n), and yet when I run ifconfig, I only get details of eth0: and lo: If I enter ifconfig wlan0 ... then I see my card with its MAC address. I'm not sure why it doesn't appear in ifconfig by default. Would really appreciate some guidance. I'm using WPA mode. |
|
It all comes down to personal preference, but for ease of use, it is probably easiest to use Network Manager (Pat has expressed that it might be getting close to consider letting SBo take over wicd and not have it included in extra/ anymore). If you use Network Manager, you don't edit /etc/rc.d/rc.inet1.conf. Network Manager handles the connection, so you should just leave the rc.inet1.conf file alone. Also, using /etc/rc.d/rc.wireless.conf for any settings is deprecated, and you should use one of the other methods (which, as I stated above, Network Manager is the easiest).
As for ifconfig, it will only show the interfaces that are "up". If you run, ifconfig wlan0 up, it should then show wlan0 when you run ifconfig by itself. |
run
wpa_passphrase ssid password > /somewhere/network.conf then wpa_supplicant -i wlan0 -c /somewhere/network.conf so a .conf somewhere and that command somewhere in a rc.mynetworkscriptname or in rc.local since wpa_supplicant is practically a network manager, it'l work good and such it will bring the interface up, connect and reconnect otherwise wicd and NM are fine for average users, with their GUIs (they also use wpa_supplicant to connect to WPA) PS ifconfig -a shows all interfaces, ifconfig shows just the ones brought up by the admin there is also a third state (actual down, turned off more or less), but we can't control that directly |
Always try the simplest way first. As root run "netconfig" and when asked, choose NetworkManager. And do not edit any config file. That's all you should have to do.
|
Many thanks indeed for the four replies, it's really great. I've got quite a lot to go from in your replies, so I don't want to unnecessarily complicate matters by posing further questions, before I've tried your advice.
I suppose what I'd expected is that it would be possible without the GUI. I don't have a problem with that however - but I just don't know where to find the Network Manager in KDE. Any chance of pointing me in the right direction with that? @GENSS, is your method designed to just work at command level without the need for using the GUI? Sorry I haven't tried it yet, but it's way past bedtime here in and I need to leave it until the morning. I suppose it all begs the question however, based on the advice to leave the config files alone and use Network Manager - should there be a re-write the documentation? Many thanks again, James |
Quote:
|
Quote:
Quote:
|
Quote:
you get a gui, notifications and the ease of changing things editing rc.inet1.conf will give you more or less the same as wpa_supplicant that i suggested so it might be a better option to use the slackware way (though i haven't read through the script to be sure) for the way i suggested, with wpa_supplicant, you would also need to run dhcpcd -t 0 wlan0 so the rc.wifi would be Code:
#!/bin/sh Code:
# Start wifi |
If you're using Broadcom, you may want to try the Broadcom-STA proprietary driver if the free driver and firmware aren't working. A lot of times this driver works better for some people. Test and see for yourself.
|
Quote:
|
I don't understand why folks would go through the hassle of configuring a wireless connection in console mode. Having no GUI means you're on a server, and nobody in their right mind would use a wireless connection for a server. On a desktop client or a laptop, all you have to do is make sure there's no hardcoded configuration in rc.inet1.conf, and then:
Code:
# chmod +x /etc/rc.d/rc.networkmanager Niki |
Netwrk Manager as an ncurses interface ntmui that can be accessed from console.
|
Quote:
|
Quote:
a reason not to use NM would be that the code is complete shit and the author is one of those with the "NM should be the only network manager and anybody doing anything else is wrong and should contribute to NM instead" attitude |
All times are GMT -5. The time now is 12:38 PM. |