wi-fi configuration in slackware

for wireless configuration stay secure stay alert….quoting from slackdocs as is:

if you need to secure your wireless network traffic, WPA2 should be considered the minimum level of protection required

well i just got my wifi configured and thought i would note and also could share the same
you can do it from either of the slackware turoials in slackdocs or arch tutorial…..i had earlier written the configuration based on my reading in arch linux tutorial and its time to move it below and give way for the slackware approach which makes it stick across sessions…..first system on boot defaults to check for a wired connection if it exists else then will try to check for the wireless…..

way one: slackware tutorial for wifi
the original article is found here…..

below is the configuration for the more newer and updated wpa2 configuration….
you can find the configuration for the older form of encryption(wep or wpa) too in the slack docs on the same page……

iwconfig is the command used to configure but it would not automatically configure the wireless network with wpa2 encryption…..you need a helper daemon namely, wpa_supplicant
for the same…

we have to edit just two files again for the same….then you reboot to get the changes applied…

1. edit /etc/wpa_supplicant.conf file

# /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)
# By default, only root (group 0) may use wpa_cli

# WPA protected network, supply your own ESSID and WPAPSK here:
psk=”secret passphrase”

2. next we edit one more file namely, /etc/rc.d/rc.inet1.conf
rc.inet1.conf is a very powerful file….you list all your necessary wired and wireless connections you want to manage in this file….

# rc.inet1.conf (excert)
# ======================
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
WLAN_ESSID[4]="nest" //replace nest with your wireless network name or essid of the wifi router
#WLAN_RATE[4]="54M auto"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | \
# set EncrypType=TKIP | \
# set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"

you are done…..

reboot your system and slackware will attempt to configure your wireless as yours is all setup and running….


another option apart from rebooting your system is to run the following command

/etc/rc.d/rc.inet1 wlan0_restart

below is an earlier post of mine and i edited to add the above part you just read…i was having minor issues with the below solution…it work sin the session in which we do it and some more restarts….after that it just fails…above one is a sureshot!

way two: archlinux tutorial (caution though: doesnt stick well across sessions….)

below is the link if u want to click right away…..


if you still here below are the core steps to follow:

1. check your wireless device(s) is connected or not and is been identified by the system

# iw dev

2. now bring it up

# ip link set wlan0 up

3. to verify its up enter the following command

# ip link show wlan0

from the output.,
The UP in is what indicates the interface is up, not the later state DOWN.
4.next scan for available wireless networks

# iw dev wlp3s0 scan | grep SSID

5. connect to a network now with the SSID listed or you think is yours…

# wpa_supplicant -B -i wlan0 -c <(wpa_passphrase "ssid" "psk")

now for the above quotes yes SSSID is your wireless network identifier name
and psk is the password for the same….
check behind the box for a NETGEAR wi-fi router( i.e. again if you havent changed the password since you bought the router) and i think it should be the same with others…more or less the same….check with the vendor…..

6. finally, assign an ip address to it…it can be set manually or automatically through dhcpd….

# dhcpcd wlan0

these are the only 6 simple steps you need to get your wifi up and running in slackware…..
now, try browsing your browser without your wired network card….

if it fails try the below steps….

# echo 'ctrl_interface=DIR=/run/wpa_supplicant' > /etc/wpa_supplicant.conf
# wpa_passphrase "ssid" "psk" >> /etc/wpa_supplicant.conf
# ip link set interface up
# wpa_supplicant -B -D nl80211,wext -c /etc/wpa_supplicant.conf -i interface
# dhcpcd -A interface

so thats it from me for now….
till next post happy slacking to you all too!!!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s