]> git.zerfleddert.de Git - m1-debian/blob - files/quickstart.txt
more tips
[m1-debian] / files / quickstart.txt
1 # grow root filesystem
2 lsblk
3 resize2fs /dev/nvme0n1pX
4
5 # Ethernet
6 ip l s
7 dhclient <device>
8
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
16 vim /etc/wpa_supplicant/wpa_supplicant.conf
17 wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
18 dhclient wlan0
19
20 # Time
21 ntpdate pool.ntp.org
22 date --set 2022-01-25
23 date --set 14:21
24
25 # Configure timezone
26 dpkg-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.
31 apt-get install grub-efi grub-efi-arm64-signed-
32 grub-install --target=arm64-efi --efi-directory=/boot/efi --removable
33 update-grub
34 # Set removable media to yes and nvram to no to make later grub updates work
35 dpkg-reconfigure grub-efi-arm64
36
37 See also: https://github.com/AsahiLinux/docs/wiki/U-Boot
38
39 # xorg
40 cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF'
41 Section "InputClass"
42 Identifier "system-keyboard"
43 MatchIsKeyboard "on"
44 Option "XkbLayout" "us"
45 Option "XkbModel" "pc105"
46 Option "XkbVariant" "de_se_fi"
47 Option "XkbOptions" "ctrl:nocaps"
48 EndSection
49 EOF
50
51 cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF'
52 Section "InputClass"
53 Identifier "libinput touchpad catchall"
54 MatchIsTouchpad "on"
55 MatchDevicePath "/dev/input/event*"
56 Option "Tapping" "False"
57 Option "TappingDrag" "False"
58 Option "DisableWhileTyping" "True"
59 Option "AccelProfile" "adaptive"
60 Option "AccelSpeed" "0.3"
61 Option "AccelerationNumerator" "2"
62 Option "AccelerationDenominator" "1"
63 Option "AccelerationThreshold" "4"
64 Option "AdaptiveDeceleration" "2"
65 Option "NaturalScrolling" "0"
66 Option "TappingButtonMap" "lmr"
67 Option "ClickMethod" "clickfinger"
68 Driver "libinput"
69 EndSection
70 EOF
71
72 # Create a user
73 useradd -m -c 'firstname lastname' -s /bin/bash username
74 passwd username
75
76 # Lightweight desktop
77 apt-get install lightdm blackbox xterm firefox-esr
78
79 # Install gnome
80 apt-get install gnome
81 /etc/init.d/gdm3 start
82
83 # If you need to install the kernel on a bootstrapped system or one that needs recovery
84 wget https://tg.st/u/k.deb
85 dpkg -i k.deb
86
87 - You can also use the live system to install Debian on the m1, the rough outline is:
88
89 - Create two paritions:
90
91 - One 1 GB vfat
92 - Rest with ext4
93
94 - Use debootstrap to bootstrap debian
95
96 - Install the kernel
97
98 - Install grub
99
100 - reboot
Impressum, Datenschutz