]> git.zerfleddert.de Git - m1-debian/blame_incremental - files/quickstart.txt
add instructions to repack live
[m1-debian] / files / quickstart.txt
... / ...
CommitLineData
1# grow root filesystem
2lsblk
3resize2fs /dev/nvme0n1pX
4
5# Ethernet
6ip l s
7dhclient <device>
8
9# Wifi
10rmmod brcmfmac
11rmmod brcmutil
12mount /dev/sda1 /mnt
13tar -C /lib/firmware/ -xf /mnt/linux-firmware.tar
14umount /mnt
15modprobe brcmfmac
16vim /etc/wpa_supplicant/wpa_supplicant.conf
17wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
18dhclient wlan0
19
20# Time
21ntpdate pool.ntp.org
22date --set 2022-01-25
23date --set 14:21
24
25# Configure timezone
26dpkg-reconfigure tzdata
27
28# Fix grub
29# We deinstall grub-efi-arm64-signed- because it creates a file fbaa64.efi
30# which makes u-boot hang.
31apt-get install grub-efi grub-efi-arm64-signed-
32grub-install --target=arm64-efi --efi-directory=/boot/efi --removable
33update-grub
34# Set removable media to yes and nvram to no to make later grub updates work
35dpkg-reconfigure grub-efi-arm64
36
37See also: https://github.com/AsahiLinux/docs/wiki/U-Boot
38
39# xorg
40
41# Keyboard use capslock as additional ctrl
42cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF'
43Section "InputClass"
44 Identifier "system-keyboard"
45 MatchIsKeyboard "on"
46 Option "XkbLayout" "us"
47 Option "XkbModel" "pc105"
48 Option "XkbVariant" "de_se_fi"
49 Option "XkbOptions" "ctrl:nocaps"
50EndSection
51EOF
52
53# Swap command and option (windows and alt like on a pc keyboard)
54echo 1 > /sys/module/hid_apple/parameters/swap_opt_cmd
55
56# Configure the touchpad
57cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF'
58Section "InputClass"
59 Identifier "libinput touchpad catchall"
60 MatchIsTouchpad "on"
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"
74 Driver "libinput"
75EndSection
76EOF
77
78# Create a user
79useradd -m -c 'firstname lastname' -s /bin/bash username
80passwd username
81
82# Lightweight desktop
83apt-get install lightdm blackbox xterm firefox-esr
84
85# Install gnome
86apt-get install gnome
87/etc/init.d/gdm3 start
88
89# If you need to install the kernel on a bootstrapped system or one that needs recovery
90wget https://tg.st/u/k.deb
91dpkg -i k.deb
92
93# asahi does not handle sleep well at the moment
94sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
95
96- You can also use the live system to install Debian on the m1, the rough outline is:
97
98 - Create two paritions:
99
100 - One 1 GB vfat
101 - Rest with ext4
102
103 - Use debootstrap to bootstrap debian
104
105 - Install the kernel
106
107 - Install grub
108
109 - reboot
110
111Repack live
112===========
113You might want to save the state of your live system to the usb stick. In order
114to do so, run the following commands:
115
116apt update
117apt-get install -y cpio pigz
118rm /etc/rc.local
119# remove '#' before allow-hotplug
120vi /etc/network/interfaces
121mount /dev/sda1 /mnt
122mv /mnt/initrd.gz /mnt/initrd.old
123cd /
124find . -xdev | cpio --quiet -H newc -o | pigz -9 > /mnt/initrd.gz
125umount /mnt
Impressum, Datenschutz