create-hotspot.md
· 625 B · Markdown
Brut
# 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
```
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