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.
I have set up my laptop to connect using the ipw2200 with WPA to my home network and it works great. But, I have started school again and my campus has wireless all over the place, but I cannot connect to it.
It is a open network which anyone can connect to, but requires your student ID and password once you open a web browser.
So, when I boot up it normally tries to connect to my home network first, then any essid it can find. However, when I booted up at school, my laptop froze when trying to connect to the school network.
inet.d
Code:
# Config information for eth1:
IFNAME[1]="eth1"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
WLAN_WPA[1]="wpa_supplicant"
WLAN_WPADRIVER[1]="wext"
rc.wireless.conf
Code:
## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="any"
;;
## ---------- END SECTION TO REMOVE ------------
Everything else is commented out in both files.
Is there some sort of wireless manager I can use on startup instead?
If it makes a difference I have acpi=off because my wireless, sound, and usb devices don't work without that off.
Hopefully I can get this resolved since my laptop is useless at school right now.
I only have the default entry provided at the bottom and my personal home network in my wpa_supplicant.conf
Could I just add an entry for my school since I know the essid? Like so:
Code:
network={
ssid="BCIT"
key_mgmt=NONE
}
You could, but it should also work with the ssid="any".
You should try connecting manually, as already suggested. You can also run wpa_supplicant manually with the -d option to see what it is doing. Does "iwlist eth1 scanning" show your school network?
That's a problem since when I try and boot it hangs when it tries to connect to my schools network. Which means I cannot login, therefore cannot afford to be testing a different setting everyday.
Try commenting the settings in inet.d so it doesn't attempt to configure when booting, then try to connect manually. If that works you might prefer to make a small shell script to activate your connection depending on where you are after the computer is started.
#!/bin/bash
case $1
home)
dhclient wlan0
iwconfig wlan0 wpa_supplicant ...
school)
dhclient wlan0
esac
Of course this is just an example. I made something similar because I was collecting access points all over the place.
A shell script such as this would have to be run manually from the console or an xterm window, because you need to supply a parameter to tell it where you are so that it configures eth1 appropriately. If it works, that's cool. If not, it didn't hurt anything to try and you learned something about scripting. Also if it works it only takes a couple of times using it for it to become second nature.
It's actually a short version of what I use on my desktop and laptop. Mine has gotten quite complex because I have different usb wifi adapters for the desktop and different pcmcia ones for the laptop. And as I find more access points for the laptop I add them to the script.
Whatever you decide for the filename will be the name of the command. It's a plain text file so you can create it with any text editor. It can be kept in your home directory and run from there. The only syntax problems I see are:
1. You forgot case $1 in before the actual cases. This is how the script knows to accept a parameter. The parameter, as you define, is either House or BCIT.
2. "House" and "BCIT" should be written as House) and BCIT)
3. There has to be a ;; at the end of each case section
I haven't wep or wpa so I don't know about the syntax for it. I would add this little bit _after_ the BCIT section.
case *)
echo "usage: wlan [House|BCIT]"
exit 1
;;
This is assuming the script is called wlan. This means that anything other than House or BCIT simply prints the usage line and then stops. So if it's in your home directory, after you login, before starting X or from an xterm simply type
wlan House
or
wlan BCIT
If you get any errors (I don't think you would) you may need to run it with root permission using su -. Mine has to run with su because I set everything static instead of dhcp.
No, I'm using Slackware 12.0. Good news is that I was connected at my school today. I just commented out all the settings in the wireless.rc and set my eth1 dhcp to yes, which got me connected.
I have been playing with the Kwifimanager but it doesn't seem to offer and WPA settings. There is a section for executing a script on connect and I tried to put etc/wpa_supplicant.conf in there but that did not work.
That is good news. And thanks for clearing up any distro confusion. I think I tried kwifimanager once but was thoroughly unimpressed. IMO, gui apps for network configuration aren't reliable or informative enough. All I need is ifconfig, iwconfig and xterm.
I know little-to-nothing about wpa, but if that .conf file isn't an executable script that would be why it didn't work. You could try to use part of the script that you started earlier.
Save it as whatever name you want then run chmod +x on it to make it executable and point the "execute on connect" field to it.
Although wpa is better than wep, it's still hackable. In my home network I use MAC address filtering. If your nic's MAC address isn't in the router's list of allowed devices you can't connect to my router.
Although wpa is better than wep, it's still hackable. In my home network I use MAC address filtering. If your nic's MAC address isn't in the router's list of allowed devices you can't connect to my router.
WPA is only hackable using dictionary attack. If you use a not-easily guessable passphrase to generate your key, then your WPA encryption is virtually unbreakable.
And remember, spoofing a MAC address is a possible attack vector too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.