树莓派环境配置
树莓派设置静态IP
sudo vim /etc/dhcpcd.config
interface eth0
static ip_address=192.168.1.108/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
树莓派vim解决vim无法鼠标右键粘贴的问题
sudo vim /usr/share/vim/vim81/defaults.vim
set mouse=a
改成set mouse-=a
,即可立即生效
树莓派docker安装配置
sudo curl -sSL https://get.docker.com | sh
设置普通用户访问docker
sudo usermod -aG docker $USER
配置镜像加速
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["镜像加速器地址"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
安装golang
下载地址: https://mirrors.aliyun.com/golang/go1.16.linux-armv6l.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
export GOPROXY=https://mirrors.aliyun.com/goproxy/
安装nfs客户端
sudo apt-get install nfs-common
挂载路径
sudo mount -t nfs 192.168.1.128:/home/greene/workspace /home/pi/workspace
本文来自博客园,作者:GreeneGe,转载请注明原文链接:https://www.cnblogs.com/greene/p/15836975.html