LinuxQuestions.org
Visit Jeremy's Blog.
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 04-05-2015, 09:03 PM   #1
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Rep: Reputation: 25
set the key for wlan0


I am trying to get the WiFi working under Slackware64 14.1 and iwconfig returns the following:
wlan0 IEEE 802.11bgn ESSID:"TRENDnet652"
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementff

However the key keyword generated a warning and encryption is not set. Can someone help me to get this problem resolved? Thanks.
 
Old 04-05-2015, 09:14 PM   #2
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by rdx View Post
I am trying to get the WiFi working under Slackware64 14.1 and iwconfig returns the following:
wlan0 IEEE 802.11bgn ESSID:"TRENDnet652"
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry long limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementff

However the key keyword generated a warning and encryption is not set. Can someone help me to get this problem resolved? Thanks.
The WiFi is known to work with the same router (TRENDnet652 ) and same computer under Windows 8.1.
 
Old 04-05-2015, 11:51 PM   #3
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Are you using wicd, networkmanager, or none of the above?
 
Old 04-06-2015, 12:23 AM   #4
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by ryanpcmcquen View Post
Are you using wicd, networkmanager, or none of the above?
I guess none of the above. I was trying to set up rc.wireless to initial wlan0 in the same way as eth0.
 
Old 04-06-2015, 02:39 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
The use of rc.wireless is now deprecated. For the full chapter and verse on what you are trying to do, I suggest this

Last edited by allend; 04-06-2015 at 02:42 AM.
 
2 members found this post helpful.
Old 04-06-2015, 08:45 AM   #6
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Here is my quick and dirty WiFi guide for the setup I think you are going for:

https://github.com/ryanpcmcquen/linu...icantSetup.txt

Still I would recommend wicd or networkmanager (wicd even has a great curses interface, and networkmanager probably will in the next Slackware release).
 
Old 04-06-2015, 08:53 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Just for the record, NetworkManager is part of the standard Slackware install since 14.0
 
1 members found this post helpful.
Old 04-06-2015, 10:22 AM   #8
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by ryanpcmcquen View Post
Here is my quick and dirty WiFi guide for the setup I think you are going for:

https://github.com/ryanpcmcquen/linu...icantSetup.txt

Still I would recommend wicd or networkmanager (wicd even has a great curses interface, and networkmanager probably will in the next Slackware release).
I didn't find either wicd or networkmanager. Maybe a PATH thing, I'll look into it. These are accessible from console interface?

---------- Post added 04-06-15 at 10:23 AM ----------

Quote:
Originally Posted by allend View Post
The use of rc.wireless is now deprecated. For the full chapter and verse on what you are trying to do, I suggest this
This looks promising, looking into it, thanks.

------------------------------------------------------------------------------

I'm trying to set up the WiFi first with iwconfig, then once it's working I can move the proper entries to rc.net1. I'm a bit confused about the index e.g., [4] and why it never seems to be [0] or [1]

To clarify the situation, I have a cable modem feeding internet to a router at home. I have my desktop in another room connected via WiFi.

Last edited by rdx; 04-06-2015 at 10:33 AM. Reason: added
 
Old 04-06-2015, 10:47 AM   #9
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
wicd is in slackware/extra while networkmanager is in by default (as NetworkManager, nm*)

wicd i know has a curses interface, idk about NM
NM has a gtk interface called nm-applet


that said, if you have a stable connection you don't need either of those
WEP is easy to set up, and goes something like this
Code:
ifconfig wlan0 up
iwconfig wlan0 essid name key s:key channel chan_num
#channel number is optional to make sure it's the right AP, BSSID would be better though
killall -9 dhcpcd
dhcpcd wlan0
WPA requires making a /etc/wpa_supplicant.conf and starting the supplicant, that i never did

and that's the basics of what rc.inet1 comes down to

PS iwconfig has a successor called iw that i find does the same thing by using more words
iwconfig should work for the foreseeable future

Last edited by genss; 04-06-2015 at 10:54 AM.
 
Old 04-06-2015, 10:57 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
dk about NM
NetworkManager has 'nmcli' as a curses interface. The problem with nmcli is that it cannot use the secrets required for wireless with WPA2. The nm-applet interface is required for that.
wicd has the much nicer curses interface 'wicd-client', but cannot be used with USB modems.
 
1 members found this post helpful.
Old 04-06-2015, 11:05 AM   #11
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
i should read better

Quote:
Originally Posted by rdx View Post
...However the key keyword generated a warning and encryption is not set. Can someone help me to get this problem resolved? Thanks.
WEP or WPA ?
key is a string or hex ?
string key needs "s:" as a prefix (man iwconfig)
 
Old 04-06-2015, 11:43 AM   #12
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
Back in the days that I was doing wireless connections, I tried wicd (this was before 14.0 when NetworkManager was included). Unless I just couldn't figure it out, it would never connect to the wireless soon enough to mount my network share drives during startup (this was a media center pc that relied on those network drives). I ended up switching to just having rc.inet1 manage my connection. It may be a bit difficult the first time, but once you get the handle of it, it is relatively easy (although, certainly not on par with GUI interfaces with NetworkManager or wicd). Also, if this is a laptop and has the potential to connect to new networks frequently, it may be beneficial to go with the GUI options, since it is much quicker to add a network that way. That being said, if I remember correctly, this is what you would need to do to connect to a WPA network using just rc.inet1 and wpa_supplicant (I assume you aren't using WEP, because you really shouldn't be).

But the slackbook wiki has fairly detailed information on getting rc.inet1.conf and wpa_supplicant set up. Make sure you read the section about WPA2 to get your wpa_supplicant set up properly.
 
Old 04-07-2015, 12:19 AM   #13
rdx
Member
 
Registered: Apr 2007
Location: Dallas
Distribution: Slackware64 14.2
Posts: 283

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by allend View Post
Just for the record, NetworkManager is part of the standard Slackware install since 14.0
I am baffled by this because I do not find NetworkManager. Using KDE I can go into system setup and find a number of config paged but they don't seem to address the parameters I'm trying to get at. There is a tray icon which says Network Management and when I click it, it says "NetworkManager is not running. Please start it." But I am not finding it.
 
Old 04-07-2015, 06:38 AM   #14
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
You would need to make /etc/rc.d/rc.networkmanager executable and run it before you can use the applet in KDE. If you don't have that file, then you didn't install NetworkManager (which is part of a full installation). To make it executable and start the service, as root, run:

Code:
chmod +x /etc/rc.d/rc.networkmanager
/etc/rc.d/rc.networkmanager start
Or you can just run netconfig and follow the prompts to get it set up.
 
1 members found this post helpful.
Old 04-07-2015, 06:44 AM   #15
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
If you have edited /etc/rc.d/rc.inet1.conf and then want to use NetworkManager, it is recommended that you revert to a clean /etc/rc.d/rc.inet1.conf. http://www.linuxquestions.org/questi...9/#post5236776
 
1 members found this post helpful.
  


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
Ar9485 - SET failed on device wlan0 glenn69 Linux - Networking 10 03-13-2013 05:12 PM
SET failed on device wlan0 ; Invalid argument kashifchughtai Linux - Networking 2 03-22-2011 07:26 AM
I have to set up the wlan0 up every time the system is rebooted Fuzia Linux - Wireless Networking 11 04-14-2006 04:15 PM
setting wlan0 key sublyme718 Linux - Wireless Networking 1 11-06-2005 03:30 PM
dhclient wont set wlan0 AM1SHFURN1TURE Linux - Wireless Networking 5 07-26-2005 03:08 PM

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

All times are GMT -5. The time now is 01:15 AM.

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