]>
Commit | Line | Data |
---|---|---|
7c94d3fa TG |
1 | # grow root filesystem |
2 | lsblk | |
3 | resize2fs /dev/nvme0n1pX | |
4 | ||
cd51dc6c TG |
5 | # Ethernet |
6 | ip l s | |
7 | dhclient <device> | |
8 | ||
708a0d2b TG |
9 | # Wifi |
10 | rmmod brcmfmac | |
11 | rmmod brcmutil | |
12 | mount /dev/sda1 /mnt | |
13 | tar -C /lib/firmware/ -xf /mnt/linux-firmware.tar | |
14 | umount /mnt | |
15 | modprobe brcmfmac | |
19fe2e56 | 16 | vim /etc/wpa_supplicant/wpa_supplicant.conf |
da7dd4b8 | 17 | wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf |
708a0d2b TG |
18 | dhclient wlan0 |
19 | ||
708a0d2b TG |
20 | # Time |
21 | ntpdate pool.ntp.org | |
22 | date --set 2022-01-25 | |
23 | date --set 14:21 | |
7a54df2e | 24 | |
5e01b9d1 TG |
25 | # Configure timezone |
26 | dpkg-reconfigure tzdata | |
27 | ||
7a54df2e | 28 | # Fix grub |
a340a66a TG |
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 | |
7a54df2e | 33 | update-grub |
60b74f9d TG |
34 | # Set removable media to yes and nvram to no to make later grub updates work |
35 | dpkg-reconfigure grub-efi-arm64 | |
36 | ||
7a54df2e TG |
37 | See also: https://github.com/AsahiLinux/docs/wiki/U-Boot |
38 | ||
7a54df2e | 39 | # xorg |
c45f72fa TG |
40 | |
41 | # Keyboard use capslock as additional ctrl | |
1c4cc0fc | 42 | cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF' |
7a54df2e TG |
43 | Section "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" | |
50 | EndSection | |
1c4cc0fc TG |
51 | EOF |
52 | ||
c45f72fa | 53 | # Swap command and option (windows and alt like on a pc keyboard) |
34ce98d9 | 54 | echo 1 > /sys/module/hid_apple/parameters/swap_opt_cmd |
c45f72fa TG |
55 | |
56 | # Configure the touchpad | |
1c4cc0fc | 57 | cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF' |
7a54df2e TG |
58 | Section "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" | |
75 | EndSection | |
1c4cc0fc | 76 | EOF |
cd51dc6c TG |
77 | |
78 | # Create a user | |
7c94d3fa TG |
79 | useradd -m -c 'firstname lastname' -s /bin/bash username |
80 | passwd username | |
81 | ||
82 | # Lightweight desktop | |
83 | apt-get install lightdm blackbox xterm firefox-esr | |
cd51dc6c TG |
84 | |
85 | # Install gnome | |
86 | apt-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 | |
90 | wget https://tg.st/u/k.deb | |
91 | dpkg -i k.deb | |
92 | ||
93 | - You can also use the live system to install Debian on the m1, the rough outline is: | |
94 | ||
95 | - Create two paritions: | |
96 | ||
97 | - One 1 GB vfat | |
98 | - Rest with ext4 | |
99 | ||
100 | - Use debootstrap to bootstrap debian | |
101 | ||
7c94d3fa TG |
102 | - Install the kernel |
103 | ||
cd51dc6c TG |
104 | - Install grub |
105 | ||
106 | - reboot |