How to customize keyboard, time zone?¶
- Attention: The preferred method to change most of this stuff is by using the interactive armbian-config tool which is shipped with all Armbian images.
Keyboard:¶
Text Only | |
---|---|
1 |
|
In some cases, e.g. when your keyboard standard is not available in previous command, you may also need to set your keymap config:
Text Only | |
---|---|
1 2 3 4 5 |
|
System language:¶
Text Only | |
---|---|
1 2 3 4 |
|
Console font, codepage:¶
Text Only | |
---|---|
1 |
|
Time zone:¶
Text Only | |
---|---|
1 |
|
Sound output:¶
Text Only | |
---|---|
1 2 3 4 5 6 7 8 |
|
The name of HDMI sound output may change accordingly to the device. If you don’t wanna deal with different names you can:
Text Only | |
---|---|
1 |
|
The command to define the default sound output is not persistent, to make it persistent add it to the file ~/.bashrc
Screen resolution on other boards:¶
Text Only | |
---|---|
1 2 3 4 5 6 7 8 9 |
|
Screen resolution within Xorg¶
- Thanks to user @maxlinux2000 in this forum post.
Find matching HDMI output:
Text Only | |
---|---|
1 |
|
Calculate VESA CVT mode lines (example for 1440x900)
Text Only | |
---|---|
1 |
|
Sample output:
Text Only | |
---|---|
1 2 |
|
Create new mode (example):
Text Only | |
---|---|
1 |
|
Add resolution (example):
Text Only | |
---|---|
1 |
|
Set current resolution (example):
Text Only | |
---|---|
1 |
|
If it works as expected add it to Xorg by editing /etc/X11/xorg.conf.d/40-monitor.conf
and add (example):
Text Only | |
---|---|
1 2 3 4 5 |
|
Restart Xorg or reboot
How to alter CPU frequency?¶
Some boards allow to adjust CPU speed
Text Only | |
---|---|
1 |
|
Alter min_speed or max_speed variable.
Text Only | |
---|---|
1 |
|
Swap for experts¶
By default Armbian implements ZRAM (writing nothing to ‘disk’ but compressing memory pages in RAM) but in case you often run into out of memory errors and your device has some capable storage (e.g. a securely attached NVMe or SATA SSD) you might want to use ZSWAP instead.
Check whether your kernel has zswap enabled (dmesg | grep zswap
should output something) and if so create a swapfile or swap partition the traditional way, edit/uncomment /etc/default/armbian-zram-config
so that it reads SWAP=false
, reboot and you’re done.
Zswap performs a lot better than the combination of ZRAM and ‘swap on disk’ in parallel.
How to downgrade a package via apt?¶
This is useful when you need to fall back to previous kernel version.
Text Only | |
---|---|
1 |
|
This example is for H3 legacy kernel. Check this page for others.
How to toggle boot output?¶
Edit and change boot parameters in /boot/boot.cmd
(not recommended) or variables in /boot/armbianEnv.txt
:
Text Only | |
---|---|
1 2 |
|
To disable console entirely (not recommended) set console to none
.
Recompile boot.cmd to boot.scr if it was changed:
Text Only | |
---|---|
1 |
|
Reboot.
Serial console on imx6 boards are ttymxc0 (Hummingboard, Cubox-i) or ttymxc1 (Udoo).
How to toggle verbose boot?¶
Using Armbian 5.05 to 5.20 you would need to touch/rm /boot/.force-verbose
to increase boot verbosity. With more recent Armbian builds you would have to alter the verbosity=
line in /boot/armbianEnv.txt
(defaults to 1 which means less verbose, maximum value is 7).
How to provide boot logs for inspection?¶
When your SBC behaves strange first step is to check power supply and integrity of boot media (armbianmonitor -c "$HOME"
). Then look into your kernel logs. We made a tool that grabs info and pastes it to an online pasteboard service. Please increase boot verbosity as shown above (verbosity=7
), reboot and then run
Text Only | |
---|---|
1 |
|
Copy and past URL of your log to the forum, mail, …
How to change network configuration?¶
To get Wi-Fi working simply use nmtui
, a simple console based UI for network-manager (an example how to set up an AP with network-manager can be found here). To deal with different Ethernet/Wi-Fi combinations there are six predefined configurations available, you can find them in those files:
Text Only | |
---|---|
1 2 3 4 5 6 |
|
By default /etc/network/interfaces is a copy of /etc/network/interfaces.default
- BONDING: your network adapters are bonded in fail safe / “notebook” way.
- DEFAULT: your network adapters are connected classical way.
- HOSTAPD: your network adapters are bridged together and bridge is connected to the network. This allows you to have your AP connected directly to your router.
- All interfaces are handled by network-manager (
nmtui
/nmcli
or using the GUI) - Router configuration for Lamobo R1 / Banana R1.
- Switch configuration for Lamobo R1 / Banana R1.
You can switch configuration with copying.
Text Only | |
---|---|
1 2 |
|
(x = default,hostapd,bonding,r1)
Then check / alter your interfaces:
Text Only | |
---|---|
1 |
|
Choosing an apt mirror¶
Armbian has its own apt repository and mirrors for armbian-specific packages. The default of http://apt.armbian.com
is a round-robin to all mirrors. If you are having trouble updating or slow speeds you may want to choose a specific mirror.
Do the following:
Assure jq
is installed
apt install -y jq
Get a list of available mirrors from our https://apt.armbian.com/mirrors
endpoint.
Bash | |
---|---|
You will see a result set similar to this, listing mirrors by region:
Edit /etc/apt/sources.list.d/armbian.list
and replace the url http://apt.armbian.com
with your preferred mirror.