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