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
# Raspberry PI OS config.toml | |
# This file is used for the initial setup of the system on the first boot, if | |
# it's s present in the boot partition of the installation. | |
# | |
# This file is loaded by firstboot, parsed by init_config and ends up | |
# as several calls to imager_custom. | |
# The example below has all current fields. | |
# | |
# References: | |
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot |
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 | |
set -x -e -o pipefail | |
: for deb-multimedia keyring, browse http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring | |
ansible -i localhost, -c local localhost -m apt_repository -a 'repo="deb http://www.deb-multimedia.org stable main non-free"' | |
ansible -i localhost, -c local localhost -m apt_repository -a 'repo="deb http://www.deb-multimedia.org testing main non-free"' | |
ansible -i localhost, -c local localhost -m apt_repository -a 'repo="deb http://www.deb-multimedia.org unstable main non-free"' | |
: for dropbox |
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
% Colors from www.ColorBrewer.org by Cynthia A. Brewer, Geography, Pennsylvania State University. | |
% Apache-Style Software License for ColorBrewer software and ColorBrewer Color Schemes | |
% | |
% Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University. | |
% | |
% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | |
% You may obtain a copy of the License at | |
% | |
% http://www.apache.org/licenses/LICENSE-2.0 |
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 | |
ansible -c local localhost -m apt_repository -a "repo='deb https://packagecloud.io/lpenz/debian/debian/ buster main' update_cache=no" |
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
// Copyright (C) 2020 Leandro Lisboa Penz <lpenz@lpenz.org> | |
// This file is subject to the terms and conditions defined in | |
// file 'LICENSE', which is part of this source code package. | |
use anyhow::Result; | |
fn main() -> Result<()> { | |
Ok(()) | |
} |
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 | |
TARGET=${1-PWD} | |
shift | |
TMP=$(mktemp) | |
trap 'rm -f $TMP' EXIT | |
chmod u+x "$TMP" | |
set -e |
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 | |
DEV=${1?must specify a device} | |
function finish { | |
for d in boot dev/pts dev proc sys; do | |
if test -d "$PWD/usbroot/$d" && mount | grep -q "$PWD/usbroot/$d"; then | |
umount "$PWD/usbroot/$d" | |
fi | |
done |
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 | |
DIR=${1?usage: $0 <dir> <img>} | |
OUT=${2?usage: $0 <dir> <img>} | |
set -e -x | |
rm -f "$OUT" | |
trap 'rm -f $OUT' EXIT INT | |
virt-make-fs --partition=mbr --type=ext3 --format=raw --size=+300M "$DIR" "$OUT" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "debian/stretch64" | |
# config.vm.box = "debian/buster64" | |
config.vm.provider "libvirt" do |v| |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure('2') do |config| | |
config.vm.box = 'dummy' | |
config.ssh.forward_agent = 'true' | |
config.vm.synced_folder '.', '/vagrant', type: 'sshfs' # only works with ubuntu | |
config.vm.provider :aws do |aws, override| |
NewerOlder