]>
Commit | Line | Data |
---|---|---|
cd51dc6c TG |
1 | # Ethernet |
2 | ip l s | |
3 | dhclient <device> | |
4 | ||
708a0d2b TG |
5 | # Wifi |
6 | rmmod brcmfmac | |
7 | rmmod brcmutil | |
8 | mount /dev/sda1 /mnt | |
9 | tar -C /lib/firmware/ -xf /mnt/linux-firmware.tar | |
10 | umount /mnt | |
11 | modprobe brcmfmac | |
19fe2e56 | 12 | vim /etc/wpa_supplicant/wpa_supplicant.conf |
da7dd4b8 | 13 | wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf |
708a0d2b TG |
14 | dhclient wlan0 |
15 | ||
708a0d2b TG |
16 | # Time |
17 | ntpdate pool.ntp.org | |
18 | date --set 2022-01-25 | |
19 | date --set 14:21 | |
7a54df2e | 20 | |
5e01b9d1 TG |
21 | # Configure timezone |
22 | dpkg-reconfigure tzdata | |
23 | ||
7a54df2e | 24 | # Fix grub |
a340a66a TG |
25 | # We deinstall grub-efi-arm64-signed- because it creates a file fbaa64.efi |
26 | # which makes u-boot hang. | |
27 | apt-get install grub-efi grub-efi-arm64-signed- | |
28 | grub-install --target=arm64-efi --efi-directory=/boot/efi --removable | |
7a54df2e | 29 | update-grub |
60b74f9d TG |
30 | # Set removable media to yes and nvram to no to make later grub updates work |
31 | dpkg-reconfigure grub-efi-arm64 | |
32 | ||
7a54df2e TG |
33 | See also: https://github.com/AsahiLinux/docs/wiki/U-Boot |
34 | ||
7a54df2e | 35 | # xorg |
1c4cc0fc | 36 | cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF' |
7a54df2e TG |
37 | Section "InputClass" |
38 | Identifier "system-keyboard" | |
39 | MatchIsKeyboard "on" | |
40 | Option "XkbLayout" "us" | |
41 | Option "XkbModel" "pc105" | |
42 | Option "XkbVariant" "de_se_fi" | |
43 | Option "XkbOptions" "ctrl:nocaps" | |
44 | EndSection | |
1c4cc0fc TG |
45 | EOF |
46 | ||
47 | cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF' | |
7a54df2e TG |
48 | Section "InputClass" |
49 | Identifier "libinput touchpad catchall" | |
50 | MatchIsTouchpad "on" | |
51 | MatchDevicePath "/dev/input/event*" | |
52 | Option "Tapping" "False" | |
53 | Option "TappingDrag" "False" | |
54 | Option "DisableWhileTyping" "True" | |
55 | Option "AccelProfile" "adaptive" | |
56 | Option "AccelSpeed" "0.3" | |
57 | Option "AccelerationNumerator" "2" | |
58 | Option "AccelerationDenominator" "1" | |
59 | Option "AccelerationThreshold" "4" | |
60 | Option "AdaptiveDeceleration" "2" | |
61 | Option "NaturalScrolling" "0" | |
62 | Option "TappingButtonMap" "lmr" | |
63 | Option "ClickMethod" "clickfinger" | |
64 | Driver "libinput" | |
65 | EndSection | |
1c4cc0fc | 66 | EOF |
cd51dc6c TG |
67 | |
68 | # Create a user | |
69 | useradd -m -c 'user' user | |
70 | passwd user | |
71 | ||
72 | # Install gnome | |
73 | apt-get install gnome | |
74 | /etc/init.d/gdm3 start | |
75 | ||
76 | # If you need to install the kernel on a bootstrapped system or one that needs recovery | |
77 | wget https://tg.st/u/k.deb | |
78 | dpkg -i k.deb | |
79 | ||
80 | - You can also use the live system to install Debian on the m1, the rough outline is: | |
81 | ||
82 | - Create two paritions: | |
83 | ||
84 | - One 1 GB vfat | |
85 | - Rest with ext4 | |
86 | ||
87 | - Use debootstrap to bootstrap debian | |
88 | ||
89 | - Install grub | |
90 | ||
91 | - reboot |