This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get a copy of the linux kernel source you intend to build | |
Install u-boot-tools, gcc-aarch64-linux-gnu, g++-aarch64-linux-gnu device-tree-compiler libncurses-dev (packages names on debian-based systems) | |
You also need native compiler tools available, such as build-essential | |
Add the following to arch/arm64/boot/dts/allwinner/Makefile: | |
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb | |
If they allwinner folder doesn't exist, get the patches necessary to create it (and its friends) from mainline kernel, linux-sunxi, etc, etc | |
Add the attached dts, dtsi and defconfig files to the locations specified below: | |
dts & dtsi --> arch/arm64/boot/dts/allwinner/ | |
defconfig --> arch/arm64/config/ | |
Run the following (from the root of the kernel tree): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Patch log4shell | |
hosts: all | |
remote_user: root | |
tasks: | |
- name: Ensure find, lsof, kill, zip, unzip, coreutils and gawk are installed | |
apt: | |
name: "{{ packages }}" | |
state: present | |
vars: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check the amount of CPU being consumed by processes other than xmrig | |
# Takes a single (optional) argument, the name of the screen to target. Defaults to "xmrig" if unspecified | |
set -e | |
#12.5% or 2 full cores (with our 16 total) | |
IDLE_THRESHOLD=12.5 | |
TARGET_SCREEN="${1:-xmrig}" | |
NUM_CORES=$(cat /proc/cpuinfo | grep "core id" | wc -l) |
OlderNewer