I need my machine to connect to a wireless network automatically every time it starts
I'm running a headless server (10.04) and I use following commands to manually connect to the network
sudo iwconfig wlan0 essid "SSID_Name"
sudo iwconfig wlan0 key XXXXX
sudo iwconfig wlan0 key open
sudo iwconfig wlan0 mode Managed
sudo dhclient wlan0
I will appreciate if we can do that by modifying etc/network/interfaces file
Please note that my router is running wep, thanks in advance