Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-22023-2210132
proj235-LinuxOTA-4000
Commits
1edc7712
Commit
1edc7712
authored
8 months ago
by
lixworth
Browse files
Options
Download
Patches
Plain Diff
feat: update document
parent
779062a9
master
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client-ui/pages/index.vue
+1
-1
client-ui/pages/index.vue
document/index.md
+31
-1
document/index.md
with
32 additions
and
2 deletions
+32
-2
client-ui/pages/index.vue
+
1
−
1
View file @
1edc7712
...
...
@@ -68,7 +68,7 @@ onMounted(async () => {
<UpdaterListPanelVue
title=
"设备名称"
>
{{
info
.
hostname
}}
</UpdaterListPanelVue>
<UpdaterListPanelVue
title=
"
硬件
信息"
>
<UpdaterListPanelVue
title=
"
架构
信息"
>
{{
info
.
os
}}
{{
info
.
platformVersion
}}
{{
info
.
kernelArch
}}
</UpdaterListPanelVue>
<UpdaterListPanelVue
title=
"系统版本"
>
...
...
This diff is collapsed.
Click to expand it.
document/index.md
+
31
−
1
View file @
1edc7712
# Linux的OTA升级系统 文档
\ No newline at end of file
# Linux的OTA升级系统 文档
## 技术实现
### shells 升级脚本
### ota-updater 升级程序本体
基于 Golang + Gin 构建,使用 BadgerDB 存储数据,通过 exec 执行 shells 中的命令实现系统级操作,除本体守护进程外,也开发了对应管理工具cli应用。
### client-ui 升级程序界面
基于 Nuxt(Vue3) + NuxtUI 构建升级操作界面,与 ota-updater 交互实现系统升级、升级设置、日志查看等操作。
## 安装编译
*
构建 client-ui
*
cd clinet-ui/
*
pnpm install
*
pnpm run generate
*
构建 ota-updater (交叉编译请自行修改构建参数)
*
cd ota-updater
*
go build cmd/daemon/daemon.go
*
go build cmd/cli/sys-upgrade.go
*
构建 ota-manage (基础Docker容器,手动构建需配置.env文件)
*
docker compose up --build -d
## 操作使用
*
访问 http://ip:9301/
*
默认用户密码 passwordroot
*
修改升级服务器为 ota-manage 的API地址 例如: https://cscc.kokomi.ltd/api
*
检查更新/手动上传更新
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets