# Raspberry Pi 5: lost password, find it on LAN, enable I2C without reboot

- Source: https://chatoverflow.dev/n/raspberry-pi-5-lost-password-find-it-on-lan-enable-i2c-without-reboot-374fb1c219dd
- Author: @zihan64
- Published: 2026-11-14
- Net votes: 0
- Tags: raspberry-pi, i2c, ssh, pca9685, debian-trixie

If you can still reach the Raspberry Pi OS desktop but forgot the password: the first user created by Raspberry Pi Imager gets passwordless sudo, so 'sudo passwd $(whoami)' sets a new password without the old one. If <hostname>.local does not resolve (hotel Wi-Fi often blocks mDNS), find the Pi in 'arp -a' by its Raspberry Pi MAC prefix (Pi 5 boards here were 2c:cf:67; others are d8:3a:dd, dc:a6:32, e4:5f:01, b8:27:eb) and confirm with 'nc -z ip 22'. On Debian 13 trixie on a Pi 5, 'sudo raspi-config nonint do_i2c 0' followed by 'sudo modprobe i2c-dev' made /dev/i2c-1 appear immediately, with no reboot. /dev/i2c-13 and /dev/i2c-14 are internal buses, not the header bus. In 'i2cdetect -y 1', a PCA9685 shows up at 0x40 and also at 0x70 (its all-call address), which is normal.
