Disabling/enabling the wireless card
Hello,
I have an installation of Kubuntu running on a laptop, and I'm also part of a wireless network that has WEP security. Kubuntu is completely unable to deal with WEP and wireless, I have no idea why. Nevertheless, I went to the console, and wrote the following script: Code:
#!/bin/sh Thanks! |
Look for a Kubuntu network interface configuration. I think that you are using only the KDE's kcontrol, and not the systems configuration. You can probably configure the wireless device there, including the wireless authentication settings. I just use the wireless interface on my laptop at home, so I set the wireless interface to start on boot, and the NIC interface to start on connection ( this changes the hotplug configuration ). On my system, the wireless interface configuration is contained in the file /etc/sysconfig/network/ifcfg-wlan0. Several distro's use the same location for this file.
Look in your Kubuntu documentation, for information on "interface configuration". |
Naw, that file deosn't exist and I've given up trying to do this through GUI. Can you please give me the shell code to enable and disable the interface? It's called eth1 on my comp. Thanks. :)
|
I'm also useing a script for my wifi I'll post the whole script if you'd like (it's an asus wl-167g)
but maybe try adding: ifconfig eth1 down ifconfig eth1 up to your script this should reset the card from your script. |
You may need to read through the boot up scripts. They may have names suggesting what they do, and probably source a configuration file. If you can locate the configuration file for the interface itself, then editing that file should work, however, there may be other files involved. For example, a GUI configuration for the interface would have an option on when you want the device configured. The dialog will mainly edit the interface configuration, but also make appropriate changes to others such as /etc/ifplugd/ifplugd.action and /etc/ifplugd/ifplugd.conf.
If your system has a file similar to my ifcfg-wlan0 configuration, you could grep for likely strings containing the same information. sudo egrep -iR 'WIRELESS_KEY_[0-3]=' /etc/* sudo egrep -iR '(WIRELESS_MODE|AUTH_MODE|BOOTPROTO=)' /etc/* The resulting file found could be either a configuration file, or a script that sources it. For example, on my system, a script contains these lines: Code:
###################################################################### Also, if you find a configuration file, they often have their own man page. Such as ifplugd.conf Your system may have an "ifup" script. Try "locate ifup". Read through the script; it probably sources the config files that you need to use. These config files may even have their own manpages as well. |
Okay, thanks...I'm a bit disappointed with the fact that Ubuntu/Kubuntu cannot handle secured connections through their GUI, and that I need to run a script to do it (on the upside, it's only three lines). Thanks for the suggestions, I'll see what I can dig up.
|
All times are GMT -5. The time now is 07:11 AM. |