Changes for page Armbian OS instruction
Last modified by Edwin Chen on 2025/02/26 08:18
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -328,17 +328,17 @@ 328 328 === 3.2.6 Generate Release file === 329 329 330 330 331 -==== Create the generated script: ==== 331 +==== (% style="color:blue" %)Create the generated script:(%%) ==== 332 332 333 333 334 -cd /var/www/html/debian/release/dists/stable 334 +(% style="background-color:yellow" %)**cd /var/www/html/debian/release/dists/stable** 335 335 336 336 337 -wget [[http:~~/~~/repo.dragino.com/release/tool/unimportant/generate-release.sh>>url:http://repo.dragino.com/release/tool/unimportant/generate-release.sh]] 337 +(% style="background-color:yellow" %)**wget [[http:~~/~~/repo.dragino.com/release/tool/unimportant/generate-release.sh>>url:http://repo.dragino.com/release/tool/unimportant/generate-release.sh]]** 338 338 339 -chmod + x ./generate-release.sh 339 +(% style="background-color:yellow" %)**chmod + x ./generate-release.sh** 340 340 341 -./generate-release.sh > Release 341 +(% style="background-color:yellow" %)**./generate-release.sh > Release** 342 342 343 343 344 344 ... ... @@ -345,95 +345,114 @@ 345 345 === 3.2.7 Sign the Release file with gpg and generating Inrelease file === 346 346 347 347 348 -==== Make sure auto-update server has gnupg ==== 349 349 350 -apt installgnupg349 +==== (% style="color:blue" %)Make sure auto-update server has gnupg(%%) ==== 351 351 352 -==== generate gpg key ==== 353 353 354 - gpg-gen-key352 +(% style="background-color:yellow" %)**apt install gnupg** 355 355 356 356 355 + 356 +==== (% style="color:blue" %)generate gpg key(%%) ==== 357 + 358 + 359 +(% style="background-color:yellow" %)**gpg -gen-key** 360 + 361 + 357 357 **((% style="color:red" %)Note: Fill in the content as required and remember the name and email address)(%%)** 358 358 359 359 360 -==== Check the gen-key ==== 361 361 362 -gen list-key366 +==== (% style="color:blue" %)Check the gen-key(%%) ==== 363 363 364 364 365 - ====Generatetherelease.gpg ====369 +(% style="background-color:yellow" %)**gen -list-key** 366 366 367 -cd /var/www/html/debian/release/dists/stable 368 368 369 -gpg ~-~-armor ~-~-detach-sign -o Release.gpg Release 370 370 373 +==== (% style="color:blue" %)Generate the release.gpg(%%) ==== 371 371 372 -gpg ~-~-clearsign -o InRelease Release 373 373 376 +(% style="background-color:yellow" %)**cd /var/www/html/debian/release/dists/stable** 374 374 378 +(% style="background-color:yellow" %)**gpg ~-~-armor ~-~-detach-sign -o Release.gpg Release** 375 375 376 376 377 - ====Generatethepublickey====381 +(% style="background-color:yellow" %)**gpg ~-~-clearsign -o InRelease Release** 378 378 379 379 380 -gpg ~-~-armor ~-~-output <name>.asc ~-~-export <email address> 381 381 382 - **example:gpg~-~-armor ~-~-output xiao.asc ~-~-export**[[xiaoye@dragino.cc>>mailto:xiaoye@dragino.cc]]385 +==== (% style="color:blue" %)Generate the public key(%%) ==== 383 383 384 384 388 +(% style="background-color:yellow" %)**gpg ~-~-armor ~-~-output <name>.asc ~-~-export <email address>** 385 385 386 386 391 +**example: gpg ~-~-armor ~-~-output xiao.asc ~-~-export **[[xiaoye@dragino.cc>>mailto:xiaoye@dragino.cc]] 392 + 393 + 394 + 387 387 === 3.2.8 Add url as apt source in LPS8v2 / MS20 === 388 388 389 -==== Add the public key ==== 390 390 391 -cp xiao.asc /etc/apt/trusted.gpg.d/ 392 392 393 -(% style="color: red" %)Note: First need to transfer the public keyfrom auto-update server to device.399 +==== (% style="color:blue" %)Add the public key(%%) ==== 394 394 395 395 396 - ====Addthept sourcet====402 +(% style="background-color:yellow" %)**cp xiao.asc /etc/apt/trusted.gpg.d/** 397 397 404 +(% style="color:red" %)**Note: First need to transfer the public key from auto-update server to device.** 405 + 406 + 407 + 408 +==== (% style="color:blue" %)Add the apt source list(%%) ==== 409 + 410 + 398 398 Add the apt source list url and name this as test_server.list 399 399 400 -echo "deb http:~/~/<IP_address or hostname>/debian/release stable main" | tee /etc/apt/sources.list.d/test_server.list 413 +(% style="background-color:yellow" %)**echo "deb http:~/~/<IP_address or hostname>/debian/release stable main" | tee /etc/apt/sources.list.d/test_server.list** 401 401 402 402 403 -==== Validate the apt repository ==== 404 404 417 +==== (% style="color:blue" %)Validate the apt repository(%%) ==== 418 + 419 + 405 405 Get and install the testing package (download testing-0808.deb and test) 406 406 407 -apt update && apt install testing 422 +(% style="background-color:yellow" %)**apt update && apt install testing** 408 408 424 + 409 409 Example output: 410 410 411 -[[image: file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image008.jpg]]427 +[[image:1661306420449-569.png]] 412 412 413 413 414 414 431 +=== 3.2.9 Configure the gateway's auto-upgrade rules === 415 415 416 -=== 3.2.9 Configure the gateway‘s auto-upgrade rules === 417 417 418 -==== Remove dragino apt source ==== 419 419 420 - /etc/apt/sources.list435 +==== (% style="color:blue" %)Remove dragino apt source(%%) ==== 421 421 422 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image010.jpg]] 423 423 438 +(% style="background-color:yellow" %)**/etc/apt/sources.list** 424 424 425 425 441 +[[image:1661306460134-112.png]] 426 426 427 427 428 -==== Set up automatic updates ==== 429 429 430 - Path:/usr/lib/dragino/dragino-apt-updates445 +==== (% style="color:blue" %)Set up automatic updates(%%) ==== 431 431 432 432 448 +(% style="background-color:yellow" %)**Path : /usr/lib/dragino/dragino-apt-updates** 449 + 450 + 433 433 The device performs automatic updates from this script, 434 434 435 435 But it will now only look for dragino as a keyword, so you need to replace the keyword dragino with your own keyword. 436 436 437 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image012.jpg]] 438 438 456 +[[image:1661306487761-768.png]] 457 + 439 439
- 1661306420449-569.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +237.0 KB - Content
- 1661306460134-112.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +146.8 KB - Content
- 1661306487761-768.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +291.9 KB - Content