[SOLVED] Slackware on Toshiba Laptop, No WIFI Scanning Ability
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
this should show you the wifi hotspots (and shows that wifi is working on your laptop).
Markus
Iwlist is annoying in that it only works under root. I made a symlink to my user bin folder and now run it under a normal user. Yes, that works well enough. I guess I can use that instead.
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.
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:
paste that output into wpa_supplicant psk="<paste here>"
Yes, I am still not 100 percent efficient at connecting to WIFI this way. I just failed for a good 30 minutes to connect to the hotspot that I connected to yesterday.
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"
ifconfig wlan0 up
and that is sufficient to connect to passphraseless library signal. Though at a coffee shop that has a passkey, I try using something like
...
But this in no way allowed me the surf the web. It appears like it is connected but the browser cannot go to any websites.
Well, wpa_supplicant manages only the authentication to the accesspoint. You will have to use a dhcp-client programm afterwards in order to require an IP-configuration.
After the authentication was succesfull try
Code:
dhcpcd wlan0
as root. This should give you an IP-configuration (IP-adress, gateway, mask and nameserver(s)). You can check this with "ifconfig" and "cat /etc/resolv.conf".
Well, wpa_supplicant manages only the authentication to the accesspoint. You will have to use a dhcp-client programm afterwards in order to require an IP-configuration.
After the authentication was succesfull try
Code:
dhcpcd wlan0
as root. This should give you an IP-configuration (IP-adress, gateway, mask and nameserver(s)). You can check this with "ifconfig" and "cat /etc/resolv.conf".
Markus
Thanks so much, that worked immediately. these are the commands I used in order:
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.
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
I made some bash-aliases actually, just simple alias words like "wiup", "pass", and "connect". I was thinking of combining them into one alias "connect", and also I made soft links of wpa_supplicant, etc, into my bin folder, so I only had to add "sudo" to the aliases. If that works, I only type "connect" then my sudoer's password.
Still working it out though, and as you say, putting these these commands in a startup script could save trouble.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.