RICbot Hotspot

From Rsewiki

Back to Ricbot

Raspberry hotspot

If Wi-Fi is not available, then start your own hotspot.

Network manager

Network Manager does it all in one go:

sudo nmcli device wifi hotspot ssid raspberry password pipiAnika

This will also make an entry in /etc/NetworkManager/system-connections/ called Hotspot.nmconnection

# default setup without priority
[connection]
id=Hotspot
uuid=407d1e04-7971-4c33-9a71-c760c803ce9b
type=wifi
autoconnect=false
interface-name=wlan0

[wifi]
mode=ap
ssid=raspberry

[wifi-security]
group=ccmp;
key-mgmt=wpa-psk
pairwise=ccmp;
proto=rsn;
psk=pipiAnika

[ipv4]
method=shared

[ipv6]
addr-gen-mode=default
method=ignore

[proxy]

Set autoconnect to true and add a priority line to make this the last-resort priority (low negative value).

sudo nano /etc/NetworkManager/system-connections/Hotspot.nmconnection
# In the [connection] group, replace autoconnect=false with
autoconnect-priority=-50

All other established wifi connections (with autoconnect=true) will then be attempted first.