I’ve recently moved house temporarily, and the broadband connection here is abysmally slow. However, due to a ridiculous stroke of luck, this is also the only place in this country with decent 5G coverage. This means that until I can get
working again (it has 4G support) I need to hotspot from my smartphone to my desktop. However, unlike my desktop, which can broadcast a hotspot across a great distance using its antennae, my smartphone cannot, which means that I’d like to use my smartphone like the network gateway, and each device like an AP.
but not on KDE Plasma in any obvious manner, because I suppose I could configure a systemd service to invoke whatever code creates a hotspot
but that’s rather out of my league, since unlike Windows, there aren’t high-level .NET (or Win32 API equivalent) commands available.
To this end, I’d like to be able to configure all of my devices to broadcast their own network signal on boot automatically, rather than have me need to configure this at every boot.
Is this possible? If not, could I request that it be?
You can script the startup of the hotspot, using the cli tool nmcli
For instance following:
Then once you have a command line that starts your hotspot, you can add it to the programs launched at startup in “Automatic Startup” add a connection script.
If you’re into scripting the hotspot start, then this python example script from NetworkManager’s examples, might also be helpful:
It is using the high level DBus API for the NetworkManager service, so once you know what it’s doing, you can implement this in any other language, including shell or .net Core