From 33d77d76e77106280f5603bcef31ae6302d43c24 Mon Sep 17 00:00:00 2001 From: julien Date: Mon, 20 Oct 2025 14:21:43 +0200 Subject: [PATCH] "Updates" --- Turing Pi/compute-modules.md | 70 +------------------------------ Turing Pi/networking.md | 80 ++++++++++++++++++++++++++++++++++-- 2 files changed, 78 insertions(+), 72 deletions(-) diff --git a/Turing Pi/compute-modules.md b/Turing Pi/compute-modules.md index c5dc967..f3a6ff3 100644 --- a/Turing Pi/compute-modules.md +++ b/Turing Pi/compute-modules.md @@ -95,76 +95,8 @@ sudo vim /etc/update-motd.d/01-cowsay sudo chmod +x /etc/update-motd.d/01-cowsay ``` -#### Wifi +#### Networking -Réf. : [https://wiki.debian.org/WiFi/HowToUse](https://wiki.debian.org/WiFi/HowToUse) - -``` -cd /lib/firmware/brcm/ -ln -s brcmfmac43455-sdio.AW-CM256SM.txt brcmfmac43455-sdio.pine64,rockpro64-v2.0.txt -ln -s brcmfmac43455-sdio.AW-CM256SM.txt brcmfmac43455-sdio.pine64,rockpro64-v2.1.txt - -sudo rmmod brcmfmac -sudo modprobe brcmfmac -``` - -```bash -sudo vim /etc/systemd/network/25-wlan.network -``` - -``` -[Match] -Name=wlan0 - -[Network] -DHCP=ipv4 - -[DHCP] -UseDNS=yes -``` - -```bash -sudo vim /etc/network/interfaces.d/local -``` - -``` -# The loopback network interface -auto lo -iface lo inet loopback - -# The primary network interface -# allow-hotplug end0 -auto wlan0 -iface wlan0 inet static - address 192.168.1.xx - netmask 255.255.255.0 - gateway 192.168.1.254 - dns-nameservers 1.1.1.1 - dns-nameservers 1.0.0.1 -# This is an autoconfigured IPv6 interface -# iface end0 inet6 auto -``` - -```bash -sudo vim /etc/wpa_supplicant/wpa_supplicant-wlan0.conf -``` - -``` -ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev -update_config=1 - -network={ - ssid="BikiniBottom" - #psk="transatlantique" - psk=e5b692f43ab186494b7f37949d9084e1c0e97fd74d8f14a6325be2e62309067e -} -``` - -```bash -sudo systemctl enable --now wpa_supplicant@wlan0.service - -sudo su -l -c "systemctl enable --now systemd-networkd" -``` #### Sensors diff --git a/Turing Pi/networking.md b/Turing Pi/networking.md index c52c07c..902f0c8 100644 --- a/Turing Pi/networking.md +++ b/Turing Pi/networking.md @@ -6,7 +6,7 @@ sudo vim /etc/hosts ``` -```bash +```conf 127.0.0.1 localhost 127.0.1.1 .local @@ -42,6 +42,79 @@ ff02::3 ip6-allhosts ``` +### Broadcom (WiFi) + +Réf. : [https://wiki.debian.org/WiFi/HowToUse](https://wiki.debian.org/WiFi/HowToUse) + +```bash +cd /lib/firmware/brcm/ +ln -s brcmfmac43455-sdio.AW-CM256SM.txt brcmfmac43455-sdio.pine64,rockpro64-v2.0.txt +ln -s brcmfmac43455-sdio.AW-CM256SM.txt brcmfmac43455-sdio.pine64,rockpro64-v2.1.txt + +sudo rmmod brcmfmac +sudo modprobe brcmfmac +``` + +```bash +sudo vim /etc/systemd/network/25-wlan.network +``` + +```systemd +[Match] +Name=wlan0 + +[Network] +DHCP=ipv4 + +[DHCP] +UseDNS=yes +``` + +```bash +sudo vim /etc/network/interfaces.d/local +``` + +```conf +# The loopback network interface +auto lo +iface lo inet loopback + +# The primary network interface +# allow-hotplug end0 +auto wlan0 +iface wlan0 inet static + address 192.168.1.xx + netmask 255.255.255.0 + gateway 192.168.1.254 + dns-nameservers 1.1.1.1 + dns-nameservers 1.0.0.1 + +# This is an autoconfigured IPv6 interface +iface end0 inet6 auto +``` + +```bash +sudo vim /etc/wpa_supplicant/wpa_supplicant-wlan0.conf +``` + +```conf +ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev +update_config=1 + +network={ + ssid="BikiniBottom" + #psk="transatlantique" + psk=e5b692f43ab186494b7f37949d9084e1c0e97fd74d8f14a6325be2e62309067e +} +``` + +```bash +sudo systemctl enable --now wpa_supplicant@wlan0.service + +sudo su -l -c "systemctl enable --now systemd-networkd" +``` + +### Ethernet #### Debian ```bash @@ -59,7 +132,7 @@ source /etc/network/interfaces.d/* sudo vim /etc/network/interfaces.d/local ``` -```bash +```conf # The loopback network interface auto lo iface lo inet loopback @@ -73,8 +146,9 @@ iface end0 inet static     gateway 192.168.1.254     dns-nameservers 45.90.28.0     dns-nameservers 45.90.30.0 + # This is an autoconfigured IPv6 interface -# iface end0 inet6 auto +iface end0 inet6 auto ``` ```bash