На Raspberry Pi 3b - проблема с wifi.
Вывод ifconfig:
root@ubuntu:/etc/network# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.100.62 netmask 255.255.255.0 broadcast 192.168.100.255
inet6 fe80::ba27:ebff:fe6e:e330 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:6e:e3:30 txqueuelen 1000 (Ethernet)
RX packets 2544 bytes 172128 (172.1 KB)
RX errors 0 dropped 522 overruns 0 frame 0
TX packets 451 bytes 84554 (84.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 101 bytes 7901 (7.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 101 bytes 7901 (7.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether b8:27:eb:3b:b6:65 txqueuelen 1000 (Ethernet)
RX packets 169 bytes 8936 (8.9 KB)
RX errors 0 dropped 56 overruns 0 frame 0
TX packets 20 bytes 3805 (3.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Хочу подключиться к wifi - сначала пробовал задать свою сеть в
/etc/netplan/50-cloud-init.yaml
Получилось следуюшее:
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlan0:
dhcp4: true
optional: true
access-points:
" my ESSID":
password: "my_pwsd"
- затем
sudo netplan apply
- перезагрузил малину. Не помогло.
(
https://itsfoss.com/connect-wifi-terminal-ubuntu/)
Далее, как второй вариант, пробовал через nmcli подключиться, но проверяя стату устройств увидел такое:
nmcli dev status
выдает следующее:
DEVICE TYPE STATE CONNECTION
wlan0 wifi unavailable --
eth0 ethernet unmanaged --
lo loopback unmanaged --
Устанавливал Network-Manager - выдает ошибку при попытке работы с интерфесом:
systemctl start NetworkManager
NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-10-11 14:26:36 UTC; 4min 36s ago
Docs: man:NetworkManager(8)
Main PID: 1926 (NetworkManager)
Tasks: 3 (limit: 1822)
Memory: 8.3M
CGroup: /system.slice/NetworkManager.service
└─1926 /usr/sbin/NetworkManager --no-daemon
Oct 11 14:26:48 ubuntu NetworkManager[1926]: <error> [1633962408.6366] device (wlan0): Couldn't initialize supplicant interface: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab this interface>
Oct 11 14:26:58 ubuntu NetworkManager[1926]: <warn> [1633962418.4572] device (wlan0): re-acquiring supplicant interface (#2).
Смотрел:
https://www.youtube.com/watch?v=ITtqOdqjyCo - у меня нет пакета hcp5d
Самой малине назначина статика на dhcp сервере (если вдруг это важно)