Skip to content

Instantly share code, notes, and snippets.

@doraeric
Last active June 11, 2019 07:51
Show Gist options
  • Save doraeric/f29f298c28f8d9e179f0d7c0f5208db5 to your computer and use it in GitHub Desktop.
Save doraeric/f29f298c28f8d9e179f0d7c0f5208db5 to your computer and use it in GitHub Desktop.
a note record how to set ubuntu wifi hotspot

System: Ubuntu 18.04

solution: tools: iw, hostapd, iptables, udhcpd, udhcpc, macchanger

Network Manager Connection Editor

This is where I started: How do I create a WiFi hotspot sharing wireless internet connection (single adapter)?

The answer replied by Purushoth is not correct

I couldn't find "Edit Connections" from gnome desktop environment, so I tried other tools I could find (nmcli, nmtui).

The options were different, and I couldn't follow the steps, so I started to trace the code.

Here are the conclusion:

  • NetworkManager and network-manager-applet are different projects, nmcli and nmtui which belong to NetworkManager have few basic functoins. Only connetion-editor in network-manager-applet has the option "Shared to other computers".
  • You can't reach nm-connection-editor from the GUI in GNOME 3 with default. link
  • Install gnome-nettool: sudo apt-get install gnome-nettool, and you can find it in gnome-nettool. Or just launch the program nm-connection-editor via the Alt-F2 prompt or via a terminal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment