]> git.zerfleddert.de Git - m1-debian/blobdiff - files/quickstart.txt
New command
[m1-debian] / files / quickstart.txt
index f6e2a02086adf18aab679ed62159e76dc40ac4c1..5c83c0ccb0ee62fc22a8c6df77c1c1f9110003e2 100644 (file)
@@ -6,7 +6,7 @@ pwconv
 Configure wifi
 ==============
 vi /etc/wpa/wpa_supplicant.conf
 Configure wifi
 ==============
 vi /etc/wpa/wpa_supplicant.conf
-ifup wlp1s0f0
+ifup wlan0
 # remove the '#' before allow-hotplug to let wifi come up after boot
 vi /etc/network/interfaces
 
 # remove the '#' before allow-hotplug to let wifi come up after boot
 vi /etc/network/interfaces
 
@@ -27,11 +27,13 @@ passwd username
 
 Lightweight desktop
 ===================
 
 Lightweight desktop
 ===================
-apt-get install lightdm blackbox xterm firefox-esr
+apt-get update
+apt-get install lightdm blackbox xterm firefox-esr big-cursor
 /etc/init.d/lightdm start
 
 Install gnome
 =============
 /etc/init.d/lightdm start
 
 Install gnome
 =============
+apt-get update
 apt-get install gnome
 /etc/init.d/gdm3 start
 
 apt-get install gnome
 /etc/init.d/gdm3 start
 
@@ -80,7 +82,6 @@ Section "InputClass"
 EndSection
 EOF
 
 EndSection
 EOF
 
-
 Install latest kernel and m1n1 stage 2 (m1n1, dtbs, u-boot)
 ===========================================================
 curl -sL tg.st/u/ksh | sudo bash
 Install latest kernel and m1n1 stage 2 (m1n1, dtbs, u-boot)
 ===========================================================
 curl -sL tg.st/u/ksh | sudo bash
@@ -94,7 +95,7 @@ tune2fs -O extents,uninit_bg,dir_index -m 0 -c 0 -i 0 /dev/nvme0n1p5
 
 mount /dev/nvme0n1p5 /mnt
 
 
 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
 
 mount -t sysfs none /mnt/sys
 mount -t efivarfs none /mnt/sys/firmware/efi/efivars
@@ -114,12 +115,12 @@ cat <<EOF > /etc/fstab
 EOF
 
 cat <<EOF > /etc/apt/sources.list
 EOF
 
 cat <<EOF > /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
 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
 
 apt-get install -y grub-efi-arm64-signed-
 echo 'grub-efi-arm64 grub2/update_nvram boolean false' | debconf-set-selections
@@ -145,6 +146,8 @@ network={
 }
 EOF
 
 }
 EOF
 
+passwd
+
 tar -C /lib/firmware/ -xf /boot/efi/vendorfw/firmware.tar
 
 cat <<EOF > /etc/network/interfaces
 tar -C /lib/firmware/ -xf /boot/efi/vendorfw/firmware.tar
 
 cat <<EOF > /etc/network/interfaces
@@ -152,11 +155,11 @@ cat <<EOF > /etc/network/interfaces
 # Include files from /etc/network/interfaces.d:
 source /etc/network/interfaces.d/*
 
 # Include files from /etc/network/interfaces.d:
 source /etc/network/interfaces.d/*
 
-allow-hotplug enp3s0
-iface enp3s0 inet dhcp
+allow-hotplug eth0
+iface eth0 inet dhcp
 
 
-# allow-hotplug wlp1s0f0
-iface wlp1s0f0 inet dhcp
+# allow-hotplug wlan0
+iface wlan0 inet dhcp
         wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 EOF
 
         wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 EOF
 
@@ -168,6 +171,7 @@ exit
 
 cd /
 umount /mnt/boot/efi
 
 cd /
 umount /mnt/boot/efi
+umount /mnt/sys/firmware/efi/efivars
 umount /mnt/sys
 umount /mnt/proc
 umount /mnt/dev/pts
 umount /mnt/sys
 umount /mnt/proc
 umount /mnt/dev/pts
@@ -196,6 +200,7 @@ iwd
 With iwd you can force to use 5ghz. The following needs to be done to get iwd
 running.
 
 With iwd you can force to use 5ghz. The following needs to be done to get iwd
 running.
 
+sudo apt-get update
 sudo apt-get install iwd
 
 cat <<EOF > /etc/iwd/main.conf
 sudo apt-get install iwd
 
 cat <<EOF > /etc/iwd/main.conf
@@ -257,3 +262,27 @@ sudo parted /dev/nvme0n1 rm <n>
 
 # If you're asked if you want to proceed, say 'y'. If your asked if you want to
 # ignore, say, ignore.
 
 # 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#
Impressum, Datenschutz