System Configuration
1. Language Settings
-
Use Vim to edit the
/etc/locale.genfile, comment out unnecessary locales, and enable the required ones.vim /etc/locale.gen -
To switch from Chinese to English, perform the following actions in the file.
Comment out the line: zh_CN.UTF-8 UTF-8.Uncomment the line: en_US.UTF-8 UTF-8. -
Use the
dpkg-reconfigurecommand to regenerate the locale files non-interactively:dpkg-reconfigure -f noninteractive locales
2. Auto-Start Configuration
This section takes the GPIO program as an example for auto-start. The absolute path of the program is /home/luckfox/gpio.py. Please adjust the file paths according to your actual setup.
2.1 Desktop Auto-Start
-
First, create a
startup.shscript using the following command (Omni3566 by default is located in/home/luckfox):sudo touch startup.sh -
Open the
startup.shscript and add the following content:#!/bin/shsudo python3 gpio.py -
Grant execute permissions to the
startup.shscript:sudo chmod 777 startup.sh -
Create the autostart directory and file:
cd .config && mkdir autostartcd autostart && sudo nano start.desktop -
Add the following content to the
start.desktopfile:[Desktop Entry]Type=ApplicationExec=/home/luckfox/startup.sh -
Reboot the system:
sudo reboot
2.2 Add Auto-Start in rc.local Script
-
Open the
/etc/rc.localscript and add the following line beforeexit 0:sudo python3 /home/luckfox/gpio.py & -
Reboot the Core3576:
sudo reboot
2.3 Set Auto-Start via System Manager
-
Create an auto-start service configuration file in
/etc/systemd/system/gpio.serviceand add the following content:[Unit]Description=start oled[Service]Type=simpleRestart=alwaysRestartSec=5ExecStart=/home/luckfox/gpio.py[Install]WantedBy=multi-user.target -
Enable a service so that it starts automatically at system boot:
sudo systemctl enable gpio.service -
Reboot:
sudo systemctl restart gpio.service -
Reboot Omni3576:
sudo reboot -
If you want to disable a service so that it does not start automatically at system boot:
sudo systemctl disable gpio.service
3. Installing Input Method
-
Install the desktop terminal application.
sudo apt updatesudo apt install xfce4-terminal -
Install the IBUS input method framework and related components.
sudo apt updatesudo apt install ibus-gtk ibus-gtk3 ibus ibus-libpinyin ibus-wayland at-spi2-core -
Start the IBUS background service.
ibus-daemon -drx -
Configure the Chinese input method.
ibus-setup- In the setup window:
- Navigate to Input Method -> Add

- Select Chinese -> Intelligent Pinyin


- Click Close to exit

- Navigate to Input Method -> Add
- In the setup window:
-
Reboot the development board.
reboot- After rebooting, left-click the keyboard icon in the upper-right corner and select Chinese.
- After rebooting, left-click the keyboard icon in the upper-right corner and select Chinese.
-
Install the im-config configuration tool and set IBUS as the default input method framework.
sudo apt install im-configim-config -n ibus