Files
raspberrypi/README.md
2022-01-15 10:41:11 +00:00

59 lines
1.1 KiB
Markdown

# Setup
## OS
### [Raspberry Pi OS Lite](https://www.raspberrypi.com/software/operating-systems/)
- flash the OS ([etcher](https://www.balena.io/etcher/))
- HeadLess setup
- Enable ssh
Create an empty file named ssh on 'boot' partition
- Wifi Network
Create a file in the root of boot called: wpa_supplicant.conf
country=PT
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="NETWORK-NAME"
psk="NETWORK-PASSWORD"
}
- Connect the PI and wait 1 minute or 2 to boot
- Check the IP on DHCP Server
# Update OS
sudo apt update && sudo apt upgrade
# updade firmware
sudo apt update && sudo apt upgrade
sudo rpi-eeprom-update
sudo apt install rpi-eeprom
# default username/password
username : pi
password : raspberry
!important change the default password
sudo passwd pi
create a new user
sudo useradd -m NEWUSERNAME
sudo passwd NEWUSERNAME
add user to sudoers
sudo usermod -aG sudo USERNAME
delete default pi user
userdel -r pi