Share Internet from a Linux Laptop (Wi-Fi Hotspot)
Tools You'll Need
Wi-Fi settingsnmcli
1. Connect the laptop to the internet with a cable or a USB modem.
2. Ubuntu: Settings, Wi-Fi, three dots menu, Turn On Wi-Fi Hotspot. Set the name and password.
3. Terminal option:
nmcli device wifi hotspot ssid MyHotspot password StrongPass123
4. Connect your phone to that network.
5. Turn it off from the same menu, or nmcli connection down Hotspot
Some Wi-Fi cards can't share Wi-Fi to Wi-Fi at the same time. Use a cable for the laptop's own connection.