Установка Ubuntu server на Orange Pi Zero2. Используем файл образа Ubuntu 22.04 Jammi (20.04 Focal) server с сайта orangepi.org. Файлы образов можно выбрать на странице этого сайта serviceAndSupport и скачать через Google disk.

Архив с образом необходимо распаковать и проверить на целостность.

sha256sum -c *.sha

Для записи образа операционной системы на micro SD Flash карту используем программу balenaEtcher. Ссылка для скачивания balenaEtcher. Программу balenaEtcher устанавливать не надо, по ссылке загружается архив программы. Скачиваем, разархивируем и запускаем двойным щелчком. BalenaEtcher работает на Linux, Windows и macOS.

При первом старте сервера происходит подготовка SD карты к использованию.

 / _ \|  _ \(_) |__  /___ _ __ ___|___ \ 
| | | | |_) | |   / // _ \ '__/ _ \ __) |
| |_| |  __/| |  / /|  __/ | | (_) / __/ 
 \___/|_|   |_| /____\___|_|  \___/_____|
                                         
Welcome to Orange Pi 3.0.4 Jammy with Linux 5.16.17-sun50iw9

System load:   25%           	Up time:       40 min	
Memory usage:  15% of 984M   	IP:	       192.168.1.7
CPU temp:      52°C           	Usage of /:    5% of 29G    	

[ 11 security updates available, 16 updates total: apt upgrade ]
Last check: 2022-06-09 09:21

[ General system configuration (beta): orangepi-config ]

Last login: Thu Jun  9 09:27:50 2022

Используйте login root или orangepi, пароль orangepi.

Рекомендуется использовать micro SD Flash карту с торговой маркой SanDisk class 10.

Обновите операционную систему.

sudo apt update
sudo apt upgrade

Некоторые настройки можно сделать с помощью утилиты sudo orangepi-config

sudo orangepi-config

Утилита orangepi-config предлагает диалоговый режим:

Рис. 1.

Рис. 1.

Настройка поддержки русского языка.

Проверим языки установлены в системе.

locale -a
C
C.utf8
POSIX

Лист. 5.

Приступаем к настройкам.

sudo dpkg-reconfigure locales
   ┌────────────────────────────────┤ Configuring locales ├─────────────────────────────────┐
   │ Locales are a framework to switch between multiple languages and allow users to use    │ 
   │ their language, country, characters, collation order, etc.                             │ 
   │                                                                                        │ 
   │ Please choose which locales to generate. UTF-8 locales should be chosen by default,    │ 
   │ particularly for new installations. Other character sets may be useful for backwards   │ 
   │ compatibility with older systems and software.                                         │ 
   │                                                                                        │ 
   │ Locales to be generated:                                                               │ 
   │                                                                                        │ 
   [ ] ro_RO.UTF-8 UTF-8                                                              
   [*] ru_RU.UTF-8 UTF-8                                                              
   [ ] ru_UA.UTF-8 UTF-8                                                              
   │                                                                                        │ 
   │                                                                                        │ 
   <Ok>                            <Cancel>                        │ 
   │                                                                                        │ 
   └────────────────────────────────────────────────────────────────────────────────────────┘ 
                                                                                              
 ┌──────────────────────────────────┤ Configuring locales ├──────────────────────────────────┐
 │ Many packages in Debian use locales to display text in the correct language for the       │ 
 │ user. You can choose a default locale for the system from the generated locales.          │ 
 │                                                                                           │ 
 │ This will select the default language for the entire system. If this system is a          │ 
 │ multi-user system where not all users are able to speak the default language, they will   │ 
 │ experience difficulties.                                                                  │ 
 │                                                                                           │ 
 │ Default locale for the system environment:                                                │ 
 │                                                                                           │ 
 │                                       None                                                │ 
 │                                       C.UTF-8                                             │ 
 ru_RU.UTF-8  
 │                                                                                           │ 
 │                                                                                           │ 
 <Ok>                             <Cancel>                         │ 
 │                                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────────────────────┘ 
                                                                                               
sudo dpkg-reconfigure tzdata
 ┌──────────────────────────────────┤ Configuring tzdata ├───────────────────────────────────┐
 │ Please select the geographic area in which you live. Subsequent configuration questions   │ 
 │ will narrow this down by presenting a list of cities, representing the time zones in      │ 
 │ which they are located.                                                                   │ 
 │                                                                                           │ 
 │ Geographic area:                                                                          │ 
 │                                                                                           │ 
 │                                       Atlantic       ↑                                    │ 
 │                                       Australia      ▒                                    │ 
 Europe         ▒                                    │ 
 │                                       Indian         ▮                                    │ 
 │                                       Pacific        ▒                                    │ 
 │                                       Etc            ↓                                    │ 
 │                                                                                           │ 
 │                                                                                           │ 
 <Ok>                             <Cancel>                         │ 
 │                                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────────────────────┘ 
                                                                                               
             ┌───────────────────────┤ Configuring tzdata ├───────────────────────┐
             │ Please select the city or region corresponding to your time zone.  │ 
             │                                                                    │ 
             │ Time zone:                                                         │ 
             │                                                                    │ 
             │                           Minsk           ↑                        │ 
             │                           Monaco          ▒                        │ 
             Moscow          ▒                        │ 
             │                           Nicosia         ▮                        │ 
             │                           Oslo            ▒                        │ 
             │                           Paris           ▒                        │ 
             │                           Podgorica       ▒                        │ 
             │                           Prague          ↓                        │ 
             │                                                                    │ 
             │                                                                    │ 
             <Ok>                     <Cancel>                  │ 
             │                                                                    │ 
             └────────────────────────────────────────────────────────────────────┘ 
                                                                                    
Current default time zone: 'Europe/Moscow'
Local time is now:      Sun Feb  2 19:43:36 MSK 2025.
Universal Time is now:  Sun Feb  2 16:43:36 UTC 2025.
sudo dpkg-reconfigure console-setup
                            ┌────┤ Configuring console-setup ├─────┐
                            │                                      │ 
                            │                                      │ 
                            │ Encoding to use on the console:      │ 
                            │                                      │ 
                            │         ISO-8859-7           ↑       │ 
                            │         ISO-8859-8           ▒       │ 
                            │         ISO-8859-9           ▒       │ 
                            │         KOI8-R               ▒       │ 
                            │         KOI8-U               ▒       │ 
                            │         TIS-620              ▮       │ 
                            UTF-8                ▒       │ 
                            │         VISCII               ↓       │ 
                            │                                      │ 
                            │                                      │ 
                            │       <Ok>           <Cancel>        │ 
                            │                                      │ 
                            └──────────────────────────────────────┘ 
                                                                     
Package configuration────────────┤ Configuring console-setup ├───────────────────────┐
         │ Please choose the character set that should be supported by the console   │ 
         │ font.                                                                     │ 
         │                                                                           │ 
         │ If you don't use a framebuffer, the choices that start with "." will      │ 
         │ reduce the number of available colors on the console.                     │ 
         │                                                                           │ 
         │ Character set to support:                                                 │ 
         │                                                                           │ 
         │      . Arabic                                                        ↑    │ 
         │      # Armenian                                                      ▮    │ 
         # Cyrillic - KOI8-R and KOI8-U                                  ▒    │ 
         │      # Cyrillic - non-Slavic languages                               ▒    │ 
         │      . Cyrillic - non-Slavic languages (for blind users)             ▒    │ 
         │      # Cyrillic - Slavic languages (also Bosnian and Serbian ...     ▒    │ 
         │      . Cyrillic - Slavic languages (for blind users)                 ↓    │ 
         │                                                                           │ 
         │                                                                           │ 
         <Ok>                        <Cancel>                   │ 
         │                                                                           │ 
         └───────────────────────────────────────────────────────────────────────────┘ 
                                                                                       
Package configuration────────────┤ Configuring console-setup ├───────────────────────┐
         │ "VGA" has a traditional appearance and has medium coverage of             │ 
         │ international scripts. "Fixed" has a simplistic appearance and has        │ 
         │ better coverage of international scripts. "Terminus" may help to reduce   │ 
         │ eye fatigue, though some symbols have a similar aspect which may be a     │ 
         │ problem for programmers.                                                  │ 
         │                                                                           │ 
         │ If you prefer a bold version of the Terminus font, choose either          │ 
         │ TerminusBold (if you use a framebuffer) or TerminusBoldVGA (otherwise).   │ 
         │                                                                           │ 
         │ Font for the console:                                                     │ 
         │                                                                           │ 
         Fixed                                     ↑               │ 
         │                 Terminus                                  ▮               │ 
         │                 TerminusBold                              ▒               │ 
         │                 TerminusBoldVGA                           ↓               │ 
         │                                                                           │ 
         │                                                                           │ 
         │                    <Ok>                        <Cancel>                   │ 
         │                                                                           │ 
         └───────────────────────────────────────────────────────────────────────────┘ 
                                                                                       
           ┌─────────────────────┤ Configuring console-setup ├──────────────────────┐
           │ Please select the size of the font for the console.  Some font sizes   │ 
           │ require framebuffer.                                                   │ 
           │                                                                        │ 
           │ Font size:                                                             │ 
           │                                                                        │ 
           │                                 8x13                                   │ 
           │                                 8x14                                   │ 
           │                                 8x15                                   │ 
           8x16  
           │                                 8x18                                   │ 
           │                                                                        │ 
           │                                                                        │ 
           │                   <Ok>                       <Cancel>                  │ 
           │                                                                        │ 
           └────────────────────────────────────────────────────────────────────────┘ 
                                                                                      

Лист. 6

Эту команду надо выполнить локально:

sudo dpkg-reconfigure keyboard-configuration
reboot

Лист. 7