This repo is a helper to configure armbian settings accordingly to different needs.
In this repo it was used an Orange Pi PC and Armbian Focal xfce desktop , with kernel 5.10.60
First of all it's important to get the latest updates:
sudo apt update && sudo apt upgrade
Note1: After a fresh install i have to run the commands above two times, in the first one occurs some certifications issues.
Personal Note1: In the next installation I have to remember to capture the message and open a issue on armbian project.
sudo dpkg-reconfigure keyboard-configuration
# For Brazilian Standard ABNT2 choose the option --> Portuguese (Brazil) - Portuguese (Brazil, no dead keys)
In some cases you may adjust the keymap config. The example below is to Standard ABNT2 deal correctly with tilde (~) and accents)(´^).
localectl set-keymap br-abnt2
sudo dpkg-reconfigure tzdata
I think it's ok to use the default locale but if you wanna change:
sudo dpkg-reconfigure locales
Note: The command above to reconfigure locale may take some time to execute.
Finishing the adjustments above itś interesting to reboot
the machine
To check the sound outputs available:
pacmd list-sinks | less
To change the sound output to hdmi:
# Change the sound output to HDMI
pacmd set-default-sink $(pactl list short sinks | grep -i 'hdmi' | awk '{print $2}')
This change is not persistent, to make it persistent add the command above in end of the file ~/.bashrc (Do this with your user, not root/sudo)
Some apps, like retroarch, don't need desktop environment. Disabling the desktop environment is great to save CPU/GPU/memory resources.
sudo armbian-config
# Options: System --> Desktop --> Disable Desktop
If in some moment you need the desktop environment just run startx
from the terminal. The "logout" option close the desktop environment.
Add, with sudo, the lines below to the file /etc/rc.local
# Turn Numlock on for the TTYs:
for tty in /dev/tty[1-6]; do
/usr/bin/setleds -D +num < $tty
done
At this moment (2022-01-01), the kernel of stable version of armbian does not support 4k resolution. This may cause black screen on connect the SBC to 4k resolution devices. To deal with that you could:
- Change the kernel to some legacy or development option, or;
- Force the resolution to 1080p
Here we will do the second option.
Add, with sudo, the line below to the file /boot/armbianEnv.txt
extraargs=video=HDMI-A-1:1920x1080@60
Note: Despite of this config turn OS functional at 1080p some apps may try to use 4k resolution. Retroarch is one of them, and because of it you have to change configuration in retroarch.cfg to use the 1080p resolution.
Every time you need to edit files in linux command line you could do these steps:
- Type "nano" followed by the filename.
- Edit the file.
- Use the Ctrl-o command to save.
- Use the Ctrl-x command to exit the text editor.