Raspberry Pi Tweaks
In this article, you will learn how to troubleshoot and configure Wi-Fi connections on a Raspberry Pi. You will discover how to work with 5G connectivity, adjust frequencies, scan for SSIDs, update login credentials, and recover the DHCPCD service. Additionally, you will set Wi-Fi connection details specifically for use with Docker.
openai says i should edit /etc/wpa_supplicant/wpa_supplicant.conf
like this to connect to 5G wifi:
1 | network={ |
also set frequency of wifi card like this:
1 | sudo ifdown wlan0 && sudo ifup wlan0 |
unplug ethernet, then we are golden.
1 | traceroute baidu.com |
how to check avaliable wifi ssids without network-manager
:
1 | sudo iwlist wlan0 scan | grep ESSID |
default login (maybe not):
1 | username: pi |
in order to start sshd
, touch ssh
under boot
partition
recover dhcpcd
service:
1 | sudo systemctl enable dhcpcd.service |
config the password with proot -S <path_to_rootfs> -b <boot_partition>:/boot -q qemu-arm /usr/bin/bash
and passwd
you’ve installed raspap on this device. you use the default credentials. this shit will not connect to our wifi automatically, thus block your way of running docker containers on it with only macbook.
seriously? do you really need docker on macos? or just on raspberry pi?
change apt sources:
1 | sudo sed -i 's|raspbian.raspberrypi.org|mirrors.ustc.edu.cn/raspbian|g' /etc/apt/sources.list |
using nmcli to scan and connect wifi
1 | sudo nmcli dev wifi rescan |
sharing network:
1 | ssh -R 1080 pi@10.42.0.33 |
edit /etc/network/interfaces
:
1 | auto lo |
install packages:
1 | sudo apt-get -o Acquire::http::proxy="socks5h://127.0.0.1:1080/" -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update --allow-releaseinfo-change |