X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/49e0d4d9b9c2e03b06a570fc0b5c380e4ccf0ca1..420e5bd738fb3f9a5128863d9f4d9d38a2d928c8:/files/quickstart.txt diff --git a/files/quickstart.txt b/files/quickstart.txt index 0e701a6..6d94093 100644 --- a/files/quickstart.txt +++ b/files/quickstart.txt @@ -27,7 +27,7 @@ passwd username Lightweight desktop =================== -apt-get install lightdm blackbox xterm firefox-esr +apt-get install lightdm blackbox xterm firefox-esr big-cursor /etc/init.d/lightdm start Install gnome @@ -80,7 +80,6 @@ Section "InputClass" EndSection EOF - Install latest kernel and m1n1 stage 2 (m1n1, dtbs, u-boot) =========================================================== curl -sL tg.st/u/ksh | sudo bash @@ -94,7 +93,7 @@ tune2fs -O extents,uninit_bg,dir_index -m 0 -c 0 -i 0 /dev/nvme0n1p5 mount /dev/nvme0n1p5 /mnt -debootstrap --arch=arch64 testing /mnt http://deb.debian.org/debian +debootstrap --arch=arm64 testing /mnt http://deb.debian.org/debian mount -t sysfs none /mnt/sys mount -t efivarfs none /mnt/sys/firmware/efi/efivars @@ -114,12 +113,12 @@ cat < /etc/fstab EOF cat < /etc/apt/sources.list -deb http://ftp.debian.org/debian testing main contrib non-free -deb-src http://ftp.debian.org/debian testing main contrib non-free +deb http://deb.debian.org/debian testing main contrib non-free +deb-src http://deb.debian.org/debian testing main contrib non-free EOF apt update -apt-get -y install initramfs-tools pciutils wpasupplicant tcpdump vim tmux vlan ntpdate parted curl wget grub-efi-arm64 mtr-tiny dbus ca-certificates sudo openssh-client mtools gdisk +apt-get -y install initramfs-tools pciutils wpasupplicant tcpdump vim tmux vlan ntpdate parted curl wget grub-efi-arm64 mtr-tiny dbus ca-certificates sudo openssh-client mtools gdisk firmware-linux cryptsetup apt-get install -y grub-efi-arm64-signed- echo 'grub-efi-arm64 grub2/update_nvram boolean false' | debconf-set-selections @@ -145,6 +144,8 @@ network={ } EOF +passwd + tar -C /lib/firmware/ -xf /boot/efi/vendorfw/firmware.tar cat < /etc/network/interfaces @@ -168,6 +169,7 @@ exit cd / umount /mnt/boot/efi +umount /mnt/sys/firmware/efi/efivars umount /mnt/sys umount /mnt/proc umount /mnt/dev/pts @@ -221,3 +223,63 @@ device list station wlan0 scan station wlan0 get-networks station wlan0 connect SSID + +Deinstall Linux +=============== +# Lets assume you have the following partioning + +(mini) [~] sudo parted /dev/nvme0n1 print +Model: APPLE SSD AP0256Q (nvme) +Disk /dev/nvme0n1: 251GB +Sector size (logical/physical): 4096B/4096B +Partition Table: gpt +Disk Flags: + +Number Start End Size File system Name Flags + 1 24.6kB 524MB 524MB iBootSystemContainer + 2 524MB 101GB 100GB + 3 101GB 103GB 2500MB + 4 103GB 104GB 513MB fat32 boot, esp + 5 104GB 246GB 142GB ext4 + 6 246GB 251GB 5369MB RecoveryOSContainer + +# Never delete the first, the second and the last partition because that either +# renders your mac unbootable (first two) or unupgradable (last one). However +# you can recover the system by using a second system if you screw up. + +# In the above example we need to delete the partition number 3 (stub partition +# you can identify it by the size 2500 MB). The partition 4 (you can identtify +# it by the fact that it is fat32 and the flags boot, esp). And the partition +# number 5 (you can identify it by the fact that it is ext4). + +You delete the partitions by doing: + +# n is the partition number +sudo parted /dev/nvme0n1 rm + +# If you're asked if you want to proceed, say 'y'. If your asked if you want to +# ignore, say, ignore. + +Control Charging +================ +# Do not charge +echo inhibit-charge > /sys/class/power_supply/macsmc-battery/charge_behaviour + +# Default +echo auto > /sys/class/power_supply/macsmc-battery/charge_behaviour + +# Force discharge +echo force-discharge > /sys/class/power_supply/macsmc-battery/charge_behaviour + +# Find out which device tree you're using +cat /proc/device-tree/compatible + +# Bluetooth +https://g3la.de/hedgedoc/s/MIaCyVv1A#Bluetooth + +# Set Firefox as default browser +xdg-mime default firefox-esr.desktop x-scheme-handler/https x-scheme-handler/http + +Get it running with debian and crypto file system +================================================= +https://g3la.de/hedgedoc/buDIXGBuRzKMwUnYOpStuw#