Wanke Cloud (3rd generation of Qianqianbao) flashes Armbian 6.1.9 system and installs Docker+CasaOS+Qinglong+Home Assistant

Wanke Cloud (3rd Generation Money Making Treasure) flashes Armbian 6.1.9 system and installs Docker + CasaOS + Qinglong + Home Assistant

Article directory

  • Wanke Cloud (3rd Generation of Money Making Treasure) flashes Armbian 6.1.9 system and installs Docker + CasaOS + Qinglong + Home Assistant
    • 1. Preparation work
    • 2. Bottom package burning
      • (1).Software installation
      • (2). Flashing operation (brushing into the bottom package)
        • 1. No disassembly of the brush machine
        • 2. Disassemble and flash the machine
          • (1).Disassembly operation
          • (2).Short circuit operation
          • (3). Power on the brush machine
    • 3. Line flash Armbian 6.1.9 system
    • 4. Enter us to flash the Armbian system and initialize it.
      • (1). Check the IP address of the device
      • (2).Update system software
    • 5. Mount the hard disk + Docker installation + CasaOS installation + Qinglong installation + Home Assistant installation
      • (1).Mount the hard disk
        • 1. Check the hard disk name
        • 2. Format the hard drive
        • 3. Mount the hard disk/U disk
        • 4.Basic usage of finalshell
        • 5. Edit the /etc/fstab file
      • (2).Docker installation
      • (3).CasaOS installation
      • (4). Qinglong installation
        • 1. Pull the image
        • 2. Create a container
      • (5).Home Assistant installation
        • 1.Home Assistant installation
        • 2.hacs plug-in installation
          • (1). Find the CONTAINER ID of HomeAssistant
          • (2).config HomeAssistant
        • (3). Open WinSCP and pass in the hacs.zip you just downloaded.
          • (4). Unzip hacs.zip
          • (5).Restart HomeAssistant
          • (6). Go to the HomeAssistant webpage and hacs has been installed successfully.
    • 6. Docker image location movement
      • (1) View the current storage directory
      • (2) View the current storage directory
      • (3) Check whether the modification is successful. You can find that the modification has been successful.
      • (3) Check whether the modification is successful. You can find that the modification has been successful.

1. Preparation

1. A set of Wanke Cloud equipment [machine, power adapter, network cable] (mine is the third generation of Money Making Treasure, which is version 1.3)

2. A USB male-to-male cable; if the computer supports the Type interface, you can also use a mobile phone data cable (coincidentally, my computer does not support the C port)

3. A USB flash drive (8G or more)

4. Phillips screwdriver, tweezers, mobile phone card removal pin, small rocker, hair dryer, power strip with switch

5. A smart and thoughtful brain

The packaging address of all attachments is at the end
image-20231107184949747

2. Bottom package burning

(1).Software installation

First, download the required accessories on your computer and install Amlogic.USB.Burning.Tool.v2.1.6.8.exe and balenaEtcher-v1.5.113.exe (the putty is green The version does not need to be installed, it can be used after opening). After installation, open Amlogic.USB.Burning.Tool.v2.1.6.8, click File in the upper left corner – Import burning package, select Android base package.imgClick to start

image-20231107173818194

(2). Flash operation (flash into the bottom package)

1. No need to remove the brush machine

image-20231107174401293

Connect the computer to Wanke Cloud Connect the USB cable to the USB interface next to HDMI, find the card pin or wire, press Reset and finally plug it in; then you will hear a connection sound on the computer. At the same time, the USB_Burning_Tool will also show that flashing is in progress. If there is no response, it probably does not support disassembly-free flashing.

Note: If the machine has not been flashed, there is a high probability that it will need to be disassembled and short-circuited

image-20231107175117093

It prompts that the burning is successful. If there is an error below, just flash it again. After success, click the stop button and then close the software. Power off Wanke Cloud and unplug the data cable.

image-20231107175148163

2. Disassemble and flash the phone
(1). Disassembly operation

To disassemble it, use an air gun or hair dryer to blow the panel (it takes a little longer), blow it to heat and then gently pry it open.

image-20231107175220641

image-20231107175229465

image-20231107175245282

After removing the panel, unscrew the screws and take out the motherboard.

(2). Short circuit operation

It should be noted that the motherboard distinguishes between old and new versions, and the short-circuit positions are also different. The older version is 1.0, and the new version is 1.3. Mine is the old version 1.3, and the new version is different, so pay attention to the distinction.


1.3 Short circuit operation

image-20231107175458451


1.0 short circuit operation

image-20231107175703257

Precautions for short-circuiting: Be careful when short-circuiting for the first time. You may need to grind the upper contacts, otherwise the computer may not respond. I was depressed for a long time when I did it for the first time, and I only remembered it after a friend reminded me (manual dog head)

The next step is the same as the above process without disassembly. Use the data cable to connect to the computer. Connect Wanke Cloud to the USB interface near the HDMI interface. Open the USB_Burning_Tool software and click File-Import the burning package. Select Android base package.img, check Erase flash and Erase bootloader, and click Start above >, then start to short-circuit the motherboard, use tweezers to connect the two endpoints, and then power on. Be careful not to touch the motherboard with your hands. Wrap the end of the tweezers with a tissue to avoid static electricity and damaging the motherboard!

(3). Power on brush machine

After powering on, pay attention to whether the computer makes a sound (similar to the sound of inserting a USB flash drive). When you hear the sound, release the tweezers immediately and see if a progress bar appears in the software.

image-20231107175117093

image-20231107175148163

If the burning is successful, click Stop, close the software, and turn off the power.

3. Flash Armbian 6.1.9 system

Open Amlogic.USB.Burning.Tool.v2.1.6.8, click File-Import Burning Package in the upper left corner, and select Armbian_23.02.0-trunk_Onecloud_jammy_edge_6.1.9_minimal.burn.img strong> Click to start

image-20231107180315535

image-20231107180350450

Connect the computer with a data cable, connect the Wanke Cloud to the USB port near the HDMI port, and then connect it to the power supply; listen for a sound from the computer (similar to the sound of inserting a U disk). When you hear the sound, it will automatically start burning, and wait for the burning to be successful** (If you don’t hear the sound, just short-circuit it again, okay, I just short-circuited it again, my face is black)**

image-20231107175148163

After the programming is successful, you can put the motherboard back into the box to avoid touching the motherboard and generating static electricity during subsequent operations. If the motherboard is damaged, the gain outweighs the loss.

4. Enter and flash the Armbian system and initialize it

(1). Check the IP address of the device

Turn off the power and connect the network cable; turn on the power, go to the router background, check the connected devices, and find the IP address of the Wanke cloud device. In my case, it is 192.168.31.186. In order to avoid having a different IP every time you turn on the computer in the future, you can give Wanke the IP address in the router background. The cloud device is set to a static IP, which is fixed.

image-20231107181219410

At this time, open the SSH tool putty, enter the IP address, and select Yes when prompted.

image-20231107181623029

image-20231107181639921

Enter Username:root Password:1234 and press Enter to log in to the system.

image-20231107181723860

The next step is to create a new user. We don’t need to create one. Just use root by default. Just press the Ctrl + C keys to skip. At this time, the system initialization is completed.

After the system is flashed, you can start the server function. You can install Docker containers and hang Qinglong panels, etc. Because the storage of Wanke Cloud is only 8G, part of which is already occupied by the system, so you need to add a hard disk or U disk or SD card to increase storage, otherwise It was full within a few days.

(2).Update system software

apt update

5. Mount the hard disk + Docker installation + CasaOS installation + Qinglong installation + Home Assistant installation

(1).Mount the hard disk

1. Check the hard disk name

Insert the prepared hard disk/U disk/SD card into Wanke Cloud (if you have data, please back it up). You can insert it with or without power. I inserted it with power. Connect the SSH tool putty to Wanke Cloud and enter fdisk - lCheck the USB flash drive/hard disk you just connected and write down its device name

image-20231107184324375

Device corresponds to the hard disk name Size corresponds to the hard disk size Type corresponds to the hard disk format

2. Format the hard disk

Linux hard disk format requires Etx4. My hard disk has already been formatted. Try it again. Use the command: mkfs.ext4 hard disk name

(For example, my own is: mkfs.ext4 /dev/sda)

This process will prompt Proceed anyway? (y,N), asking you if you want to continue formatting. Enter y and press Enter to continue. If you are prompted with other press Enter later, it will be OK.

3. Mount hard disk/U disk

Next, start mounting the hard disk, check the UUID of the hard disk, and enter blkid hard disk name

(For example, my own is: blkid /dev/sda)

image-20231107184825066UUID=”This is the UUID”Copy Come down and use the FinalShell tool to connect to Wanke Cloud and find the /etc/fstab file to open and edit (I use the finalshell that comes with the ftp tool, if you After installing Pagoda, you can also search directly in the Pagoda file. Of course, you can also use the VI command line to edit directly)

4.Basic usage of finalshell

animated picture

img

Double-click the established connection

image-20231107185322741

Operation is possible after successful connection

image-20231107185409586

5. Edit the /etc/fstab file

Double click to start editing

image-20231107185609811

Append after the fstab file:

UUID=Change to your hard disk UUID /mnt/wuchen/ ext4 defaults,noatime,commit=600,errors=remount-ro 0 0

image-20231107185659031

After editing, save and upload it back. Create the folder name you just set under the /mnt/ folder. For example, what I just set is /mnt/wuchen, so create a wuchen folder.

Return to the command line window and enter reboot to restart Wanke Cloud. Wait 1-2 minutes for the restart to succeed. Log in to the Pagoda. You can see the hard disk you just mounted on the homepage.

(2).Docker installation

Command line window input

apt install docker.io

image-20231107190127382

After installation, execute docker info to check whether the installation is successful. If there is a version number, it means success.

image-20231107190229472

(3).CasaOS installation

Picture of successful installation, visual operation for easy management

image-20231107190330974

check the time

date -R

If the time zone and time are wrong. Do the following

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Then it’s time to install the casaos system. You only need this one code to install casaos. The process may take a long time, so just wait patiently.

wget -qO- https://get.casaos.io | bash

Friends with poor network connections can try executing this domestic source code (note that the casaos system cannot be automatically upgraded after one-click installation using domestic sources)

curl -fsSL cn-get.casaos.io | bash

After the installation is complete, enter the IP address of Wanke Cloud into the browser to enter casaos.

Change the source (if the software can be updated normally, you don’t need to change the source)

nano /etc/apt/sources.list

Then press the arrow keys to the end and add the following code in the blank space:

deb Index of /debian/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye main contrib non-free
# deb-src Index of /debian/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye main contrib non-free
deb Index of /debian/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye-updates main contrib non-free
# deb-src Index of /debian/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye-updates main contrib non-free
deb Index of /debian/ | Tsinghua Open Source Mirror bullseye-backports main contrib non-free
# deb-src Index of /debian/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye-backports main contrib non-free
deb Index of /debian-security/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye-security main contrib non-free
# deb-src Index of /debian-security/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye-security main contrib non-free

To change the source, you can comment out the original software source with “#”. for example

# deb-src Index of /debian/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror bullseye main contrib non-free

If “#” is added in front of this sentence, the system will not run this code.

After changing the source, run the following command to update it

apt-get update

Restart once after updating to avoid errors.

reboot

After the restart is completed, enter the Wanke Cloud IP in the browser to access it.

(4). Qinglong installation

Install Qinglong panel

1. Pull the image

A bug in Qinglong 2.11.1 and later versions affects 32-bit arm. The old version 2.10.13 is recommended here.

docker pull whyour/qinglong:2.10.13
2. Create a container
docker run -tid --name qinglong -p 5700:5700 --restart always whyour/qinglong:2.10.13

Then you can access the panel through ip:5700 (if you can’t open the white screen, search Qinglong panel white screen tutorial on Baidu. Simply put, the CDN is blocked)

Default account: admin Password: admin

(5).Home Assistant installation

1.Home Assistant installation
#Pull the latest version of hass image
docker pull homeassistant/home-assistant:latest
#Create container and run
docker run -d --restart always --name="hass" -v /home/hass/config:/config -p 8123:8123 homeassistant/home-assistant:latest
2.hacs plug-in installation
(1). Find the CONTAINER ID of HomeAssistant

After connecting to Wanke Cloud, enter the terminal and enter:

docker ps

Found the container ID of docker

image-20231107191319036

(2).config HomeAssistant

Enter the following command (replace CONTAINER_ID with your own)

docker exec -it CONTAINER_ID /bin/bash

What I entered here is docker exec -it 08b7fdd2f509 /bin/bash

image-20231107191538084

Enter the config directory:

cd config

Enter the custom_components directory

cd custom_components

If entry fails, create a new directory

mkdir custom_components

Enter the custom_components directory again

cd custom_components

image-20231107191906351

The interface shown above is correct.

Create a new folder hacs

mkdir hacs

Enter the hacs directory

cd hacs
(3). Open WinSCP and pass in the hacs.zip you just downloaded

Enter the directory in the picture and drag in the compressed package

image-20231107192437368

(4). Unzip hacs.zip
unzip hacs.zip
(5).Restart HomeAssistant

quit

exit

Restart (replace CONTAINER_ID with your own):

docker restart CONTAINER_ID
(6). Enter the HomeAssistant web page and hacs has been installed successfully

image-20231107192725894

6. Docker image location movement

(1). View the current storage directory

1. First use docker system df to understand the partition status of the current machine.

image-20231107193208473

(2) View the current storage directory

2. Stop the container from running

systemctl stop docker

image-20231107193340644

3. Create a new storage directory for docker

mkdir -p /data/docker/lib/docker

4. Copy the default /ar/Libai/docker directory to the new directory. Both rsync and cp commands can be used. I use rsync here, you can also use the cp -rf command.

rsync -r -avz /var/lib/docker /data/lib/docker

It should be noted that the copy destination path in my screenshot is /data/lib.

There will be a prompt when copying is complete.

image-20231107193404149

5. Modify the docker storage configuration file **/etc/docker/daemon.json**

image-20231107193634659

image-20231107193755653

Change to the directory you want to move to

{<!-- -->
    "data-root": "/mnt/wuchen/docker/"
}

6. Reload the configuration file and start the docker service

systemctl daemon-reload

systemctl start docker

(3) Check whether the modification is successful. You can find that the modification has been successful

docker info

image-20231107193547887

The path is /data/lib an effect

There will be a prompt when copying is complete.

[External link pictures are being transferred…(img-fI8zuQO9-1699357772037)]

5. Modify the docker storage configuration file **/etc/docker/daemon.json**

[External link pictures are being transferred…(img-tZ3M9udQ-1699357772037)]

[External link pictures are being transferred…(img-iDM59bgb-1699357772037)]

Change to the directory you want to move to

{<!-- -->
    "data-root": "/mnt/wuchen/docker/"
}

6. Reload the configuration file and start the docker service

systemctl daemon-reload

systemctl start docker

(3) Check whether the modification is successful. You can find that the modification has been successful

docker info

[External link pictures are being transferred…(img-BvNG5Nhc-1699357772037)]

4 containers are in normal condition

All attachments packaging address: https://pan.baidu.com/s/1Qf1lawXWhFj_kqZtfRu8-g?pwd=2da9
Extraction code: 2da9

syntaxbug.com © 2021 All Rights Reserved.