Solved

Set up wireless in Slackware

Posted on 2014-12-04
4
253 Views
Last Modified: 2014-12-06
I need a simple step-by-step instruction to setting up a wireless client in Slackware. Believe it or not, I've set up a wireless Master in Slackware, but the Managed mode is defeating me. As I [mis]understand things thus far, there are wireless settings in /etc/rc.d/rc.inet1.conf, but rc.inet1 runs rc.wireless which basically runs iwconfig using settings  in etc/rc.d/rc.wireless.conf, but iwconfig cannot set the WPA password -- that has to be done with wpa_supplicant also run from rc.wireless? with its own /etc/wpa_supplicant.conf?

OK, I'm lost! I have 3 parameters: wlan0, ESSID = myESSID, and password = myPassword; what do I set in one or more of /etc/rc.d/inet1.conf, /etc/rc.d/wireless.conf and/or /etc/wpa_supplicant.conf, and wherever else as needed to get this working?

Thanks!
0
Comment
Question by:jmarkfoley
  • 2
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 40484478
first for managed mode you will need wpa_supplicant. This can handle everything that is needed.
For managing the Wifi connection.

To be sure we're on the same page
http://docs.slackware.com/slackbook:wifi
And look for the chapter "Wifi Protected Access"  (wpa). It mentions an wpa setup file.

wpa_supplicant has it's own config file: /etc/wpa_supplicant.conf

The needed changes in rc_inet1.conf are mentioned after that, with guidance.

Dont dive into wicd before you have a better understanding of networking.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 40484741
> Dont dive into wicd before you have a better understanding of networking.

I've been doing network management for years and, as I mentioned, have set up several wireless Masters on both Slackware, Debian and Raspian. I've also set up a wireless client on Ubuntu. It's not networking I don't understand, just the myriad of confusing programs, scripts and config files on Slackware. While I favor Slackware generally, this particular setup has me scratching my head. I'll check out your link and post back with results.

Thanks.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 40484757
Well, that was a snap! Basically the same 6 settings I had already sorted out in /etc/rc.d/rc.inet1.conf:
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
WLAN_ESSID[4]=myESSID
WLAN_WPA[4]="wpa_supplicant"

Open in new window

And the /etc/wpa_supplicant.conf example supplied in the link, which I'll reproduce here for future lost boys:
# /etc/wpa_supplicant.conf
# ========================
# 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
#country=US

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
  scan_ssid=1
  ssid="mySSID"
  key_mgmt=WPA-PSK
  psk="myPassKey"
}

Open in new window

All I needed to do then was `/etc/rc.d/rc.init wlan0_start`

THAT'S what I was looking for! Some one simple place that I could see exactly what needs to be set and where. I searched all over for this with no luck.

Thanks for the link to http://docs.slackware.com/slackbook:wifi. I've never used SLACKBOOK before, and I believe it will be very useful.

I will try the link's recommended wired and wireless network connection manager wicd in the near future. That look like exactly what I want for managing connection to multiple wireless networks at this computer is destined to travel a lot.
0
 
LVL 40

Expert Comment

by:noci
ID: 40484883
agree,but you need to know more about the network plumbing for that.
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question