Pin 1 - Red wire +5 volt Pin 2 - Blue wire PWM Pin 3 - Black wire GND Pin 4 - Yellow wire Tach
fan_temp0 Temperature threshold (in millicelcius) for 1st cooling level (default 50000). Pi5 only. fan_temp0_hyst Temperature hysteresis (in millicelcius) for 1st cooling level (default 5000). Pi5 only. fan_temp0_speed Fan PWM setting for 1st cooling level (0-255, default 75). Pi5 only. fan_temp1 Temperature threshold (in millicelcius) for 2nd cooling level (default 60000). Pi5 only. fan_temp1_hyst Temperature hysteresis (in millicelcius) for 2nd cooling level (default 5000). Pi5 only. fan_temp1_speed Fan PWM setting for 2nd cooling level (0-255, default 125). Pi5 only. fan_temp2 Temperature threshold (in millicelcius) for 3rd cooling level (default 67500). Pi5 only. fan_temp2_hyst Temperature hysteresis (in millicelcius) for 3rd cooling level (default 5000). Pi5 only. fan_temp2_speed Fan PWM setting for 3rd cooling level (0-255, default 175). Pi5 only. fan_temp3 Temperature threshold (in millicelcius) for 4th cooling level (default 75000). Pi5 only. fan_temp3_hyst Temperature hysteresis (in millicelcius) for 4th cooling level (default 5000). Pi5 only. fan_temp3_speed Fan PWM setting for 4th cooling level (0-255, default 250). Pi5 only.## Example Add this to the bottom of your config.txt to drop the fan activation temperatures by 10 degrees
# Lowered by 10 degrees dtparam=fan_temp0=40000 dtparam=fan_temp1=50000 dtparam=fan_temp2=57500 dtparam=fan_temp3=65000
Model Recommended PSU current capacity ----- -------------------------------- Raspberry Pi 1 Model A 700mA Raspberry Pi 1 Model B 1.2A Raspberry Pi 1 Model A+ 700mA Raspberry Pi 1 Model B+ 1.8A (Pi 1.3A ,USB 0.5A) Raspberry Pi 2 Model B 1.8A (Pi 1.6A ,USB 1.2A) Raspberry Pi 3 Model B 2.5A (Pi 1.3A ,USB 1.2A) Raspberry Pi 3 Model A+ 2.5A (Pi 1.3A ,USB 1.2A) Raspberry Pi 3 Model B+ 2.5A (Pi 1.3A ,USB 1.2A) Raspberry Pi 4 Model B 3.0A (Pi 1.8A ,USB 1.2A) Raspberry Pi 400 3.0A (Pi 1.8A ,USB 1.2A) Raspberry Pi 5 5.0A (Pi 3.4A ,USB 1.6A) with PD (Power Delivery) 3.1 support Raspberry Pi Zero 1.2A (Pi 0.7A ,USB 0.5A) Raspberry Pi Zero W 1.2A (Pi 0.7A ,USB 0.5A) Raspberry Pi Zero 2 W 2ARef.: https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/raspberry-pi/power-supplies.adoc ## USB power And this is approximate numbers.
Model Max power output of USB ports ----- ----------------------------- Raspberry Pi Zero, 1 500mA per port Raspberry Pi 2, 3, 4 1200mA total across all ports Raspberry Pi 5 500mA if using a ~3A supply, 1600mA if using a 5A supply with PD 3.1 supportRef.: https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/raspberry-pi/usb-bus-on-raspberry-pi.adoc
wget https://raw.githubusercontent.com/LanikSJ/neofetch/master/neofetch chmod +x neofetch sudo chown root:root /usr/bin/neofetch sudo mv neofetch /usr/bin/neofetch## Delete the default motd sudo mv /etc/motd /etc/motd.org ## Create a neofetch.sh in /etc/profile.d Edit sudo nano /etc/profile.d/neofetch.sh An past the text below into /etc/profile.d/neofetch.sh
# neofetch as Message Of The Day (motd) export TEXTDOMAIN=Linux-PAM . gettext.sh neofetch## Change ownership of neofetch.sh to root sudo chown root:root /etc/profile.d/neofetch.sh ## Change SSH Server config In /etc/ssh/sshd_config replace or add the string #PrintLastLog yes with PrintLastLog no ## Tweaking the neofetch config file First you need to run neofetch, neofetch to create a default configuration file. Then edit to your liking, nano /home/<user>/.config/neofetch/config.conf ## CPU temperature Change cpu_temp="off" to cpu_temp="C". This needs Neofetch 7.2.8 ## Insert this to show the outdoor temperature:
# Replace "Stockholm" with your city prin "Weather" "$(curl wttr.in/Sstockholm?0?q?T | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}')"## Replace automatic with Raspbian as Raspberry Pi OS (64-bit) is detected as "Debian".
ascii_distro="Raspbian"When you log in with SSH the next time you will be grated with a nice "Raspberry Pi" info.
sudo nmcli con mod <UUID> ipv4.addresses <Static IP>/<Subnet mask> sudo nmcli con mod <UUID> ipv4.gateway <IP to gateway> sudo nmcli con mod <UUID> ipv4.dns "<IP to DNS server>" sudo nmcli con mod <UUID> ipv4.method manual sudo nmcli con up <UUID>And enter the values where there is a text enclosed in <>. ### Example:
sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.addresses 192.168.111.21/24 sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.gateway 192.168.111.1 sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.dns "192.168.111.1" sudo nmcli con mod 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e ipv4.method manual sudo nmcli con up 911ac370-dc51-3d5d-a92e-d9bb1eafcb9e