SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First, I know it has been asked before and it is all over the web, but I have tried everything I can find on setting up wpa-psk in Slack 12.1 and I an running into errors. It seems to set up, but will not get an ip address. iwlist scan finds the router, but the wpa_supplicant and ifconfig command just won't work.
So, I was wondering if some kind sould would be willing to share their wpa_supplicant.conf file that is working for them (without anything confidential, of course) so that I can try using that model. I have been at it for hours with no result.
My Ubuntu and Fedora machines were no issue that they just came up with a gui asking for the passphrase. Slack is where I do a great deal of my work and need to get connected to my home network.
I have no experience with wpa_supplicant as I previously had an unsecured network. But, we've a new house and in this neighborhood I now need wireless security.
Can anyone help?
Thanks in advance
Bob
Last edited by BobNutfield; 04-22-2009 at 02:48 PM.
# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
ssid="myessid"
psk=9b7bd6261c49cf2e190aa8ce2d5de0e703c57f4910bb6489a88261ed6b02b3d2
}
You do know that you can generate the passkey using wpa_passphrase ?
Hello, thanks for the response. Yes, I know that, and I have been using that. But, when I run:
Quote:
iwlist encryption
I get:
Quote:
wlan0 2 key sizes : 40, 104bits
4 keys available :
(1) off
(2) off
(3) off
(4) off
Current transmit key: (1)
The keys are "off" and that is where I am having my probelem. My wpa_supplicant file looks just like yours. I had no trouble connecting when I was using an unsecured network. Any suggestions about what I might be doing wrong?
Hi, yes the card support wpa. The laptop dual boots and Ubuntu handles it fine, but I normally use Slack on the laptop and Ubuntu and Fedora on the Desktop. The only thing in /rc.d/inet1 that deals with WPA is the line:
Quote:
WLAN_IWPRIV(4)="set
Quote:
AuthMode=WPAPSK
Which I have uncommented to make it active.
Hi Eric, thanks, and I have been through your wiki a couple times now. I have a script in /etc/rc.d/ called rc.wifi_wpa which I created from a tutorial I found on the web as I wasn't getting anywhere using the Slack docs. This script is call from rc.local at startup, but doesn't seem to do anything except mess with the dcop server in KDE. Not sure what is going on and why the keys remain off.
Bob
Last edited by BobNutfield; 04-22-2009 at 03:59 PM.
Thanks, I have those entries as well. When I restart wlan0 with /etc/rc.d/rc.inet1 wlan0_restart, I get:
Quote:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
That explains why I keep getting "keys off" when I run iwlist encryption. I guess I have a bad install of wpa_supplicant. I suppose I will have to uninstall and install it again.
Thanks for your replies and help. But it turned out that my wireless was not associated with the hardware address of the access point. As soon as I ran
Code:
iwlist wlan0 00:11:50:91:89:33
The wireless came up. And when I ran
Code:
wpa_cli status
it seemed to solve the wpa problems.
Not sure why, but enough tinkering usually fixes things in Slack. Haven't been defeated yet (with a lot of help here, of course..)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.