Ubuntu – Command line join of password protected wireless networks in Ubuntu, Arch Linux, or other distros

arch linuxcommand lineUbuntuwifi

Is there a way to join a password protected wireless network via the command line in installations of Ubuntu or Arch Linux with no desktop environment or any GUI installed?

Also, could this be done during a text-based installation and set up of those systems? Just for example, this might be important when installing (without a GUI) from a live CD where many packages need to be downloaded, but only a password protected wireless network is available.

Thanks.

Best Answer

The package you are looking for is called wpa_supplicant, it handles logging into protected wireless networks.

If you use it from Ubuntu (or other debian based distributions) it's fairly easy to set up and the process is rather simple (check the debian wiki for a few pointers). I don't know much about arch linux but it shouldn't differ too much.

If you still want the convenience you know from desktop environments or are for some other reason tied to network-manager you can use the cnetworkmanager (website) package that allows you to talk to the network-manager daemon from a terminal.

Related Question