View Full Version : [ubuntu] Entering wireless password on multiple computers

October 31st, 2011, 05:06 PM

I need to configure a number of machines to access my school's wireless network. I have a script that modifies a number of other configurations such as samba automatically, through configuration files.

Is there a way to enter the wireless network password through a terminal command?

October 31st, 2011, 05:35 PM
Do you mean the WPA2, WEP password? If so, use iwconfig to set this and the network, etc.

October 31st, 2011, 06:09 PM
you can specify it in your /etc/network/interfaces file i believe

The Cog
October 31st, 2011, 10:06 PM
If you edit the network connections on one PC (using the network manager widget in the system tray) and check the box to make it available to all users, then a config file is created in /etc/NetworkManager/system-connections/. A separate file is created for each connection. You can copy this file(s) to the same location in other PCs and they will immediately connect. No restart needed.

November 2nd, 2011, 05:31 PM
Thank you all. I ended up configuring the first batch manually, but I will try to use this information on the next batch.