Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-30-2013, 10:31 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2013
Location: Vancouver, Canada
Distribution: Slackware 14.0
Posts: 25
Rep: 
|
How do I set an ASCII key with iwconfig
In Slackware 14.0, according to
# man iwconfig
the following is supposed to set ascii key "blablabla"
# iwconfig wlan0 key s:blablabla
I get the following message instead
SET failed on device wlan0 : Invalid argument.
Am I doing something wrong, or is this a bug?
|
|
|
|
02-01-2013, 02:18 AM
|
#2
|
|
Member
Registered: Mar 2008
Location: Malta
Distribution: Slackware 14.0
Posts: 434
Rep:
|
According to http://superuser.com/questions/42460...lays-in-ubuntu
You need to satisfy one of these conditions:
ascii string that's exactly 5 characters in length
ascii string that's exactly 13 characters in length
You may have tried this for academic reasons, but otherwise, wicd or network-manager are highly recommended.
|
|
|
1 members found this post helpful.
|
02-01-2013, 04:40 AM
|
#3
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,610
|
I also recommend quotes around the password:
Code:
iwconfig wlan0 key "s:blabl"
|
|
|
|
02-02-2013, 09:53 PM
|
#4
|
|
LQ Newbie
Registered: Jan 2013
Location: Vancouver, Canada
Distribution: Slackware 14.0
Posts: 25
Original Poster
Rep: 
|
Partly Solved
If I set the password to exactly 13 characters in length, then
# iwconfig wlan0 key restricted "s:blablabla "
is accepted (note trailing blanks to make 13 character phrase)
however,
I am unable to connect to the network, and
# ifconfig wlan0
does NOT show an INET address line with an IP address
(although an INET6 line is shown)
How should I proceed from here?
|
|
|
|
02-02-2013, 09:56 PM
|
#5
|
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 1,858
|
you need to ask for IP Address using dhcpcd wlan0 or dhclient wlan0
|
|
|
|
02-03-2013, 02:40 PM
|
#6
|
|
LQ Newbie
Registered: Jan 2013
Location: Vancouver, Canada
Distribution: Slackware 14.0
Posts: 25
Original Poster
Rep: 
|
It workd with Key Off
I got an IP address if I did the following
# ifconfig wlan0 up
# iwconfig wlan0 essid "open"
# iwconfig wlan0 key off
# dhclient wlan0
# ifconfig wlan0
I got no IP address if I did the following
# ifconfig wlan0 up
# iwconfig wlan0 essid "ciphered"
# iwconfig wlan0 key restricted "s assphrase "
# dhclient wlan0
# ifconfig wlan0
Can you tell me what is wrong?
|
|
|
|
02-03-2013, 03:32 PM
|
#7
|
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 595
|
If you embed blanks in the passphrase by using them within quotes, they will be considered part of the passphrase and will no longer match a passphrase that doesn't have the blanks. I'd suggest looking at the information in your router to find the equivalent hex key and using that to connect instead.
|
|
|
|
02-03-2013, 03:44 PM
|
#8
|
|
LQ Newbie
Registered: Jan 2013
Location: Vancouver, Canada
Distribution: Slackware 14.0
Posts: 25
Original Poster
Rep: 
|
How does Windows translate the passphrase into a hex key?
The passphrase I enter in my Router works with Windows.
The Router "manual" (on CD) doesn't give encoding.
p.s. I am using a LinkSys EA2700 Router. I have found that
some Routers, such as the "D-Link" DIR-601, refuse to
work with Linux, even when hard-wired...
|
|
|
|
02-03-2013, 04:40 PM
|
#9
|
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 595
|
Try this conversion form (no, it won't send your private key across the network):
http://jorisvr.nl/wpapsk.html
This will give you the hex key that you can connect with instead.
Also, I'm using a non-compliant length passphrase here with NetworkManager. The limitation you're running into is with iwconfig -- if you use a tool like wicd or NetworkManager you should be able to connect using your existing passphrase.
|
|
|
1 members found this post helpful.
|
02-04-2013, 06:57 PM
|
#10
|
|
Member
Registered: Dec 2012
Location: Maryland, US
Distribution: Slackware, Linux Mint
Posts: 48
Rep: 
|
Quote:
|
You may have tried this for academic reasons, but otherwise, wicd or network-manager are highly recommended.
|
I'm assuming this person tried using iwconfig and fussing about with the wpa_supplicant.conf file after reading AlienBOB's Wiki page on "Configuring your network in Slackware." I was intending to finish reading it, but let me know if it's out of date and I needn't bother. I can connect to my LAN wirelessly only when running KDE. For some reason my system doesn't connect when I boot into the CLI. I'm guessing I messed up one of the files referenced in the Wiki.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:02 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|