Raspberry Pi 4B installation system + peanut shell + docker + portainer management tool

1. Install the Raspberry Pi system

1. First download the flashing system software: Download

2. Select Raspberry Pi OS (64-bit) system

3. Set the configuration file

        1. Host name

        2. Open the ssh service

        3. Set wifi account password

4. Select the SD card and start burning

2. Set the system time zone

1. Use date -R to view the current system time

2. Install the ntp plugin: apt install ntpdate

3. Enable ntp: timedatectl set-ntp true

4. Configure time zone: dpkg-reconfigure tzdata

        Select: Asia---> Shanghai

5. Use date -R to view the current system time

3. Install peanut shells 

1. Download peanut shells (choose 64 bits): wget "https://dl.oray.com/hsk/linux/phddns_5.1.0_rapi_aarch64.deb" -O phddns_5.1.0_rapi_aarch64.deb

2. Install peanut shells: dpkg -i phddns_5.1.0_rapi_aarch64.deb

3. Fill in the SN code and password

4. Do intranet mapping

4. Install the docker environment 

1. Update source: apt update

2. Install docker: curl -sSL https://get.docker.com | sh

3. Set docker to boot: systemctl enable docker

4. Start docker: systemctl start docker

5. docker install portainer management tool

1. Search portainer image: docker search portainer

2. Pull the image: docker pull lihaixin/portainer

3. Create portainer container:

        docker run -dp 59000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name portainer lihaixin/portainer

6. Raspberry Pi needs to install mysql database

 Raspberry Pi bit aarch64 requires a special way to install:

1. Pull the image: docker pull --platform=arm64 mysql/mysql-server

2、创建容器:docker run -p 53306:3306 --name mysql --privileged=true -v $PWD/log:/var/log/mysql -v $PWD/data:/var/lib/mysql -v $PWD/conf:/etc/mysql -e MYSQL_ROOT_PASSWORD=root -d mysql/mysql-server

Guess you like

Origin blog.csdn.net/cyz141001/article/details/131703200