Inhaltsverzeichnis

Installation

Allgemein

Normales Ubuntu von Odroid

dd if=ubuntu-XXX.img of=/dev/sdX bs=4M status=progress oflag=sync

ArchLinuxARM

dd if=ubuntu-XXX.img of=/dev/sdX bs=512 count=264192 status=progress oflag=sync
mkfs.ext4 -m0 /dev/sdX2
mount /dev/sdX2 /mnt
losetup --show -f ubuntu-XXX.img
kpartx -a /dev/loopX
mkdir /mnt2
mount -o ro /dev/mapper/loopXp2 /mnt2
bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C /mnt
cp -a /mnt2/lib/modules/4.9.277-75 /mnt/lib/modules
sync
umount /mnt
umount /mnt2
kpartx -d /dev/loopX
losetup -d /dev/loopX
rmdir /mnt2
mount /dev/sdX1 /mnt
blkid /dev/sdX2
vi /mnt/boot.ini
setenv bootargs "root=UUID=XXX ..."
umount /mnt

First Boot:

pacman-key --init
pacman-key --populate archlinuxarm
pacman -Sy
pacman -S wget
wget https://github.com/archdroid-org/repo/releases/download/aarch64/archlinuxdroid-repo-1.1-1-aarch64.pkg.tar.zst
pacman -U archlinuxdroid-repo-1.1-1-aarch64.pkg.tar.zst
rm archlinuxdroid-repo-1.1-1-aarch64.pkg.tar.zst
pacman -Sy
passwd alarm
passwd
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
systemctl restart sshd
systemctl mask systemd-journald-audit.socket
pacman -S chrony
systemctl enable chronyd --now
systemctl mask systemd-timesyncd
timedatectl set-timezone XXX
mkdir ~/boot.old
mv /boot/* ~/boot.old
echo 'LABEL="BOOT" /boot vfat defaults 0 0' >> /etc/fstab
mount /boot
fdisk /dev/mmcblk1 # d 2 n p 2 enter enter n w
systemctl reboot
resize2fs /dev/mmcblk1p2
pacman -S bash-completion man-db uboot-tools
mv /boot/Image.gz /boot/img.bak
pacman -Rn linux-aarch64
mv /boot/img.bak /boot/Image.gz
pacman -Su
rm /var/cache/pacman/pkg/*
systemctl reboot

Armbian (Ubuntu)

dd if=Armbian_XXX.img of=/dev/sdX bs=4M status=progress oflag=sync
apt remove unattended-upgrades networkd-dispatcher --purge
systemctl disable smartd
systemctl disable vnstat
rm /var/log/unattended-upgrades -rf
sed -i 's/verbosity=.*/verbosity=7/g' /boot/armbianEnv.txt
armbian-config #Kernel update
echo "export PS1='\[\033]0;\u@\h:\w\007\]\[\033[01;31m\]\h\[\033[01;34m\] \w \$\[\033[00m\] '" >> .bashrc
timedatectl set-timezone XXX
apt update
apt dist-upgrade -V
apt autoremove --purge
apt clean
systemctl reboot