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 installInstall 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 versionSetup Git
Option 1: use github cli
terminal
sudo apt install gh
gh auth loginOption 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.pubCopy the entire output, go to GitHub → Settings → SSH and GPG keys → New SSH key → paste it.
- Test connection
terminal
ssh -T git@github.comIf 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.