Difference between revisions of "Template:DebianBusterDesktop-Common"

From FriendlyELEC WiKi
Jump to: navigation, search
(updated by API)
 
(updated by API)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===Account & Password===
 
===Account & Password===
Regular Account:
+
Regular Account:<br/>
    User Name: pi
+
&nbsp;&nbsp;&nbsp;&nbsp;User Name: pi<br/>
    Password: pi
+
&nbsp;&nbsp;&nbsp;&nbsp;Password: pi<br/>
 +
<br/>
 +
Root:<br/>
 +
&nbsp;&nbsp;&nbsp;&nbsp;the root user account is disabled by default, you may configure the root password through the 'sudo passwd root' command.
 +
===View IP address===
 +
Since the Debian Buster hostname is the hardware model by default, you can use the ping command to get the IP address:<code>ping {{{1}}}</code><br/>
 +
===Connect to Debian via SSH===
 +
Run the following command<code>ssh pi@{{{1}}}</code><br/>
 +
The default password is: pi
  
Root:
+
===Update Software Packages===
    User Name: root
+
    Password: fa
+
 
+
===WiFi Connection===
+
Click on the icon on the top right in the FriendlyDesktop's main window, select your wanted WiFi hotspot and proceed with prompts
+
 
+
===HDMI/DP LCD Resolution===
+
Open the system's menu and go to Perferences -> Monitor Settings to customize your settings.<br />
+
Recommended resolution: 1920x1080@60Hz
+
 
+
===Adjust HDMI overscan ===
+
Open the command line terminal and enter the command to operate, Note:<br />
+
1) You need to login to the desktop;<br />
+
2) If you are using ssh terminal, please use the same username as the desktop login. The default is pi. You cannot use the root user. you also need to assign the DISPLAY variable:<br />
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
export DISPLAY=:0.0
+
$ sudo apt-get update
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
===Install x11vnc Server on Debian for Remote Access===
====Query which resolutions the display supports====
+
====Install x11vnc server====
 +
The following command to install x11vnc server:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
xrandr -q
+
sudo apt-get install x11vnc
 
</syntaxhighlight>
 
</syntaxhighlight>
====Set resolution====
+
====Set your password====
For example set to 1920X1080@60Hz:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
xrandr --output HDMI-1 --mode 1920x1080 --refresh 60
+
sudo x11vnc -storepasswd /etc/x11vnc.pwd
 
</syntaxhighlight>
 
</syntaxhighlight>
====Adjust the HDMI overscan====
+
====Setup x11vnc server with systemd auto start up====
For example, the transformation scaling horizontal coordinates by 0.8, vertical coordinates by 1.04 and moving the screen by 35 pixels right and 19 pixels down:  
+
Create service configuration file:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
xrandr --output HDMI-1 --transform 0.80,0,-35,0,1.04,-19,0,0,1
+
sudo vi /lib/systemd/system/x11vnc.service
 
</syntaxhighlight>
 
</syntaxhighlight>
====Automatic adjustment at boot====
+
Let’s copy and paste the following configuration into our newly create service file:
Edit ~/.config/autostart/lxrandr-autostart.desktop,Write the full xrandr command to the key at the beginning of "Exec= as shown below:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
[Desktop Entry]
+
[Unit]
Type=Application
+
Description=Start x11vnc at startup.
Name=LXRandR autostart
+
Requires=display-manager.service
Comment=Start xrandr with settings done in LXRandR
+
After=syslog.target network-online.target
Exec=sh -c 'xrandr --output HDMI-1 --mode 1920x1080 --refresh 50 --transform 1.04,0,-35,0,1.05,-30,0,0,1'
+
Wants=syslog.target network-online.target
OnlyShowIn=LXDE
+
</syntaxhighlight>
+
  
===eDP LCD Display Rotation===
+
[Service]
If you want to rotate an eDP LCD's display you can do it by commanding "xrotate.sh" to rotate its display to 90/180/270 degrees.
+
Type=simple
You can rotate display clockwise by 90 degrees by running the following command as root. This command calls lightdm to make your change effective immediately:
+
ExecStart=/usr/bin/x11vnc -display :0 -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pwd -rfbport 5900 -shared -capslock -nomodtweak
<syntaxhighlight lang="bash">
+
ExecStop=/usr/bin/x11vnc -R stop
sudo xrotate.sh -m CW -r
+
Restart=on-failure
</syntaxhighlight>
+
For more details about its options you can run "xrotate -h".<br/>
+
Note: this command doesn't support HDMI display's rotation. If you want to rorate an HDMI's display you need to refer to X11's tech documents and make changes in "/etc/X11/xorg.conf".
+
  
'''Note: when you play a video with hardware decoding your player's display window doesn't rotate with your LCD's display'''
+
[Install]
 
+
WantedBy=multi-user.target
===Test OpenGL ES===
+
You can test it by clicking on the Terminator icon to start a commandline utility in the System Tools and run the following commands:
+
<syntaxhighlight lang="bash">
+
taskset -c 4-5 glmark2-es2
+
 
</syntaxhighlight>
 
</syntaxhighlight>
[[File:Friendlydesktop-glmark-es.png|400px]]<br />
+
The following commands to reload the systmd system and to enable and start the x11vnc service:
[[File:Friendlydesktop-glmark-es2-score.jpg|400px]]<br />
+
 
+
===4K Video Playing===
+
====Play with Qt Player with Hardware Decoding====
+
FriendlyDesktop has integrated a Qt5-VideoPlayer utility. This utility has support for Rockchip's gstreamer plug-in and supports 4K video playing with hardware decoding. You can start it by following the steps below:
+
On FriendlyDesktop's main window open "Sound & Video" and click on "Qt5-VideoPlayer".<br />
+
<br />
+
On the player's main window click on the bottom left's "Open" button to load a video file and double-click on its name on the file list to start video playing. Here is how it looks like. You can set the display window to full screen and adjust the volume:<br />
+
[[File:Friendlydesktop-player.jpg|frameless|480px]]<br />
+
 
+
====Play with Linux Command====
+
You can play it by running the following command in a commandline utility:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
gst-player.sh
+
sudo systemctl daemon-reload
 +
sudo systemctl enable x11vnc.service
 +
sudo systemctl start x11vnc
 
</syntaxhighlight>
 
</syntaxhighlight>
By default its voice will be output to audio jack. You can locate this script by commanding "which gst-player.sh". You can customize its behavior by making changes in this script.
+
====Testing remote access====
 
+
Start the VNC client software, input IP:5900 to connect:<br />
===Work with USB Camera===
+
[[File:Debian10-x11vnc.png|frameless|480px]]
Insert the USB camera (such as Logitech C270/C920) into the development board. Double click the "USB Camera" icon on desktop will pop up the luvcview gui (need to use the 2019/05/11+ version firmware). <br />
+
===Install the kernel-header package===
the luvcview tool is an open source software that you can compile yourself:<br />
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
git clone https://github.com/ksv1986/luvcview
+
sudo dpkg -i /opt/linux-headers-*.deb
cd luvcview
+
make
+
 
</syntaxhighlight>
 
</syntaxhighlight>
View the usage of luvcview:
+
try to compile a kernel module:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
./luvcview -h
+
sudo apt update
 +
sudo apt install git gcc make bc
 +
git clone https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
 +
cd RTL88x2BU-Linux-Driver
 +
make -j$(nproc)
 +
sudo make install
 +
sudo modprobe 88x2bu
 
</syntaxhighlight>
 
</syntaxhighlight>
Parameter Description:
+
 
 +
===Change time zone===
 +
====Check the current time zone====
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
luvcview version 0.2.1
+
timedatectl
Usage: uvcview [-h -d -g -f -s -i -c -o -C -S -L -l -r]
+
-h print this message
+
-d /dev/videoX use videoX device
+
-g use read method for grab instead mmap
+
-w disable SDL hardware accel.
+
-f video format default jpg others options are yuv jpg
+
-i fps use specified frame interval
+
-s widthxheight use specified input size
+
-c enable raw frame capturing for the first frame
+
-C enable raw frame stream capturing from the start
+
-S enable raw stream capturing from the start
+
-o avifile create avifile, default video.avi
+
-L query valid video formats
+
-l query valid controls and settings
+
-r read and set control settings from luvcview.cfg
+
 
</syntaxhighlight>
 
</syntaxhighlight>
To preview USB camera (640x360@30fps),  you can use the following command:
+
====List all available time zones====
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
./luvcview -d /dev/video8 -i 30 -s 640x360
+
timedatectl list-timezones
 
</syntaxhighlight>
 
</syntaxhighlight>
As you can see from the output of luvcview, hardware acceleration has been turned on:
+
====Set the time zone (e.g. Shanghai)====
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
pi@NanoPC-T4:/etc/xrdp$ luvcview -d /dev/video8 -i 30 -s 640x360
+
sudo timedatectl set-timezone Asia/Shanghai
luvcview version 0.2.1
+
interval: 30 fps
+
Hardware acceleration available
+
video /dev/video8
+
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===File Transfer with Bluetooth===
+
===Change startup LOGO and Wallpaper===
Click on the "Preferences" in the main window's menu to start Bluetooth Manager and click on "Search" to search surrounding Bluetooth devices. Click on your wanted device, pair the device with your board and you will be able to do file transfer, here is how it looks like:<br />
+
====Change startup LOGO====
[[File:Friendlydesktop-ble-sendfile.jpg|500px]]<br />
+
Replace the following two files in the kernel source code directory and recompile the kernel:<br/>
 
+
kernel/logo.bmp<br/>
===Install OpenCV===
+
kernel/logo_kernel.bmp<br/>
OpenCV has been pre-installed in FriendlyCore/FriendlyDesktop (Version after 201905) and does not require manual installation.<br />
+
Or use the script to operate, as shown below:
Please refre this link: https://github.com/friendlyarm/install-opencv-on-friendlycore/blob/rk3399/README.md
+
* Download scripts:
 
+
{{#switch: {{{1}}}
===Develop Qt Applications===
+
| NanoPi-NEO3
FriendlyDesktop has a Qt 5.10.0 which supports RK3399's OpenGL ES and Gstreamer 1.0 hardware acceleration and a QtCreator IDE which is ready and can be used to compile and run applications. Here is how it looks like:<br />
+
| NanoPi-R2S
[[File:friendlydesktop-qtcreator.png|500px]]<br />
+
| NanoPi-R2C-Plus
When running the Qt app, you need to specify the platform parameter to xcb as follows:
+
| NanoPi-R2S-Plus
 +
  | NanoPi-R2C =
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
./HelloQt --platform xcb
+
git clone https://github.com/friendlyarm/sd-fuse_rk3328.git -b kernel-4.19 --single-branch
 +
cd sd-fuse_rk3328
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
| NanoPi-R5C
===WiringPi and Python Wrapper===
+
| NanoPi-R5S =
*[[WiringPi for RK3399/zh|WiringPi for RK3399]]
+
*[[WiringPi-Python for RK3399/zh|WiringPi-Python for RK3399]]
+
 
+
===Switch audio default output device===
+
====View the current default output device====
+
On the terminal of the non-root user, enter the following command:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
pactl info -vvv
+
git clone https://github.com/friendlyarm/sd-fuse_rk3568.git -b kernel-6.1.y --single-branch
 +
cd sd-fuse_rk3568
 
</syntaxhighlight>
 
</syntaxhighlight>
The information displayed contains the following, indicating that the current audio output is directed to the headset:
+
| NanoPi-R6C
 +
| NanoPC-T6
 +
| NanoPi-R6S =
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Default Sink: alsa_output.platform-rt5651-sound.stereo-fallback
+
git clone https://github.com/friendlyarm/sd-fuse_rk3588.git -b kernel-6.1.y --single-branch
 +
cd sd-fuse_rk3588
 
</syntaxhighlight>
 
</syntaxhighlight>
The information displayed contains the following, indicating that the current audio output is to HDMI:
+
| #default =
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Default Sink: alsa_output.platform-hdmi-sound.stereo-fallback
+
git clone https://github.com/friendlyarm/sd-fuse_rk3399.git -b kernel-4.19 --single-branch
 +
cd sd-fuse_rk3399
 
</syntaxhighlight>
 
</syntaxhighlight>
====Set headphone jack as the default output device====
+
}}
On the terminal of the non-root user, enter the following command:
+
* Compile kernel and repackage firmware
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
pactl set-default-sink  alsa_output.platform-rt5651-sound.stereo-fallback
+
convert files/logo.jpg -type truecolor /tmp/logo.bmp
 +
convert files/logo.jpg -type truecolor /tmp/logo_kernel.bmp
 +
LOGO=/tmp/logo.bmp KERNEL_LOGO=/tmp/logo_kernel.bmp ./build-kernel.sh debian-buster-desktop-arm64
 +
sudo ./mk-sd-image.sh debian-buster-desktop-arm64
 +
./mk-emmc-image.sh debian-buster-desktop-arm64
 
</syntaxhighlight>
 
</syntaxhighlight>
Set default volume to 20%:
+
Note: If your system is not debian-buster-desktop-arm64, please specify according to the actual situation
 +
====Change Wallpaper====
 +
Modify the following configuration file:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
pactl -- set-sink-volume alsa_output.platform-rt5651-sound.stereo-fallback 20%
+
/home/pi/.config/pcmanfm/LXDE/desktop-items-0.conf
 
</syntaxhighlight>
 
</syntaxhighlight>
====Set hdmi as the default output device====
 
On the terminal of the non-root user, enter the following command:
 
<syntaxhighlight lang="bash">
 
pactl set-default-sink  alsa_output.platform-hdmi-sound.stereo-fallback
 
</syntaxhighlight>
 
==== View settings have taken effect ====
 
<syntaxhighlight lang="bash">
 
cat /var/lib/pulse/*-default-sink
 
</syntaxhighlight>
 
 
====Temporary switching during playback ====
 
This method is only valid for the current playback process: <br />
 
Open the menu "Sound & Video" -> "PulseAudio Volume Control", click the "Built-in Audio Stereo" button on the interface to switch between different output devices, such as switching between HDMI and headphone jack.
 
  
===Play RTSP video stream (or IP Camera) ===
+
===Soft Factory Reset===
Open a command line terminal and enter the following command:
+
Execute the following command in a terminal:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
gst-launch-1.0 rtspsrc location="rtsp://admin:12345@192.168.1.120:554/live/main" ! rtph264depay ! decodebin ! rkximagesink
+
sudo firstboot && sudo reboot
 
</syntaxhighlight>
 
</syntaxhighlight>
Change the address after rtsp:// to the real address.
 
  
===Chromium web browser ===
+
===Start the program automatically at startup(For example Kodi)===
Chromium web browser has enabled hardware acceleration by default, supports WebGL, and can view hardware acceleration details by entering the URL chrome://gpu, as shown below:<br />
+
Put the desktop file in the ~/.config/autostart/ directory, for example:
[[File:Chromium-gpu.png|frameless|400px]]
+
 
+
===Screen saver and auto sleep related settings ===
+
The screen saver configuration file is /etc/xdg/autostart/xset_command.desktop. The default factory settings are that the screen saver and DPMS are both closed. You can change the configuration by modifying this file.
+
 
+
===Install Scratch===
+
enter the following command:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo apt-get install scratch:arm64
+
mkdir ~/.config/autostart/
 +
cp /usr/share/applications/kodi.desktop ~/.config/autostart/
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===Install Arduino IDE===
+
===Disable auto-mounting===
enter the following command:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo apt-get install arduino:arm64
+
sudo systemctl mask udisks2
 +
sudo reboot
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===Start the program automatically at startup===
+
===Setup Chinese language and Input method===
Put the desktop file in the ~/.config/autostart/ directory, for example:
+
====Setup Chinese language====
 +
Enter the following command and select 'zh_CN.UTF-8':
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
cp /usr/share/applications/org.qt-project.qtcreator.desktop ~/.config/autostart/
+
sudo dpkg-reconfigure locales
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
Add environment variables to .bashrc:
===Login to the desktop as the root user===
+
Edit the /root/.profile file:
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo vim /root/.profile
+
echo "export LC_ALL=zh_CN.UTF-8" >> ~/.bashrc
 +
echo "export LANG=zh_CN.UTF-8" >> ~/.bashrc
 +
echo "export LANGUAGE=zh_CN.UTF-8" >> ~/.bashrc
 
</syntaxhighlight>
 
</syntaxhighlight>
Replace with the following:
+
Reboot device:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
if [ -n "$BASH_VERSION" ]; then
+
sudo reboot
    if [ -f "$HOME/.bashrc" ]; then
+
. "$HOME/.bashrc"
+
    fi
+
fi
+
if [ -d "$HOME/bin" ] ; then
+
    PATH="$HOME/bin:$PATH"
+
fi
+
</syntaxhighlight>
+
Run the following command to modify the lightdm configuration file and change the automatically logged-in user name to root:
+
<syntaxhighlight lang="bash">
+
sudo sed -i 's/autologin-user=pi/autologin-user=root/g' /usr/share/lightdm/lightdm.conf.d/20-defaultsession.conf
+
 
</syntaxhighlight>
 
</syntaxhighlight>
Run the reboot command to restart:
+
====Installing Chinese input method====
 +
Enter the following command to install fcitx and Pinyin input method:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 +
sudo apt update
 +
sudo apt-get install fcitx fcitx-pinyin
 +
sudo apt-get install im-config
 +
sudo apt-get install fcitx-table*
 +
sudo apt-get install fcitx-ui-classic fcitx-ui-light
 +
sudo apt-get install fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4
 +
sudo apt-get remove --purge scim* ibus*
 
sudo reboot
 
sudo reboot
 
</syntaxhighlight>
 
</syntaxhighlight>
If you want to log in, the desktop icons and configuration are the same as the pi user, you can copy the relevant directory from the /home/pi directory:
+
After reboot, press Ctrl+Space to switch between Chinese and English input methods, and the input method icon will appear in the upper right corner, right-click the input method icon in the upper right corner to switch input methods in the pop-up menu, as shown below:<br />
 +
[[File:Debian10-chinese-im.png|frameless|480px]]<br />
 +
===Installing Plex Multimedia Server===
 +
Visit the Plex website: https://www.plex.tv/media-server-downloads/<br />
 +
On the download page, select the category "Plex Media Server", choose "Linux" for the platform and "Ubuntu(16.04+)/Debian(8+) - ARMv8" for the version, <br />
 +
After downloading the deb package, use the dpkg command to install the package: <br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo rm -rf /root/Desktop /root/Pictures /root/.config
+
sudo dpkg -i plexmediaserver_1.31.0.6654-02189b09f_arm64.deb
sudo cp -af /home/pi/Desktop /home/pi/Pictures /home/pi/.config /root/
+
sudo chown root:root /root/Desktop /root/Pictures /root/.config
+
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
After installation, login to the Plex server by typing the following URL into your computer browser: http://IP地址:32400/web/ <br/>
 +
===Install Docker on Debian===
 +
Please refer to: [[How to Install Docker on Debian]]

Latest revision as of 10:53, 4 December 2023

1 Account & Password

Regular Account:
    User Name: pi
    Password: pi

Root:
    the root user account is disabled by default, you may configure the root password through the 'sudo passwd root' command.

2 View IP address

Since the Debian Buster hostname is the hardware model by default, you can use the ping command to get the IP address:ping {{{1}}}

3 Connect to Debian via SSH

Run the following commandssh pi@{{{1}}}
The default password is: pi

4 Update Software Packages

$ sudo apt-get update

5 Install x11vnc Server on Debian for Remote Access

5.1 Install x11vnc server

The following command to install x11vnc server:

sudo apt-get install x11vnc

5.2 Set your password

sudo x11vnc -storepasswd /etc/x11vnc.pwd

5.3 Setup x11vnc server with systemd auto start up

Create service configuration file:

sudo vi /lib/systemd/system/x11vnc.service

Let’s copy and paste the following configuration into our newly create service file:

[Unit]
Description=Start x11vnc at startup.
Requires=display-manager.service
After=syslog.target network-online.target
Wants=syslog.target network-online.target
 
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -display :0 -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pwd -rfbport 5900 -shared -capslock -nomodtweak
ExecStop=/usr/bin/x11vnc -R stop
Restart=on-failure
 
[Install]
WantedBy=multi-user.target

The following commands to reload the systmd system and to enable and start the x11vnc service:

sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc

5.4 Testing remote access

Start the VNC client software, input IP:5900 to connect:
Debian10-x11vnc.png

6 Install the kernel-header package

sudo dpkg -i /opt/linux-headers-*.deb

try to compile a kernel module:

sudo apt update
sudo apt install git gcc make bc
git clone https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
cd RTL88x2BU-Linux-Driver
make -j$(nproc)
sudo make install
sudo modprobe 88x2bu

7 Change time zone

7.1 Check the current time zone

timedatectl

7.2 List all available time zones

timedatectl list-timezones

7.3 Set the time zone (e.g. Shanghai)

sudo timedatectl set-timezone Asia/Shanghai

8 Change startup LOGO and Wallpaper

Replace the following two files in the kernel source code directory and recompile the kernel:
kernel/logo.bmp
kernel/logo_kernel.bmp
Or use the script to operate, as shown below:

  • Download scripts:
git clone https://github.com/friendlyarm/sd-fuse_rk3399.git -b kernel-4.19 --single-branch
cd sd-fuse_rk3399
  • Compile kernel and repackage firmware
convert files/logo.jpg -type truecolor /tmp/logo.bmp
convert files/logo.jpg -type truecolor /tmp/logo_kernel.bmp
LOGO=/tmp/logo.bmp KERNEL_LOGO=/tmp/logo_kernel.bmp ./build-kernel.sh debian-buster-desktop-arm64
sudo ./mk-sd-image.sh debian-buster-desktop-arm64
./mk-emmc-image.sh debian-buster-desktop-arm64

Note: If your system is not debian-buster-desktop-arm64, please specify according to the actual situation

8.2 Change Wallpaper

Modify the following configuration file:

/home/pi/.config/pcmanfm/LXDE/desktop-items-0.conf

9 Soft Factory Reset

Execute the following command in a terminal:

sudo firstboot && sudo reboot

10 Start the program automatically at startup(For example Kodi)

Put the desktop file in the ~/.config/autostart/ directory, for example:

mkdir ~/.config/autostart/
cp /usr/share/applications/kodi.desktop ~/.config/autostart/

11 Disable auto-mounting

sudo systemctl mask udisks2
sudo reboot

12 Setup Chinese language and Input method

12.1 Setup Chinese language

Enter the following command and select 'zh_CN.UTF-8':

sudo dpkg-reconfigure locales

Add environment variables to .bashrc:

echo "export LC_ALL=zh_CN.UTF-8" >> ~/.bashrc
echo "export LANG=zh_CN.UTF-8" >> ~/.bashrc
echo "export LANGUAGE=zh_CN.UTF-8" >> ~/.bashrc

Reboot device:

sudo reboot

12.2 Installing Chinese input method

Enter the following command to install fcitx and Pinyin input method:

sudo apt update
sudo apt-get install fcitx fcitx-pinyin
sudo apt-get install im-config
sudo apt-get install fcitx-table*
sudo apt-get install fcitx-ui-classic fcitx-ui-light
sudo apt-get install fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4
sudo apt-get remove --purge scim* ibus*
sudo reboot

After reboot, press Ctrl+Space to switch between Chinese and English input methods, and the input method icon will appear in the upper right corner, right-click the input method icon in the upper right corner to switch input methods in the pop-up menu, as shown below:
Debian10-chinese-im.png

13 Installing Plex Multimedia Server

Visit the Plex website: https://www.plex.tv/media-server-downloads/
On the download page, select the category "Plex Media Server", choose "Linux" for the platform and "Ubuntu(16.04+)/Debian(8+) - ARMv8" for the version,
After downloading the deb package, use the dpkg command to install the package:

sudo dpkg -i plexmediaserver_1.31.0.6654-02189b09f_arm64.deb

After installation, login to the Plex server by typing the following URL into your computer browser: http://IP地址:32400/web/

14 Install Docker on Debian

Please refer to: How to Install Docker on Debian