Why I wanted to install a new arch linux configuration but using zfs as root file system, so that i can see if i can configure snapshots for updates. But i want to have as much as posible encrypted so, my setup will be
partition 1: efi partition, vfat unencrypted for /boot/efi maybe secure it with secure boot partition 2: luks 1 encrypted / ext4 formated for /boot and grub luks v1 is needed because grub can’t open luks v2 partition 3: luks 2 encrpted / lvm with swap and zfs root filesystem zfs can’t handle a swap file, so using lvm so that swap partition and zfsroot are encrypted i want the swap partition encrypted so that i can have a encrypted suspend to disk For who For a advanced linux user
Linux things to check Intro Just another list
Patching Patchman opsi client management system uyuni Automation saltstack Network sntop: simple network top ntopng: High-Speed Web-based Traffic Analysis and Flow Collection
The other container solution Normaly we only think about docker containers if we want to containerize something in linux. But there are more options lxd/lxc is one of those other solutions.
Where docker containers are mostly used to start one process, lxd containers are more like containerized vm’s
How to install it sudo pacman -S lxd
or
sudo apt install lxd-installer
or
sudo snap install lxd –channel=latest/stable
Add your user to the lxd group in /etc/group and restart lxd
some of my python resorces
Machine learning list Intro These are project i want to do a little bit more with, about machine learning
Programming Machine learning course AI note taking app that runs locally Build you’re first machine learning model with python in 7 minutes Awesome machine learning curated list Python OpenAI projects Curated List op Chatgtp resources A curated list of all things awesome about OpenAI - the research company behind ChatGPT TTS Tortoise Ollama language models Hugging faces OpenWebUI litellm.
Install older version of package on ubuntu/debian Intro I had a problem installing gitlab-ce a newer version, because it was a mayor update you first needed to install a older version.
Fixing it [mermaid] flowchart TD start([Start]) –> step1(apt-get update) –> step2(apt-cache show gitlab-ce | grep Version) –> step3(apt-get install gitlab-ce=14.0.12-ce.0) –> step4(apt-get install gitlab-ce) –> finish([Finished]) [/mermaid]
So in text apt-get update apt-cache show <package_name> apt-get install <package_name>= apt-get install <package_name> Later,
Mermaid examples Intro Mermaid is a easy way to create easy graphics like flowcharts
For example
flowchart TD start([Start]) –> declare1(Declare variables a, b and c) –> assign1[/Assign a, b and c/] –> condition1{Is a>b?} – False –> condition1_false{Is c>b?} – False –> printb[/Print b/] –> stop([Stop]) condition1_false – True –> printc[/Print c/] –> stop condition1 – True –> condition1_true{Is a>c?} condition1_true – False –> printc condition1_true – True –> printa[/Print a/] –> stop classDef blue fill:#00f,color:#fff classDef blueline stroke:#00f style start fill:#0f0,color:#fff style stop fill:#f00,color:#fff class declare1,assign1,printb,printc,printa blue class condition1,condition1_false,condition1_true blueline Creates the following graph [mermaid] flowchart TD start([Start]) –> declare1(Declare variables a, b and c) –> assign1[/Assign a, b and c/] –> condition1{Is a>b?
Bridge Mosquitto mqtt to hivemq Intro How to bridge a local mosquitto mqtt broker to a free hivemq cloud bridge
Debian installatie apt-get install mosquitto
To install the package
Change the mosquitto config file /etc/mosquitto/mosquitto.conf
connection cloudmqtt address <url>.hivemq.cloud:8883 topic # both 1 bridge_attempt_unsubscribe false bridge_protocol_version mqttv311 notifications false remote_username <hivemq_username> remote_password <hivemq_password> try_private false bridge_capath /etc/ssl/certs/ You can add authentication to start mosquitto.conf
per_listener_settings true allow_anonymous false password_file /etc/mosquitto/mosquitto.users And use the mosquitto_passwd command to create and add users to the file (it seems that you need to restart or reload mosquitto after changing password or adding users)
Varnish cheat sheet Intro How to see caching stats etc.
Varnish show hitratio rate varnishstat
Hitrate ratio: 10 100 1000 Hitrate avg: 0.3373 0.3012 0.3400
This Means the last 10 seconds we have a hitrate of 33.73% and the last 100 seconds only 30.12%
show urls missed varnishlog -m “VCL_call:miss” | grep –line-buffered “RxURL”
work in progress, because it’s my cheat sheet Richard