Joint work for the Qubes OS Summit 2022:
- Simon Gaiser (@HW42)
- Frédéric Pierret (@fepitre)
| # Locale Setup | |
| d-i debian-installer/language string en | |
| d-i debian-installer/country string US | |
| d-i debian-installer/locale string en_US.UTF-8 | |
| # Keyboard Setup | |
| d-i keyboard-configuration/xkb-keymap select us | |
| # Clock Setup | |
| d-i time/zone string Etc/UTC |
| #!/bin/sh | |
| set -x | |
| set -e | |
| xl network-attach 0 ip=10.137.99.1 script=/etc/xen/scripts/vif-route-qubes backend=sys-net | |
| sleep 2 | |
| dev=$(ls /sys/class/net|sort|head -1) | |
| ip a a 10.137.99.1/24 dev $dev | |
| ip l s $dev up | |
| ip r a default dev $dev |
| #!/bin/bash | |
| set -ex | |
| rm -rf /etc/pki/pesign/* | |
| mkdir -p /etc/pki/pesign | |
| certutil -d /etc/pki/pesign -N --empty-password | |
| efikeygen -d /etc/pki/pesign \ |
| builder-templates-community-r4.3 | |
| ├── builder-config.yml | |
| ├── builder.yml | |
| ├── components | |
| │ ├── builder-archlinux | |
| │ │ └── noversion | |
| │ │ └── nodist | |
| │ │ └── fetch | |
| │ │ └── source.fetch.yml | |
| │ ├── builder-debian |
| #!/bin/bash | |
| set -eu | |
| if [ "${DEBUG:-0}" == "1" ]; then | |
| set -x | |
| fi | |
| systemd_unit="$1" |
| #!/bin/bash | |
| set -eu | |
| if [ "${DEBUG:-0}" == "1" ]; then | |
| set -x | |
| fi | |
| bind_dir="$(readlink -f "$1")" | |
| bind_name="$(basename "${bind_dir}")" |
| # Prep | |
| echo "lorbus" > ~/.fedora.upn | |
| ssh-keygen | |
| # Add the created public key on https://admin.fedoraproject.org/accounts (and pagure.io) | |
| # Create src.fp.o API key on web interface and save locally (Valid 60 Days) | |
| cat <<EOF > ~/.config/rpkg/fedpkg.conf | |
| [fedpkg.pagure] | |
| token = <token_here> | |
| EOF |
| // This will open up a prompt for text to send to a console session on digital ocean | |
| // Useful for long passwords | |
| (function () { | |
| window.sendString = function (str) { | |
| f(str.split("")); | |
| function f(t) { | |
| var character = t.shift(); | |
| var i=[]; | |
| var code = character.charCodeAt(); | |
| var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/); |
| // ==UserScript== | |
| // @name noVNC Paste for Proxmox | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2a | |
| // @description Pastes text into a noVNC window (for use with Proxmox specifically) | |
| // @author Chester Enright | |
| // @match https://* | |
| // @include /^.*novnc.*/ | |
| // @require http://code.jquery.com/jquery-3.3.1.min.js | |
| // @grant none |