sudo umount /dev/sdX
sudo dd if=/dev/sdX of=backup.img bs=4M status=progress
wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
chmod +x pishrink.sh
sudo mv pishrink.sh /usr/local/bin
sudo pishrink.sh backup.img
sudo umount /dev/sdX
sudo dd if=backup.img of=/dev/sdX bs=4M conv=fsync status=progress
Share USB tethered phone to Raspberry Pi 4 LAN port Raspberry Pi Setup Follow the instructions on Raspberry Pi: Take into consideration that we imagined the phone virtual interface of the Raspberry Pi is usb0. Set a static IP address to the eth0 which would be router's clients' default gateway. To do it, there is plenty of procedure: Put lines below to in /etc/dhcpcd.conf: interface eth0
Oct 29, 2021Install OpenSSH Server on Windows 10 Install OpenSSH Server On Windows 10 version 1803 and newer In Settings app, go to Apps > Apps & features > Manage optional features. Locate “OpenSSH server” feature, expand it, and select Install. Binaries are installed to %WINDIR%\System32\OpenSSH. Configuration file (sshd_config) and host keys are installed to %ProgramData%\ssh (only after the server is started for the first time). You may still want to use the following manual installation if you want to install a newer version of OpenSSH than the one built into Windows 10.
Jun 16, 2021Setting Power Button and LED with Device Tree Overlays Power On: short pin 5 and GND Power Off: In /boot/config.txt # use gpio to shutdown dtoverlay=gpio-shutdown,gpio_pin=26,active_low=1,gpio_pull=up # shutdown button on gpio pin 26 (physical pin 37)
Jun 11, 2021Setting up External Wi-Fi Dongle on Raspberry Pi OS Disable Bulid-In Wi-Fi in /boot/config.txt dtoverlay=disable-wifi Configure WPA Supplicant in /etc/wpa_supplicant/wpa_supplicant.conf network={
Sep 4, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up