./root/install-aml.sh |
armbian-config |
sudo apt update && sudo apt upgrade -y && sudo apt install --fix-broken -y |
sudo apt autoremove -y && sudo apt autoclean -y |
cd /lib/firmware/brcm |
sudo wget https://github.com/RPi-Distro/bluez-firmware/raw/master/broadcom/BCM4345C0.hcd |
sudo armbian-config |
sudo reboot |
sudo hciconfig |
swapon -s |
swapoff /dev/zram1 |
nano /etc/default/armbian-zram-config |
nano /etc/default/armbian-ramlog |
nano /etc/cron.d/armbian-truncate-logs |
nano /etc/cron.daily/armbian-ram-logging |
nano /etc/fstab |
tmpfs /var/tmp tmpfs defaults,nosuid 0 0 tmpfs /var/log tmpfs defaults,nosuid,mode=0755,size=256m 0 0 |
sudo crontab -e |
#Reboot system 每週日 04:55. (04:50 + 5 分鐘) 50 4 * * 0 /sbin/shutdown -r +5 |
apt-get install apparmor jq wget curl udisks2 libglib2.0-bin network-manager dbus systemd-journal-remote rauc-service -y |
sudo apt update && sudo apt upgrade -y && sudo apt install --fix-broken -y |
sudo apt autoremove -y && sudo apt autoclean -y |
cd /dev/shm |
curl -fsSL get.docker.com | sh |
sudo systemctl enable systemd-resolved.service |
sudo systemctl start systemd-resolved.service |
wget https://github.com/home-assistant/os-agent/releases/download/1.4.1/os-agent_1.4.1_linux_aarch64.deb |
dpkg -i os-agent_1.4.1_linux_aarch64.deb | 或 輸入 dpkg -i [Tab鍵]即可 |
gdbus introspect --system --dest io.hass.os --object-path /io/hass/os |
sudo echo "GRUB_CMDLINE_LINUX_DEFAULT=\"systemd.unified_cgroup_hierarchy=false\"" > /etc/default/grub |
wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb |
dpkg -i homeassistant-supervised.deb |
sudo systemctl enable systemd-journal-gatewayd |
sudo systemctl start systemd-journal-gatewayd |