Skip to content

Instantly share code, notes, and snippets.

@Pupwiz
Forked from narate/create-hotspot.md
Created July 23, 2025 21:20
Show Gist options
  • Select an option

  • Save Pupwiz/649690ec57320a7d1677ce655d3d9fc4 to your computer and use it in GitHub Desktop.

Select an option

Save Pupwiz/649690ec57320a7d1677ce655d3d9fc4 to your computer and use it in GitHub Desktop.

Revisions

  1. @narate narate revised this gist May 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ nmcli con up Hostspot
    ```

    # Note
    After reboot `nmcli con up Hotspot` doesn't work
    If after reboot `nmcli con up Hotspot` doesn't work

    Use this command instead to start Hotspot

  2. @narate narate revised this gist May 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    Original post : `https://unix.stackexchange.com/a/310699`

    ```
    nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect no ssid Hostspot
    nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
    nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
    nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
    nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
  3. @narate narate revised this gist May 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    # Create a Wi-Fi hotspot on Linux uning `nmcli`
    # Create a Wi-Fi hotspot on Linux using `nmcli`

    Original post : `https://unix.stackexchange.com/a/310699`

  4. @narate narate revised this gist May 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    # Create Wi-Fi hotspot on Linux unign `nmcli`
    # Create a Wi-Fi hotspot on Linux uning `nmcli`

    Original post : `https://unix.stackexchange.com/a/310699`

  5. @narate narate revised this gist May 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,6 @@ After reboot `nmcli con up Hotspot` doesn't work
    Use this command instead to start Hotspot

    ```
    UUID=#(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
    UUID=$(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
    nmcli con up uuid $UUID
    ```
  6. @narate narate revised this gist May 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ nmcli con up Hostspot
    # Note
    After reboot `nmcli con up Hotspot` doesn't work

    Use this command instead
    Use this command instead to start Hotspot

    ```
    UUID=#(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
  7. @narate narate revised this gist May 18, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@

    # Create Wi-Fi hotspot on Linux unign `nmcli`

    > Original post : `https://unix.stackexchange.com/a/310699`
    Original post : `https://unix.stackexchange.com/a/310699`

    ```
    nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect no ssid Hostspot
    @@ -10,9 +10,12 @@ nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
    nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
    nmcli con up Hostspot
    ```

    # Note
    After reboot `nmcli con up Hotspot` doesn't work

    Use this command instead

    ```
    UUID=#(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
    nmcli con up uuid $UUID
  8. @narate narate revised this gist May 18, 2017. 2 changed files with 19 additions and 14 deletions.
    19 changes: 19 additions & 0 deletions create-hotspot.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@

    # Create Wi-Fi hotspot on Linux unign `nmcli`

    > Original post : `https://unix.stackexchange.com/a/310699`
    ```
    nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect no ssid Hostspot
    nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
    nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
    nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
    nmcli con up Hostspot
    ```
    # Note
    After reboot `nmcli con up Hotspot` doesn't work
    Use this command instead
    ```
    UUID=#(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
    nmcli con up uuid $UUID
    ```
    14 changes: 0 additions & 14 deletions create-hotspot.sh
    Original file line number Diff line number Diff line change
    @@ -1,14 +0,0 @@
    #!/bin/bash
    echo 'Original post : https://unix.stackexchange.com/a/310699'

    nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect no ssid Hostspot
    nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
    nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
    nmcli conn modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
    nmcli con up Hostspot

    # Note after reboot `nmcli con up Hotspot` doesn't work
    # Use this command instead
    #-------------------------
    # UUID=#(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
    # nmcli con up uuid $UUID
  9. @narate narate created this gist May 18, 2017.
    14 changes: 14 additions & 0 deletions create-hotspot.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/bash
    echo 'Original post : https://unix.stackexchange.com/a/310699'

    nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect no ssid Hostspot
    nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
    nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
    nmcli conn modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
    nmcli con up Hostspot

    # Note after reboot `nmcli con up Hotspot` doesn't work
    # Use this command instead
    #-------------------------
    # UUID=#(grep uuid /etc/NetworkManager/system-connections/Hotspot | cut -d= -f2)
    # nmcli con up uuid $UUID