RICbot Hotspot: Difference between revisions

From Rsewiki
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Back to [[Ricbot]]
* Back to [[Ricbot]]
* Back to [[Robobot_B | Robobot]]


== Raspberry hotspot ==
== Raspberry hotspot ==
Line 7: Line 8:
=== Network manager ===
=== Network manager ===


Network Manager do it all in one go:
Network Manager does it all in one go:


  sudo nmcli device wifi hotspot ssid <example-network-name> password <example-password>
  sudo nmcli device wifi hotspot ssid raspberry password pipiAnika


This will also make an entry in ''/etc/NetworkManager/system-connections/'' called ''Hotspot.nmconnection''
This will also make an entry in ''/etc/NetworkManager/system-connections/'' called ''Hotspot.nmconnection''
Line 44: Line 45:


  sudo nano /etc/NetworkManager/system-connections/Hotspot.nmconnection
  sudo nano /etc/NetworkManager/system-connections/Hotspot.nmconnection
  # In the [connection] group, replace autoconnect=false with
  # In the [connection] group, '''replace''' ''autoconnect=false'' with
  autoconnect-priority=-50
  autoconnect-priority=-50
All other established wifi connections (with autoconnect=true) will then be attempted first.

Latest revision as of 09:05, 28 April 2026

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.