1 添加软件源找到这个列表 https://github.com/kenzok8/openwrt-packages 执行 1 2 3 4 5 6 sed -i '$a src-git kenzo https://github.com/kenzok8/openwrt-packages' feeds.conf.default sed -i '$a src-git small https://github.com/kenzok8/small' feeds.conf.default git pull ./scripts/feeds update -a ./scripts/feeds install -a make menuconfig 2 配置菜单选择luci->applicati
1 alist https://github.com/sbwml/luci-app-alist 1 2 3 git clone https://github.com/sbwml/luci-app-alist package/alist make menuconfig # choose LUCI -> Applications -> luci-app-alist make package/alist/luci-app-alist/compile V=s # build luci-app-alist 编译完成后,bin/packages/x86_64/base中找到 1 2 root@tignioj:~/mybuild/openwrt/bin/packages/x86_64/base# ls *alist* alist_3.30.0-2_x86_64.ipk luci-app-alist_1.0.11_all.ipk luci-i18n-alist-zh-cn_git-23.223.34172-ff70952_all.ipk 复制到o
1 准备docker镜像 1 mkdir my-openwrt && cd my-openwrt 复制编译好的openwrt-x86-64-generic-rootfs.tar.gz 到 my-openwrt 1 cp ~/mybuild/openwrt/bin/targets/x86/64/openwrt-x86-64-generic-rootfs.tar.gz . 编写Doc
1 整体步骤 docker构建编译所需的系统镜像 下载源代码 首次编译 选择自己需要的软件再次编译 集成第三方软件包编译/编译单独ipk 官网教程: https://openwrt.org/docs/guide-developer/toolchain/start 1.1 为
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 from selenium import webdriver from selenium.webdriver.common.by import By from PIL import Image from io import BytesIO driver = webdriver.Chrome() driver.maximize_window() def checkCode(img): img = Image.open(BytesIO(img)) ocr = ddddocr.DdddOcr() code_text = ocr.classification(img) img.save(code_text + ".png", "PNG") # 保存验证码到本地,可
搭建speedtest服务的时候发现docker拉取镜像的速度太慢了。 1 docker pull ghcr.io/librespeed/speedtest 使用国内的镜像站可以加速,只要把ghcr.io改为ghcr.m
1 添加docker命令到当前终端进入终端,执行以下命令 1 2 3 4 5 DEVICE_UUID=$(uci -q get mi_docker.settings.device_uuid) STORAGE_DIR=$(storage dump | grep -C3 "${DEVICE_UUID:-invalid-uuid}" | grep target: | awk '{print $2}') DOCKER_DIR="${STORAGE_DIR:=/not_exist_disk}/mi_docker" DOCKER_BIN="$DOCKER_DIR/docker-binaries" export PATH=$PATH:$DOCKER_BIN 然后你就能使用docker命令了 2