]> cvs.zerfleddert.de Git - m1-debian/blame_incremental - files/quickstart.txt
more tips
[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
40cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF'
41Section "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"
48EndSection
49EOF
50
51cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF'
52Section "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"
69EndSection
70EOF
71
72# Create a user
73useradd -m -c 'firstname lastname' -s /bin/bash username
74passwd username
75
76# Lightweight desktop
77apt-get install lightdm blackbox xterm firefox-esr
78
79# Install gnome
80apt-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
84wget https://tg.st/u/k.deb
85dpkg -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