]> git.zerfleddert.de Git - m1-debian/blame - files/quickstart.txt
more tips
[m1-debian] / files / quickstart.txt
CommitLineData
7c94d3fa
TG
1# grow root filesystem
2lsblk
3resize2fs /dev/nvme0n1pX
4
cd51dc6c
TG
5# Ethernet
6ip l s
7dhclient <device>
8
708a0d2b
TG
9# Wifi
10rmmod brcmfmac
11rmmod brcmutil
12mount /dev/sda1 /mnt
13tar -C /lib/firmware/ -xf /mnt/linux-firmware.tar
14umount /mnt
15modprobe brcmfmac
19fe2e56 16vim /etc/wpa_supplicant/wpa_supplicant.conf
da7dd4b8 17wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
708a0d2b
TG
18dhclient wlan0
19
708a0d2b
TG
20# Time
21ntpdate pool.ntp.org
22date --set 2022-01-25
23date --set 14:21
7a54df2e 24
5e01b9d1
TG
25# Configure timezone
26dpkg-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.
31apt-get install grub-efi grub-efi-arm64-signed-
32grub-install --target=arm64-efi --efi-directory=/boot/efi --removable
7a54df2e 33update-grub
60b74f9d
TG
34# Set removable media to yes and nvram to no to make later grub updates work
35dpkg-reconfigure grub-efi-arm64
36
7a54df2e
TG
37See also: https://github.com/AsahiLinux/docs/wiki/U-Boot
38
7a54df2e 39# xorg
1c4cc0fc 40cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF'
7a54df2e
TG
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
1c4cc0fc
TG
49EOF
50
51cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF'
7a54df2e
TG
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
1c4cc0fc 70EOF
cd51dc6c
TG
71
72# Create a user
7c94d3fa
TG
73useradd -m -c 'firstname lastname' -s /bin/bash username
74passwd username
75
76# Lightweight desktop
77apt-get install lightdm blackbox xterm firefox-esr
cd51dc6c
TG
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
7c94d3fa
TG
96 - Install the kernel
97
cd51dc6c
TG
98 - Install grub
99
100 - reboot
Impressum, Datenschutz