1 min
2

Setup raspberry pi 4

Setup raspberry pi 4

  • #linux
  • #devops
  • #raspberry pi
By Baiyuechu@github/baiyuechuz

Setup raspberry pi 4

0:00
-0:00

Install neovim

terminal
sudo apt update
sudo apt install git cmake ninja-build gettext libtool libtool-bin autoconf automake \
    pkg-config unzip curl

git clone --depth 1 https://github.com/neovim/neovim.git -b release-0.11
cd neovim

make CMAKE_BUILD_TYPE=Release
sudo make install

Install Docker and Docker Compose

terminal
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
newgrp docker

sudo apt-get update
sudo apt-get install -y docker-compose-plugin
docker compose version

Setup Git

Option 1: use github cli

terminal
sudo apt install gh
gh auth login

Option 2: use git ssh

  • Generate ssh key
terminal
ssh-keygen -t ed25519 -C "your_email@example.com"
  • Add ssh key to ssh-agent
terminal
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
  • Copy public key to GitHub
terminal
cat ~/.ssh/id_ed25519.pub
Copy the entire output, go to GitHub → Settings → SSH and GPG keys → New SSH key → paste it.
  • Test connection
terminal
ssh -T git@github.com
If you see this, you're all set!
Hi username! You've successfully authenticated, ...

References

Join Baiyuechu Newsletter!

Get notified when I publish new articles, tutorials, and project updates. Subscribe for insights and actionable content.