How can I turn off the AP hotspot through the terminal, since when I turn it off in network settings the program crashes.
Also: How do I get networking to start when the computer boots up? It doesn't for whatever reason
How can I turn off the AP hotspot through the terminal, since when I turn it off in network settings the program crashes.
Also: How do I get networking to start when the computer boots up? It doesn't for whatever reason
You should be able to toggle the Wifi (AP) function using the
nmcli
command line utility e.g.and
However if it is the backend
network-manager
that is crashing, the result may be the same.The modified version of accepted answer just updated the device status to disabled / enabled but I found these below commands working for me in Ubuntu 18.04:
Turn on wifi hotspot with default generated password:
Note: this command will generate a new password for hotspot each time you run it.
To display the password, use this command:
To turn the hotspot off: