You are not logged in.
Hi everyone.
Today I'm on Paris, and I want to connect my laptop to my Wifi, 'cause I've the ethernet cable connected to my laptop everytime, and I don't like it.
I've done a script to connect to my Wifi. Security options are the same at my home & here, but here, it doesn't works, and I don't know why. In two places the essid is masked.
I searched until midnight yesterday, but I didn't find.
Can someone help me ?
Last edited by Cr0k (2009-11-03 00:51:45)
Offline
Please post more details about the problem - how do you connect, what security, where does it fail, errors etc.
If you encounter network errors, it is always a good idea to try connecting manually from the console (wpa_supplicant/iwconfig/ifconfig), you will get a lot more information about what goes wrong at which step that way.
Offline
I try to connect with iwconfig, the script I've done is iwconfig's commands.
The only error I have is "dhcpcd : timed out"
Offline
That usually means you have not associated successfully with the wireless AP. Run your iwconfig command manually, and check if you are associated.
Offline
Yeah ! I solved it.
I don't know why, but if I use a script, with at the end "[...] iwconfig wlan0 essid my-essid && dhcpcd wlan0", here it doesn't work.
BUT if I remove from the scripts the dhcpcd command, and if I do it after the script execution, it works.
Any idea to explain this ?
Offline
The iwconfig command will execute successfully, followed immediately by the dhcpcd command. However WEP authentication and association is not immediate, so dhcpcd times out. You could try "sleep 5" in between.
Offline
Ok, so it will be : "[...] iwconfig wlan0 essid my-essid && sleep 5 && dhcpcd wlan0" ?
Edit : I tried with sleep 1, it works flawless
Thanks all
Last edited by Cr0k (2009-11-03 09:36:34)
Offline