On Tue, Apr 26, 2011 at 9:16 AM, Marcelo Laia <marcelol...@gmail.com> wrote: > Hi, > > I am in a hidden wireless network when I could connect in it set this > commands in /etc/network/interfaces: > > auto wlan0 > iface wlan0 inet static > wpa-driver wext > wpa-conf managed > wpa-ssid BLABLABLABLA > wpa-ap-scan 2 > wpa-proto WPA RSN > wpa-pairwise TKIP CCMP > wpa-group TKIP CCMP > wpa-key-mgmt WPA-PSK > wpa-psk 350115281df535db8ddb500479b5101dc84ee597043f7d8e7f8b2437a214dee0 > address 10.xxx.xxx.xxx > netmask 255.255.255.0 > gateway 10.xxx.xxx.xxx > > How I could do that by command line? > > I need because I am very sad to need to change my interfaces all the > day! In my house I have an AP and I connect to it by NM. So, at night > I connect by NM and at morning I need to start my note, change > /etc/network/interfaces and restart the note!
i guess u mean networkmanager by NM and laptop by note, right? restarting? just edit the interfaces file and then run $ ifdown wlan0 && ifup wlan0 if u need to change ur configuration each time before u connect to wifi, comment out the "auto wlan0" line. i still don't see why u have to modify the interfaces file repeatedly. do u keep changing AP, or does the router reset it's psk or something alike every day? perhaps u can put you /etc/network/interfaces this way if there are a known number of working configurations. =-= iface wlan0 inet static iface wlan-ap1 inet static wpa-ssid xxx wpa-psk xxx address xxx (more parameters) iface wlan-ap2 inet static wpa-ssid yyy wpa-psk yyy address x (more parameters) =-= then connect to them respectively with $ ifup wlan0=wlan-apN hope this can be helpful. Cheers, Tao -- http://huangtao.me/ http://www.google.com/profiles/UniIsland School of Mathematical Science Peking University -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/banlktim2gwyg04xwsjdnsfjdb4np0fx...@mail.gmail.com