[enh] Armbian install process

This commit is contained in:
ljf 2021-02-11 02:41:57 +01:00
parent c46ec81891
commit 397db42d02

View file

@ -27,6 +27,7 @@ routes:
- '/boot_and_graphical_install'
- '/postinstall'
---
{% set image_name = 'YunoHost' %}
{% set arm, at_home, regular, rpi2plus, rpi1, rpi0, arm_sup, arm_unsup, vps, vps_debian, vps_ynh, virtualbox, internetcube, docker = false, false, false, false, false, false, false, false, false, false, false, false, false, false %}
{% set hardware = uri.param('hardware') %}
{% if hardware == '' %}
@ -37,6 +38,7 @@ routes:
{% set regular = true %}
{% elseif hardware == 'internetcube' %}
{% set arm, arm_sup, internetcube = true, true, true %}
{% set image_type = 'Internet Cube' %}
{% elseif hardware == 'rpi2plus' %}
{% set arm, rpi2plus = true, true %}
{% elseif hardware == 'rpi1' %}
@ -47,6 +49,7 @@ routes:
{% set arm, arm_sup = true, true %}
{% elseif hardware == 'arm_unsup' %}
{% set arm, arm_unsup = true, true %}
{% set image_type = 'Armbian' %}
{% elseif hardware == 'vps_debian' %}
{% set vps, vps_debian = true, true %}
{% elseif hardware == 'vps_ynh' %}
@ -210,7 +213,7 @@ Here are some VPS providers supporting YunoHost natively :
{% if at_home %}
## [fa=download /] Download the pre-installed image
## [fa=download /] Download the {{image_type}} image
{% if virtualbox %}
!!! If your host OS is 32 bits, be sure to download the 32-bit image.
@ -278,22 +281,26 @@ $(document).ready(function () {
</script>
{% if not virtualbox %}
{% if arm %}
## ![microSD card with adapter](image://sdcard_with_adapter.png?resize=100,75&class=inline) Flash the YunoHost image
## ![microSD card with adapter](image://sdcard_with_adapter.png?resize=100,75&class=inline) Flash the {{image_type}} image
{% else %}
## ![USB drive](image://usb_key.png?resize=100,100&class=inline) Flash the YunoHost image
{% endif %}
Now that you downloaded the image of YunoHost, you should flash it on {% if arm %}a SD card{% else %}a USB stick or a CD.{% endif %}
Now that you downloaded the image of {image_type}, you should flash it on {% if arm %}a SD card{% else %}a USB stick or a CD.{% endif %}
[ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="(Recommended) With Etcher"]
Download <a href="https://www.balena.io/etcher/" target="_blank">Etcher</a> for your operating system and install it.
Plug your {% if arm %}SD card{% else %}USB stick{% endif %}, select your YunoHost image and click "Flask"
Plug your {% if arm %}SD card{% else %}USB stick{% endif %}, select your image and click "Flask"
![Etcher](image://etcher.gif?resize=700&class=inline)
@ -302,7 +309,7 @@ Plug your {% if arm %}SD card{% else %}USB stick{% endif %}, select your YunoHos
Download [USBimager](https://bztsrc.gitlab.io/usbimager/) for your operating system and install it.
Plug your {% if arm %}SD card{% else %}USB stick{% endif %}, select your YunoHost image and click "Write"
Plug your {% if arm %}SD card{% else %}USB stick{% endif %}, select your image and click "Write"
![USBimager](image://usbimager.png?resize=700&class=inline)
@ -408,7 +415,7 @@ You should see a screen like this:
{% if rpi1 or rpi0 %}
## [fa=bug /] Hotfix the image
## [fa=bug /] Connect to the board and hotfix the image
Raspberry pi 1 or zero are not totally supported due to issues with metronome (XMPP) and with miniupnpc (router autoconfig).
However, it is possible to fix by yourself the image before to run the initial configuration.
@ -433,11 +440,21 @@ sed -i 's/import miniupnpc/#import miniupnpc/g' /usr/lib/moulinette/yunohost/fir
! This last command need to be run after each yunohost upgrade :/
{% elseif arm_unsup %}
## [fa=bug /] Connect to the board
Next you need to [find the local IP address of your server](/finding_the_local_ip) to connect as root user [via SSH](/ssh) with the temporary password `1234`.
```
ssh root@192.168.x.xxx
```
{% endif %}
{% endif %}
{% elseif vps_debian %}
{% if vps_debian or arm_unsup %}
## [fa=rocket /] Run the install script
Once you have access to a command line on your server (either directly or [through SSH](/ssh)), you can install YunoHost by running (as root) :