Wireless autoconfig
Hi, we are trying to shift a section of laptops from windows to linux at our university, which presents a load of issues since we are just familiar with Linux, and don't have advanced knowledge of it. Another issue is that the users of these laptops have no clue about Linux, so everything must work upon bootup. We figured something like Kubuntu would do a good job, since KDE can be configured to look just like windows, and it's behavior is sorta similar. The problem we are at now is the wireless connectivity. We use PCMCIA wireless adapter, and linux identifies it correctly. The problem is that it doesn't automatically connect to any wireless networks, and for some reason KWifiManager says there are no networks found... Sometimes after some tinkering, we connect to the network, other times we restart, and then after more tinkering with I dont even know what we get to the network... So my question is, is there a program or a script that would run at startup (I guess somehow it needs to be shoved into the init.d?) that would autoconfiger the network card to connect to the wireless network and get the IP address through DHCP?
Thanks, RMSe17 |
Well hello!
I have to get some info, so try the following as root: Code:
ifconfig If it shows that your wifi-card has recieved an ip, super!... but it probably won't since kwifimanager couldn't find any networks... What does this show? Code:
ifconfig -a Try: Code:
iwconfig Code:
iwlist wlan0 scan What was the output of the commands? |
Here is what I get back
Code:
rmse17@RECON:~$ ifconfig -a |
Well, stuff worked out, good for you! Please post what you did in order to make it work so that other persons with the same problem will know how to fix it.
If you want things to be done automatically, I suggest that you write a script which should be executed at boot time or something. You can make a service script (but that differs between distros) or you can call that script from /etc/rc.local which is executed at boot up. If you mean by automatically that you don't want to tell what essid you will connect to, you can choose essid to any. Code:
iwconfig wlan0 essid any Peace! |
Well, it's not really working. It connects to nonexistant network called "tsunami" instead of anything real, and the scan returns no valid results, so it doesnt see any real networks. I have to run the script that will turn on the interface once again, then assign essid, and then run dhcp client. What I need is for this script to run automatically when the PCMCIA card is inserted (whether at boot, or in the middle of working) or perhapse some other way of assigning ESSID upon PCMCIA card insertion. The ESSID is the same, never changes, so I have no problem with hardcoding it, if I knew where to stick it.
Thanks, RMSe17 |
So I found a way that will do it, I added these lines at the bottom of network.opts
Code:
ifconfig eth0 up; |
All times are GMT -5. The time now is 03:39 PM. |