3 resize2fs /dev/nvme0n1pX
13 tar -C /lib/firmware/ -xf /mnt/linux-firmware.tar
16 vim /etc/wpa_supplicant/wpa_supplicant.conf
17 wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
26 dpkg-reconfigure tzdata
29 # We deinstall grub-efi-arm64-signed- because it creates a file fbaa64.efi
30 # which makes u-boot hang.
31 apt-get install grub-efi grub-efi-arm64-signed-
32 grub-install --target=arm64-efi --efi-directory=/boot/efi --removable
34 # Set removable media to yes and nvram to no to make later grub updates work
35 dpkg-reconfigure grub-efi-arm64
37 See also: https://github.com/AsahiLinux/docs/wiki/U-Boot
41 # Keyboard use capslock as additional ctrl
42 cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF'
44 Identifier "system-keyboard"
46 Option "XkbLayout" "us"
47 Option "XkbModel" "pc105"
48 Option "XkbVariant" "de_se_fi"
49 Option "XkbOptions" "ctrl:nocaps"
53 # Swap command and option (windows and alt like on a pc keyboard)
54 echo 1 > /sys/module/hid_apple/parameters/swap_opt_cmd
56 # Configure the touchpad
57 cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF'
59 Identifier "libinput touchpad catchall"
61 MatchDevicePath "/dev/input/event*"
62 Option "Tapping" "False"
63 Option "TappingDrag" "False"
64 Option "DisableWhileTyping" "True"
65 Option "AccelProfile" "adaptive"
66 Option "AccelSpeed" "0.3"
67 Option "AccelerationNumerator" "2"
68 Option "AccelerationDenominator" "1"
69 Option "AccelerationThreshold" "4"
70 Option "AdaptiveDeceleration" "2"
71 Option "NaturalScrolling" "0"
72 Option "TappingButtonMap" "lmr"
73 Option "ClickMethod" "clickfinger"
79 useradd -m -c 'firstname lastname' -s /bin/bash username
83 apt-get install lightdm blackbox xterm firefox-esr
87 /etc/init.d/gdm3 start
89 # If you need to install the kernel on a bootstrapped system or one that needs recovery
90 wget https://tg.st/u/k.deb
93 # asahi does not handle sleep well at the moment
94 sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
96 - You can also use the live system to install Debian on the m1, the rough outline is:
98 - Create two paritions:
103 - Use debootstrap to bootstrap debian
113 You might want to save the state of your live system to the usb stick. In order
114 to do so, run the following commands:
117 apt-get install -y cpio pigz
119 # remove '#' before allow-hotplug
120 vi /etc/network/interfaces
122 mv /mnt/initrd.gz /mnt/initrd.old
124 find . -xdev | cpio --quiet -H newc -o | pigz -9 > /mnt/initrd.gz