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.
In your case, set your router's SSID to linux and the password to slackwarerules and then use the following entry in your wpa_supplicant.conf file. Then run /etc/rc.d/rc.inet1 restart_wlan0. This should connect. If it doesn't, try that wpa_supplicant command again and post the output.
Code:
network={
ssid="linux"
psk="slackwarerules"
}
If that works I am going to pay someone to smack me.
Well I tried but it still errors out. After making sure no other wlan0 is running, I did the /etc/rc.d/rc.inet1 restart_wlan0 and get this output;
Successfully initialized wpa_supplicant
Polling for DHCP server on interface wlan0:
dhcpcd[2869]: version 6.0.5 starting
dhcpcd[2869]: wlan0: waiting for carrier
dhcpcd[2869]: timed out
dhcpcd[2869]: allowing 8 seconds
dhcpcd[2869]: timed out
dhcpcd[2869]: exited
My wpa_supplicant.conf contains this (and only this);
network={
ssid="linux"
psk="slackwarerules"
}
I did indeed verify that my router is broadcasting SSID: linux with PSK: slackwarerules... The encryption is set to AUTOMATIC but can choose TKIP or AES.
Silly question, but what is this wireless device? Please post the relevant output of '/sbin/lspci'.
I am wondering whether you have a Broadcom device that requires you to install a driver and firmware.
Silly question, but what is this wireless device? Please post the relevant output of '/sbin/lspci'.
I am wondering whether you have a Broadcom device that requires you to install a driver and firmware.
Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
It does work in XWindows but that is not to say it in itself has drivers whereas the console does not.
Ah, Slackware non-gui wireless! It took me two days to configure it when i did it for the first time, but it was great exercise in manpages and Slackware's documentation overall .
Now it takes about two minutes to configure it. And i like its simplicity.
Basically, i do just these three steps:
1: Put something like this into /etc/rc.d/rc.inet1.conf
Perhaps you should try using the nl80211 driver instead of the wext driver. One of my Slackware installs is unable to connect if I use the wext driver. On that box I can connect manually with
That's the right psk key; your password is supposed to be commented out (or not present at all).
But how does my router know what psk=fe6e4ac80008014235184f6228e189fc7993512fac0db663fabb4b11eab647e0 is? It is set for "slackwarerules" and there is no PSK option aside from the password I put.
But how does my router know what psk=fe6e4ac80008014235184f6228e189fc7993512fac0db663fabb4b11eab647e0 is? It is set for "slackwarerules" and there is no PSK option aside from the password I put.
Juat read the documentation of that router. It should tell you that it wants a 64-character string (in which case it expects a string of exactly 64 hexadecimal characters) or it will want a character string with a length between 8 and 63 characters (note that that is exactly one character less than the HEX character string requires).
I have had routers which needed either of these two alternatives. It just depends on the firmware of your router.
Well it seems to be working now, but, for reasons I clearly do not know. When I began this expedition I, for whatever reason, was using 5GHz frequency in which everything worked fine. I tried adding my Slackware to that same SSID/freq/PK but as we no, nothing worked. Just now (using the exact information from the 5GHz) I set up the 2.4 GHz and sure enough, Slackware grabs an IP and connects wireless.
Is it possible my particular card (maybe old firmware?) just does not see/scan 5GHz?
All the of information I initially gathered from various posters was indeed correct and extremely helpful as I learned about wpa_supplicant and HEX etc but the end problem seems to be the Ghz.
That certainly explains some things... according to this, your wireless card only supports 2.4GHz.
And to try to clear up your confusion between HEX and ASCII, I'll try with my limited (read: possibly wrong) understanding of WPA.
ASCII, aka passphrase, is a plain-text password that you specify for your network. This makes it easier to remember than the old WEP keys which were only HEX based. However, the password is never sent over the network and is instead coverted into a 64 character HEX using the password and SSID with an algorithm. I believe that HEX key is what's sent over the network. I don't think linux wpa_supplicant requires you to specify the HEX PSK, but allows you to do so. This is likely a security thing to prevent requiring your password to be stored in plain text on your computer (similar to how /etc/shadow just displays a hash for the system passwords instead of plain text passwords). If you're the only one using the computer or you don't care if others can find your WPA password, you're able to easily store it in plain text. If you want to hide that password, you're able to store it in HEX form, using wpa_passphrase to obscure it.
Again, I might be wrong on this, but it's how I understand it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.