How to Create Debian10 Rootfs 20200710_1246 Version
From ESS-WIKI
This version is base on debian 10 rootfs base. You can refer to the following link: How to Create Debian10 Rootfs Base
1. Basic installation and configuration
(1) install required packages
# apt install pciutils usbutils lshw net-tools ifupdown ethtool openssh-client
# apt install xterm
# apt install dialog apt-utils
# apt install bsdmainutils
# apt install mtd-utils
# apt install haveged
# sed -i 's/"$/ --data=16"/' /etc/default/haveged
# ./go arm64-rootfs-deb10
# cat << EOT > /etc/apt/sources.list
deb http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian buster-updates main
deb http://deb.debian.org/debian-security/ buster/updates main
EOT
# apt update
# apt upgrade
# mkdir -p /etc/systemd/system/systemd-udevd.service.d/
# cat << EOT > /etc/systemd/system/systemd-udevd.service.d/override.conf
[Service]
PrivateMounts=no
EOT
# sed -i '/ExecStart.*/i Environment="TERM=xterm-color"' \
/lib/systemd/system/serial-getty@.service
# cat > /etc/udev/rules.d/50-firmware.rules << EOT
SUBSYSTEM=="firmware", ACTION=="add", RUN{program}="firmware"
EOT
# cat > /lib/udev/firmware << 'EOT'
#!/bin/bash
echo 1 > /sys/$DEVPATH/loading
cat /lib/firmware/$FIRMWARE > /sys/$DEVPATH/data
if [ $? = 0 ]; then
echo 0 > /sys/$DEVPATH/loading
else
echo -1 > /sys/$DEVPATH/loading
fi
EOT
# chmod +x /lib/udev/firmware
# cat > /etc/udev/rules.d/70-netdev-name.rules << EOT
SUBSYSTEM=="net", ACTION=="add", KERNEL=="eth1", NAME="eth1"
EOT
/etc/profile
/etc/skel/.bashrc
/home/adv/.bashrc
2. xfce4 installation and settings
(1) install required packages
# apt install --download-only xfce4 xfce4-goodies
# apt install xfce4 xfce4-goodies
# apt clean
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""
BACKSPACE="guess"
# rm -rf /lib/modules/* /lib/firmware/*
# echo arm64 > /etc/hostname
# sed -i 's/\(127\.0\.1\.1 *\).*/\1arm64/' /etc/hosts
# sed -i "\
s/^#\(autologin-guest=.*\)/\1/; \
s/^#\(autologin-user\)=/\1=adv/; \
s/^#\(autologin-user-timeout=.*\)/\1/" \
/etc/lightdm/lightdm.conf
# sed -i 's/\(.*power-button-action.*type=\).*/\1"empty"\/>/; /power-button-action/ a \
<property name="brightness-switch-restore-on-exit" type="int" value="0"/>\
<property name="brightness-switch" type="int" value="0"/>\
<property name="blank-on-ac" type="int" value="0"/>\
<property name="dpms-on-ac-sleep" type="uint" value="0"/>\
<property name="dpms-on-ac-off" type="uint" value="0"/>\
<property name="dpms-enabled" type="bool" value="true"/>' \
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
# apt install chromium