Slackware on Toshiba Laptop, No WIFI Scanning Ability
I just installed Slackware on my laptop, and only installed XFCE4 without KDE. Now, when I tried to use wpa_gui, it claims "cannot get status from wpa supplicant". This error doesnt bother me, but the inability to scan for wifi hotspots is troublesome. Since I didnt install KDE, it is saying I dont have kdesu. I assume this is a GUI that asks for a root password when starting root programs. So I run wpa gui either from su, or I have it set to run automatically when I startx.
|
Hi,
you can do it in a terminal. As root execute Code:
ifconfig wlan0 up Markus |
Quote:
|
Any idea haw to set a wifi password from the command line?
Also, I am not sure why, but suddenly wpa_gui has begun scanning and I connected to a wifi hotspot through it. It's strange. I was messing around with wifi-radar, and it scans. Then I tried wpa_gui again and now it scans, though I am not sure why, or what I am doing that suddenly made it work. |
Quote:
Markus |
Quote:
|
Well, wpa-gui may use another mechanizm..... I use only wpa_supplicant to connect to wifi (no NetworkManager or wicd). Here as an example my wpa_supplicant.conf:
Code:
ctrl_interface=/var/run/wpa_supplicant GROUP=0 Markus |
As root I did
wpa_passphrase <ssid> [passphrase] paste that output into wpa_supplicant psk="<paste here>" |
Quote:
|
Interesting, but I cannot configure wpa_supplicant to use a passphrase. I can connect to wifi if it does not need a password, like the public library where I live doesn't ask for a password, so I am able to connect with merely
Code:
iwconfig wlan0 essid "Public Library" Code:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf I tried starting supplicant a few ways. The best I got back was: Code:
bash-4.2# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf |
Quote:
After the authentication was succesfull try Code:
dhcpcd wlan0 Markus |
Quote:
# ifconfig wlan0 up # wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 # dhcpcd wlan0 I am not sure if any of these are irrelevant or not. |
You could put this in a script and start it automatically. But actually I meant this steps to show that the wireless adapter of your laptop and the accesspoint are really working.
If you have this wireless network always available when the laptop runs, you could put those three lines of code into your /etc/rc.d/rc.local You could also put a line with iwlist between this lines and check if your wireless network is available. But actually there is networkmanager or similar tools which should do this. Markus |
Quote:
Still working it out though, and as you say, putting these these commands in a startup script could save trouble. |
All times are GMT -5. The time now is 01:36 AM. |