]> git.zerfleddert.de Git - m1-debian/blob - files/quickstart.txt
46ed2078bec7e9763e23c686bcca4109f4679045
[m1-debian] / files / quickstart.txt
1 # Ethernet
2 ip l s
3 dhclient <device>
4
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
12 vim /etc/wpa_supplicant/wpa_supplicant.conf
13 wpa_supplicant -i <interface> -c /etc/wpa_supplicant/wpa_supplicant.conf
14 dhclient wlan0
15
16 # Time
17 ntpdate pool.ntp.org
18 date --set 2022-01-25
19 date --set 14:21
20
21 # Fix grub
22 apt-get purge grub-efi grub-efi-arm64 grub-efi-arm64-bin grub-efi-arm64-signed
23 apt-get install grub-efi-arm64
24 grub-install --removable /dev/nvme0n1p4
25 # Set removable media to yes and nvram to no
26 dpkg-reconfigure dpkg-reconfigure grub-efi-arm64
27 update-grub
28 find /boot/efi -name fbaa64.efi | xargs rm
29
30 See also: https://github.com/AsahiLinux/docs/wiki/U-Boot
31
32 # xorg
33 (air) [~] cat /etc/X11/xorg.conf.d/00-keyboard.conf
34 Section "InputClass"
35 Identifier "system-keyboard"
36 MatchIsKeyboard "on"
37 Option "XkbLayout" "us"
38 Option "XkbModel" "pc105"
39 Option "XkbVariant" "de_se_fi"
40 Option "XkbOptions" "ctrl:nocaps"
41 EndSection
42 (air) [~] cat /etc/X11/xorg.conf.d/30-input.conf
43 Section "InputClass"
44 Identifier "libinput touchpad catchall"
45 MatchIsTouchpad "on"
46 MatchDevicePath "/dev/input/event*"
47 Option "Tapping" "False"
48 Option "TappingDrag" "False"
49 Option "DisableWhileTyping" "True"
50 Option "AccelProfile" "adaptive"
51 Option "AccelSpeed" "0.3"
52 Option "AccelerationNumerator" "2"
53 Option "AccelerationDenominator" "1"
54 Option "AccelerationThreshold" "4"
55 Option "AdaptiveDeceleration" "2"
56 Option "NaturalScrolling" "0"
57 Option "TappingButtonMap" "lmr"
58 Option "ClickMethod" "clickfinger"
59 Driver "libinput"
60 EndSection
61
62 # Create a user
63 useradd -m -c 'user' user
64 passwd user
65
66 # Install gnome
67 apt-get install gnome
68 /etc/init.d/gdm3 start
69
70 # If you need to install the kernel on a bootstrapped system or one that needs recovery
71 wget https://tg.st/u/k.deb
72 dpkg -i k.deb
73
74 - You can also use the live system to install Debian on the m1, the rough outline is:
75
76 - Create two paritions:
77
78 - One 1 GB vfat
79 - Rest with ext4
80
81 - Use debootstrap to bootstrap debian
82
83 - Install grub
84
85 - reboot
Impressum, Datenschutz