Forward GnuPG agent from macOS to Linux
Run gpg once as your to create the directory structure
gpg --list-keys
#!/bin/bash | |
set -eux -o pipefail | |
# Remove old pi packages list | |
sudo rm -f /etc/apt/apt.conf.d/99rpimonitor /etc/apt/sources.list.d/rpi-monitor.list | |
# Replace version name in all source lists and fix up naming | |
sudo sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list.d/* /etc/apt/sources.list | |
sudo sed -i '/debian-security\//b; s/\/debian-security/\/debian-security\//g' /etc/apt/sources.list.d/* /etc/apt/sources.list | |
sudo sed -i '/security/ s,bookworm/updates,bookworm-security,g' /etc/apt/sources.list.d/* /etc/apt/sources.list |
#!/bin/bash | |
set -eux -o pipefail | |
# Remove old pi packages list | |
sudo rm -f /etc/apt/apt.conf.d/99rpimonitor /etc/apt/sources.list.d/rpi-monitor.list | |
# Replace version name in all source lists and fix up naming | |
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/* /etc/apt/sources.list | |
sudo sed -i '/debian-security\//b; s/\/debian-security/\/debian-security\//g' /etc/apt/sources.list.d/* /etc/apt/sources.list | |
sudo sed -i '/security/ s,bullseye/updates,bullseye-security,g' /etc/apt/sources.list.d/* /etc/apt/sources.list |
#!/bin/bash | |
set -eux -o pipefail | |
# Bug fixes | |
sudo rm -f /etc/apt/apt.conf.d/99rpimonitor | |
# Replace stretch with buster in all source lists | |
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* /etc/apt/sources.list | |
# Run the upgrade |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "NonResourceBasedReadOnlyPermissions", | |
"Action": [ | |
"ec2:DescribeSubnets", | |
"ec2:DescribeSecurityGroups", | |
"ec2:DescribeSnapshots", | |
"ec2:DescribeImages", |
--- | |
- hosts: all | |
gather_facts: false | |
tasks: | |
- name: Get information from ds.testmyipv6.com | |
raw: curl http://ds.testmyipv6.com/ | |
changed_when: false | |
register: connection_test | |
- debug: |
#!/bin/bash | |
set -e | |
maxloop=100 | |
loop=0 | |
file="$1" | |
while file "${file}" | grep -q "gzip compressed data" ; do | |
temp=$(mktemp) | |
gzip -dc "${file}" > ${temp} | |
mv ${temp} "${file}" | |
loop=$((loop+1)) |
[Unit] | |
Description=Generate sshd keys | |
Before=ssh.server | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/ssh-keygen -A | |
RemainAfterExit=true | |
StandardOutput=journal |
#!/usr/bin/env bash | |
VERSION=4.0.1 | |
SCRIPT=`basename "$0"` | |
APPNAME="My App" | |
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
OSX_VERSION=`sw_vers -productVersion` | |
PWD=`pwd` | |
function usage { |
You might want to read this to get an introduction to armel vs armhf.
If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.
First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static
so that you can run ARM executables directly on linux