The wireless connection we have at work drops out on a number of occasions throughout the day and thus requires me to reactivate via:
System>Administration>Network
I find the whole thing time consuming and annoying.
Could i create a shell script with user privileges whereby i would just click on a link to reconnect/ repair my connection and also for automatic connection when it drops. This would be really useful.
This is how i set up my rt73 usb adapter in which i compile myself from
http://rt2x00.serialmonkey.com/wiki/index.php/Downloads
Code:
gedit /etc/sysconfig/network-scripts/ifcfg-wlan0
Code:
# rt73
DEVICE=wlan0
BOOTPROTO=dhcp
HWADDR=00:0E:2E:CE:72:D1
ONBOOT=yes
TYPE=wireless
Also another question that has been bugging me for a long time is how to connect using
dhcp in the terminal. For a static address i use the following:
Code:
su -
modprobe rt73
ifconfig wlan0 up
iwlist wlan0 scan
iwconfig wlan0 ap any
ifconfig wlan0 192.168.1.102 netmask 255.255.255.0
echo nameserver 192.168.1.1 > /etc/resolv.conf
echo nameserver 203.121.130.39 >> /etc/resolv.conf
echo nameserver 203.144.255.72 >> /etc/resolv.conf
route add default gw 192.168.1.1
ifconfig -a
johnny