1 min
1

Cài đặt Raspberry Pi 4

Cài đặt Raspberry Pi 4

  • #linux
  • #devops
  • #raspberry pi

Cài đặt Neovim

terminal
sudo apt updatesudo apt install git cmake ninja-build gettext libtool libtool-bin autoconf automake \    pkg-config unzip curlgit clone --depth 1 https://github.com/neovim/neovim.git -b release-0.11cd neovimmake CMAKE_BUILD_TYPE=Releasesudo make install

Cài đặt Docker và Docker Compose

terminal
curl -fsSL https://get.docker.com | shsudo usermod -aG docker $USERnewgrp dockersudo apt-get updatesudo apt-get install -y docker-compose-plugindocker compose version

Thiết lập Git

Tùy chọn 1: dùng GitHub CLI

terminal
sudo apt install ghgh auth login

Tùy chọn 2: dùng Git qua SSH

  • Tạo khóa SSH
terminal
ssh-keygen -t ed25519 -C "your_email@example.com"
  • Thêm khóa SSH vào ssh-agent
terminal
eval "$(ssh-agent -s)"ssh-add ~/.ssh/id_ed25519
  • Sao chép khóa công khai lên GitHub
terminal
cat ~/.ssh/id_ed25519.pub
Sao chép toàn bộ đầu ra, vào GitHub → Settings → SSH and GPG keys → New SSH key → dán vào.
  • Thử kết nối
terminal
ssh -T git@github.com
Nếu bạn thấy thông báo như sau, là xong!
Hi username! You've successfully authenticated, ...

Tài liệu tham khảo

>Newsletter

Stay Updated

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