LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I modify wpa_supplicant.conf (http://www.linuxquestions.org/questions/slackware-14/how-do-i-modify-wpa_supplicant-conf-719256/)

JibberingJ 04-15-2009 05:19 AM

How do I modify wpa_supplicant.conf
 
I can read the content of the file, but how do I go about editing the information I need to connect to my secured network through the BASH?

JibberingJ

Yalla-One 04-15-2009 05:57 AM

Hi,

First you need to be root to edit the file - either login as root, or use the "su" command to change temporarily into root.

Then use your favorite editor (vi, pico, joe, emacs) to open wpa_supplicant.conf and make the changes you need.

What to edit depends on how your access point is set up. For WPA2, my config looks like this:
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        ssid="<my ssid>"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP
        psk="<my secret key>"
        priority=1
}

Note that you may also consider using wicd to control your wireless network connection since it automagically controls your wpa_supplicant and the likes and is configured through a gtk gui.

-y1

onebuck 04-15-2009 07:07 AM

Hi,

Look at 'Configuring your network in Slackware'. Another Alien_Bob wiki to aid you in your setup.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!


All times are GMT -5. The time now is 05:36 PM.