1 min
1
Cài đặt Raspberry Pi 4
Cài đặt Raspberry Pi 4
- #linux
- #devops
- #raspberry pi
By Baichu@github/baichuu
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 installCà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 versionThiết lập Git
Tùy chọn 1: dùng GitHub CLI
terminal
sudo apt install ghgh auth loginTù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.pubSao 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.comNếu bạn thấy thông báo như sau, là xong!
Hi username! You've successfully authenticated, ...