LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-05-2014, 02:05 PM   #31
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10

Quote:
Originally Posted by bassmadrigal View Post
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.
 
Old 12-06-2014, 05:07 PM   #32
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Any update?
 
Old 12-06-2014, 06:57 PM   #33
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Talking

Quote:
Originally Posted by bassmadrigal View Post
Any update?
Last night I got off too late to feel the desire.. I just got home and am attempting now... Update soon
 
Old 12-06-2014, 07:16 PM   #34
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
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 inet1.conf included this wlan0 info;

IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]=""
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"

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.
 
Old 12-06-2014, 07:40 PM   #35
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
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.
 
Old 12-06-2014, 08:03 PM   #36
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by allend View Post
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.
 
Old 12-06-2014, 08:25 PM   #37
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 280

Rep: Reputation: 98
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
Code:
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_ESSID[4]=DARKSTAR
WLAN_WPA[4]="wpa_supplicant"
more lines were never needed, but ymmv.

2: Do
Code:
wpa_passphrase ESSID PASSWORD >> /etc/wpa_supplicant.conf
to put the right info there

3: restart the inet1 daemon
Code:
/etc/rc.d/rc.inet1 restart
And it works
 
Old 12-06-2014, 08:27 PM   #38
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 280

Rep: Reputation: 98
Quote:
Originally Posted by BAcidEvil View Post
My wpa_supplicant.conf contains this (and only this);

network={
ssid="linux"
psk="slackwarerules"
}
You definitely miss the crazy long psk key there.
 
Old 12-06-2014, 08:45 PM   #39
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Captain Pinkeye View Post
You definitely miss the crazy long psk key there.
The password I want to use (as every other device does) is "slackwarerules". That is what my Router is set for.
 
Old 12-06-2014, 09:29 PM   #40
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 280

Rep: Reputation: 98
Quote:
Originally Posted by BAcidEvil View Post
The password I want to use (as every other device does) is "slackwarerules". That is what my Router is set for.
Yep, but psk key is something different. You have to generate it with wpa_passphrase command, and put it into wpa_supplicant.conf as well.

Using
Code:
wpa_passphrase linux slackwarerules
I got
Code:
network={
	ssid="linux"
	#psk="slackwarerules"
	psk=fe6e4ac80008014235184f6228e189fc7993512fac0db663fabb4b11eab647e0
}
That's the right psk key; your password is supposed to be commented out (or not present at all).
 
Old 12-06-2014, 09:55 PM   #41
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
Quote:
Originally Posted by BAcidEvil View Post
bash-4.2# wpa_supplicant -dd -c/etc/wpa_supplicant.conf -Dwext -iwlan0
*Snip*
WEXT: cfg80211-based driver detected
wext: interface wlan0 phy: phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=2 op=0 soft=0 hard=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0x1f flags 0x0
netlink: Operstate: linkmode=1, operstate=5
wlan0: Own MAC address: 1c:3e:84:b0:5f:05
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
*snip*
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
Code:
wpa_supplicant -B -i wlan0 -D nl80211 -c /etc/wpa_supplicant.conf
dhcpcd wlan0
See if something similar works.
 
Old 12-06-2014, 10:05 PM   #42
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Captain Pinkeye View Post
Yep, but psk key is something different. You have to generate it with wpa_passphrase command, and put it into wpa_supplicant.conf as well.

Using
Code:
wpa_passphrase linux slackwarerules
I got
Code:
network={
	ssid="linux"
	#psk="slackwarerules"
	psk=fe6e4ac80008014235184f6228e189fc7993512fac0db663fabb4b11eab647e0
}
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.
 
Old 12-07-2014, 05:19 AM   #43
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by BAcidEvil View Post
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.

Eric
 
Old 12-07-2014, 01:42 PM   #44
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10
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.
 
Old 12-08-2014, 09:17 AM   #45
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ping from Slack not to Slack ( Usb wireless card Atheros AR9271) andre.it Linux - Networking 1 07-22-2012 02:19 PM
suse 11.4 wireless setup questions sfzombie13 Linux - Networking 4 02-26-2012 01:08 PM
[SOLVED] Slackware wireless networking setup w/Broadcom Wireless BCM4311 NIC on HP DV9000 astanton Slackware 14 12-30-2010 07:37 PM
Just installed Slack 13, a couple of wireless questions. Twister512 Slackware 11 03-28-2010 06:45 AM
Slack 10.1 PC card Linksys Wireless setup help nerdism Linux - Wireless Networking 2 02-28-2005 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration