]> git.zerfleddert.de Git - m1-debian/blame - files/quickstart.txt
incorporate rc.local
[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
c45f72fa
TG
40
41# Keyboard use capslock as additional ctrl
1c4cc0fc 42cat > /etc/X11/xorg.conf.d/00-keyboard.conf <<'EOF'
7a54df2e
TG
43Section "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"
50EndSection
1c4cc0fc
TG
51EOF
52
c45f72fa 53# Swap command and option (windows and alt like on a pc keyboard)
34ce98d9 54echo 1 > /sys/module/hid_apple/parameters/swap_opt_cmd
c45f72fa
TG
55
56# Configure the touchpad
1c4cc0fc 57cat > /etc/X11/xorg.conf.d/30-input.conf <<'EOF'
7a54df2e
TG
58Section "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"
75EndSection
1c4cc0fc 76EOF
cd51dc6c
TG
77
78# Create a user
7c94d3fa
TG
79useradd -m -c 'firstname lastname' -s /bin/bash username
80passwd username
81
82# Lightweight desktop
83apt-get install lightdm blackbox xterm firefox-esr
cd51dc6c
TG
84
85# Install gnome
86apt-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
90wget https://tg.st/u/k.deb
91dpkg -i k.deb
92
5fe4d912
TG
93# asahi does not handle sleep well at the moment
94sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
95
cd51dc6c
TG
96- You can also use the live system to install Debian on the m1, the rough outline is:
97
98 - Create two paritions:
99
100 - One 1 GB vfat
101 - Rest with ext4
102
103 - Use debootstrap to bootstrap debian
104
7c94d3fa
TG
105 - Install the kernel
106
cd51dc6c
TG
107 - Install grub
108
109 - reboot
Impressum, Datenschutz