# 实验室边缘设备运行程序传感器与图像采集程序 **Repository Path**: qiaoyukeji/edge_nodes_run_code ## Basic Information - **Project Name**: 实验室边缘设备运行程序传感器与图像采集程序 - **Description**: 实验室边缘设备运行程序传感器与图像采集程序,主要用于 Nanopc-T4开发板与H616开发板。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-02 - **Last Updated**: 2024-06-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 本文档为 https://gitee.com/qiaoyukeji/nanopc2jetlinks4mqtt 的精简代码库,详细代码见原库。 --- ## 手动运行 将本仓库克隆到边缘设备中,然后修改 auto_run.bash 中的 设备ID,之后使用 root 账号运行 `bash auto_run.bash` 测试即可。 --- ## 添加开机自启动运行 ### 1. 修改代码中的 auto_run.bash 绝对路径 ### 2. 创建软链接到 `init.d` 目录中 ```bash sudo ln -s /your_script.bash /etc/init.d/your_script.bash ``` ### 3. 修改软链接的权限 ```bash sudo chmod +x /etcinit.d/your_script.bash ``` ### 4. 在 `rc.local` 中添加自启动命令 ```bash bash /etc/init.d/your_script.bash ``` ### 5. 重启测试自启动是否成功 --- 注意:自启动需要在 `root` 账户下添加再能正常启动