ssh pi:raspberry@<IP>
sudo update-alternatives --config editor
sudo update-alternatives --set editor /usr/bin/vim.tiny
sudo adduser oleg
sudo adduser oleg sudo
sudo sh -c 'echo "oleg ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/000_oleg-nopasswd'
sudo userdel -r pi
sudo sh -c 'echo "" > /etc/motd'
hostnamectl
sudo hostnamectl set-hostname pi4
Edit /boot/config.txt
[pi4]
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=off
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
dtparam=eth_led0=4
dtparam=eth_led1=4
sudo apt update
sudo apt install ntp
echo "restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap" >> /etc/ntp.conf
sudo /etc/init.d/ntp restart