sudo apt install rpi-imager-
pluggin SD card to computer
-
Open Raspberry Pi Imager
-
Operation system ➡Raspberry Pi OS(other)➡Raspberry Pi OS(64 bit)
-
Storage ➡SD-card
-
Next
-
Edit settings
-
General ➡ Setup hostname and passwords under General
-
Service ➡enable SSH ➡use password authentication
-
Save and flash the settings to the SD-card
-
Insert the SD-card in your Raspberry Zero and plugin the powercable.
ssh "Name of raspberry".localchange "yourname","your.email@example.com" and "your-github-username" in the script
git config --global init.defaultBranch main
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
git config --global github.user "your-github-username"#Generate SSH key
ssh-keygen -t ed25519 -C "your-email@example.com" -f ~/.ssh/id_ed25519 -N ""
#Print it on screen for copying and adding to github SSH keys.
cat ~/.ssh/id_ed25519.pub# Test git login
ssh -T git@github.comsudo apt-get update && sudo apt-get install -y build-essential cmake gcc-arm-none-eabi libnewlib-arm-none-eabi gdb-multiarch openssh-server sudo vim nano gdb git && sudo mkdir -p /var/run/sshdgit clone git@github.com:Brumse/RaspberryZero.git
cd picozero
echo 'set nocompatible' >> ~/.vimrccmake -S . -B build
make -C build
sudo make -C build installsudo blink

