export DISPLAY=:1
xrandr -q
xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual-1 1920x1080
xrandr --output Virtual-1 --mode 1920x1080
This file contains hidden or 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
| slack-vm1: | |
| default_gateway: 192.168.1.1 | |
| interfaces: | |
| - name: eth0 | |
| addresses: | |
| - 192.168.1.21/24 | |
| vlan: 100 # VLAN tag for an access port | |
| - name: eth2 | |
| addresses: | |
| - 10.12.0.10/16 |
https://datatracker.ietf.org/doc/html/rfc7047
https://manintheit.org/2019/12/17/creating-vlans-on-kvm-with-openvswitch/
https://blog.christophersmart.com/2020/07/27/how-to-create-linux-bridges-and-open-vswitch-bridges-with-networkmanager/ https://github.com/k8snetworkplumbingwg/ovs-cni/blob/main/docs/demo.md
This file contains hidden or 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
| #!/usr/bin/env bash | |
| ################################################################################ | |
| ## File: script.sh | |
| ## Desc: Sample bash argument processing | |
| ## Author: Nilson Lopes <nlopes@sourcecode.com> | |
| ################################################################################ | |
| set -o nounset |
This file contains hidden or 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: System Hardware and Configuration Check | |
| hosts: grml | |
| gather_facts: true # Enable this | |
| vars: | |
| cpu: | |
| model: AMD EPYC 9554 64-Core Processor | |
| threads: 128 | |
| memory: | |
| total_mb: 386442 |
This file contains hidden or 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
| #!ipxe | |
| # Global variables used by other iPXE scripts | |
| chain --autofree vars.ipxe || | |
| # First try to load a specifix boot script based on the client MAC address | |
| # Boot <boot-url>/<boot-path>/mac-010203040506.ipxe if script is present | |
| chain --replace --autofree ${ipxe_boot_path}mac-${mac:hexraw}.ipxe || | |
| # Loads ipxe boot script based client platform and architecture |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import argparse | |
| import multiprocessing | |
| import os | |
| import shutil | |
| import subprocess | |
| __author__ = 'Nilson Lopes <noslin005@gmail.com>' |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import argparse | |
| import logging | |
| from logging.config import dictConfig | |
| import sys | |
| __version__ = "0.2.0" | |
| __author__ = "Tux Penguin <tux@example.net>" |
This file contains hidden or 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 | |
| make_ipxe() { | |
| pushd "$HOME/src/forked/ipxe/src" >/dev/null && | |
| make CONFIG=chain bin/undionly.kpxe bin/ipxe.lkrn bin/ipxe.pxe bin/ipxe.usb && | |
| sudo install -v -m 0644 -g root -o root bin/undionly.kpxe /srv/salt/tftpd/files/undionly.kpxe && | |
| sudo install -v -m 0644 -g root -o root bin/ipxe.lkrn /srv/salt/tftpd/files/ipxe.lkrn && | |
| sudo install -v -m 0644 -g root -o root bin/ipxe.pxe /srv/salt/tftpd/files/ipxe.pxe && | |
| sudo salt-call -l quiet state.single file.recurse name=/srv/tftp source=salt://tftpd/files dir_mode=755 file_mode=644 && | |
| popd >/dev/null |
1. Install packages needed to build grml-live .deb
user@localhost$ apt-get --no-install-recommends install \
build-essential \
devscripts \
fakeroot \
asciidoc \
docbook-xsl \
xsltproc \