From e5060d0ef7840bb297e30935f3c536b70346daa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bas=20Magr=C3=A9?= Date: Tue, 31 Oct 2023 11:55:29 +0100 Subject: [PATCH] k3s on phone --- dockerKernelCheck.md | 10 ++++++++ k3s-on-arm-postmarketos.md | 50 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 dockerKernelCheck.md create mode 100644 k3s-on-arm-postmarketos.md diff --git a/dockerKernelCheck.md b/dockerKernelCheck.md new file mode 100644 index 0000000..b0bacf9 --- /dev/null +++ b/dockerKernelCheck.md @@ -0,0 +1,10 @@ +https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh + + +ubuntu +sudo apt-get purge --auto-remove initramfs-tools + +sudo apt install docker.io +sudo update-alternatives --config iptables + +# need iptables-legacy \ No newline at end of file diff --git a/k3s-on-arm-postmarketos.md b/k3s-on-arm-postmarketos.md new file mode 100644 index 0000000..0aa41ed --- /dev/null +++ b/k3s-on-arm-postmarketos.md @@ -0,0 +1,50 @@ +# K3s on postmarketos + +## flash mobile phone + +[here](https://wiki.postmarketos.org/wiki/Xiaomi_POCO_F1_(xiaomi-beryllium)) + +## Install pmbootstrap + +https://wiki.postmarketos.org/wiki/User_talk:Docker + +## custom kernel + +pmbootstrap init + +pmbootstrap kconfig edit linux-postmarketos-qcom-sdm845 + +`> Networking support > Networking options > Network packet filtering framework (Netfilter) > Core Netfilter Configuration` + +enable: "multiport" Multiple port match support + +-save- + +```bash +pmbootstrap build linux-postmarketos-qcom-sdm845 --force +``` + +kernel apk is in `~/.local/var/pmbootstrap/packages/v22.12/aarch64/linux-postmarketos-qcom-sdm845-6.1.0-r0.apk` + + +```bash +$ scp ~/.local/var/pmbootstrap/packages/v22.12/aarch64/linux-postmarketos-qcom-sdm845-6.1.0-r0.apk user@172.16.42.1:/home/user/linux-postmarketos-qcom-sdm845-6.1.0-r0.apk +user@172.16.42.1's password: +linux-postmarketos-qcom-sdm845-6.1.0-r0.apk 100% 19MB 28.7MB/s 00:00 +``` + +```bash +$ ssh user@172.16.42.1 +user@172.16.42.1's password: +Welcome to postmarketOS! o/ + +This distribution is based on Alpine Linux. +First time using postmarketOS? Make sure to read the cheatsheet in the wiki: + +-> https://postmarketos.org/cheatsheet + +You may change this message by editing /etc/motd. +$ sudo -i +[sudo] password for user: +$ apk add -u /home/user/linux-postmarketos-qcom-sdm845-6.1.0-r0.apk --allow-untrusted +```