#!/usr/bin/env bash
vm_id="$1"
phase="$2"
[ $# -ne 2 ] || exit 1
case "$phase" in
pre-start) ;;| #!/bin/sh | |
| set -a | |
| cd /root/restic || { >&2 echo "ERROR: Cannot change into directory."; exit 1; } | |
| read AWS_ACCESS_KEY_ID < AWS_ACCESS_KEY_ID | |
| read AWS_SECRET_ACCESS_KEY < AWS_SECRET_ACCESS_KEY | |
| read RESTIC_PASSWORD < RESTIC_PASSWORD | |
| read S3_ENDPOINT < S3_ENDPOINT |
| FROM debian:bookworm-slim | |
| RUN set -x \ | |
| # create nginx user/group first, to be consistent throughout docker variants | |
| && groupadd --system --gid 101 nginx \ | |
| && useradd --system --gid nginx --no-create-home --home /nonexistent \ | |
| --comment "nginx user" --shell /bin/false --uid 101 nginx \ | |
| && apt-get update \ | |
| && apt-get upgrade -y \ | |
| && apt-get install --no-install-recommends --no-install-suggests -y \ |
These are instructions to create an ssh-format developer key for signing git commits, and configuring this key to be used by default, and specifying defaults to apply this signature to all git commits.
Along with specifying an identity agent in ~/.ssh/config and SSH_AUTH_SOCK environment variable,
this will cause VSCode to pass along obtaining your key decryption password to the system's identity
agent.
These instructions have been tested on MacOSX with 1Password set as the identity agent.
| #!/bin/bash | |
| # get cover art using sacad. try only once. | |
| function get_cover_art() { | |
| local artist="$1" | |
| local album="$2" | |
| local dstdir="$3" | |
| local albumdir="${dstdir}/${artist}/${album}" | |
| local artfile="${albumdir}/${artist} - ${album}.png" |
Describe a method in which one would use buildroot to create a multiarch root image supporting both ARM64 and ARMHF file execution. Explain in detail how one would use two toolchains within the same root device.
Buildroot is a popular tool used for building embedded Linux systems via cross-compilation. To create a multiarch root image that supports both ARM64 (AArch64) and ARMHF (ARM Hard Float, 32-bit) file execution, you'll need to configure the system to use two separate toolchains and set up proper library paths to ensure smooth runtime execution. Here's a detailed explanation of how to achieve this:
Download and extract Buildroot:
Salvador Liébana
- if you dont have armhf added by default like on armbian jammy, before installing the 32 bit armhf userspace libs you need to add armhf architecture first.
sudo dpkg --add-architecture armhf
sudo apt update
This image is a very minimal Ubuntu Jammy configuration that will probably require you to add software based on your needs. It should provide a good starting point for any use case needed.
- c0rnelius and Tenkawa at https://github.com/pyavitz/debian-image-builder for the image building tool.