Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Ubuntu 22.04 configure Access Point by shell commands

Digital solution partner

Ubuntu 22.04 configure Access Point by shell commands

with NMCLI command line you can create your own access point with a few commands :

make sure with “nmcli connection show” that you haven’t left halfway configurations or double configurations, in case you can remove them with “nmcli connection delete Hostspot”

The only flaw of nmcli is that it does not have a specific command to directly set the DHCP service that supports the newly configured AP and to do this you need to install and configure a service that takes care of this, such as “dnsmasq”:

edit the configuration file “dnsmasq.conf” 

personalli i modified only some lines in the configuration file:

restart service: 

check WiFi state:

reboot your system and check it all