I have Ubuntu server on an old laptop which I built at home, connected to my home Wi-Fi.
This is a portable server and during the course of the day I change the location and I need to connect to a new Wi-Fi SSID from the command line.
All of the options I can find suggest using apt to load some new software to access some functionality.
Problem is apt is not going to play untill I have a Wi-Fi connection.
Now the SSID and password has to be stored either in grub or somewhere in the current file structure.
It's ironic: I have a 4G Wi-Fi hotspot that I can use anywhere if I can only get the server to see it.
I need the solution to be command line, without a current Wi-Fi connection and it has to be possible hey you can do it with a couple of clicks from a GUI.
OK if the solution is in a text file, it makes the server easy to hack on the network but it's my network and it's only available when I am online.
If push comes to shove I will do a full instalation using the 4G hotspot but I am only going to have to change this when I am on my home Wi-Fi or conected to some other remote Wi-Fi.
