Ubuntu – Restart Wi-Fi Hotspot automatically on Ubuntu 17.04


I'm using a hotspot on Ubuntu 17.04 to share my Internet connection with other devices. But when I restart or suspend the computer, I need to activate the hotspot manually each time.

Is there some option, script, or command to launch the hotspot automatically after wakeup?

Best Answer

  • you can do it with Network Manager. Check the name of the connection which represents the hotspot that you want to start when its active or just guest

    nmcli con show

    then to make it start automatically

    nmcli con mod <connection-name> connection.autoconnect yes

    test it with reboot