sgdisk -n 0:0:+1MiB -t 0:ef02 -c 0:grub /dev/sda
sgdisk -n 0:0:+1GiB -t 0:ea00 -c 0:boot /dev/sda
sgdisk -n 0:0:+4GiB -t 0:8200 -c 0:swap /dev/sda
sgdisk -n 0:0:+50GiB -t 0:8300 -c 0:root /dev/sda
sgdisk -n 0:0:0 -t 0:8300 -c 0:home /dev/sda
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 | |
| ## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT | |
| # Quit on first error | |
| set -e | |
| # Temporary directory for the build | |
| TMP="/var/tmp/ubuntu-build" |
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 | |
| # ofed-ubuntu.sh | |
| # Install Mellanox Ofed on Ubuntu Machines | |
| # | |
| # Author: Nilson Lopes (06/17/2021) | |
| ubuntu_release=$(awk -F '"' '/VERSION_ID/ {print $2}' /etc/os-release) | |
| mofed_package_version='latest' | |
| mofed_repo_base_url="https://linux.mellanox.com/public/repo/mlnx_ofed" |
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 python | |
| import threading | |
| import subprocess | |
| import traceback | |
| import shlex | |
| class Command(object): | |
| """ | |
| Enables to run subprocess commands in a different thread with TIMEOUT option. |
【LinuxでもCrystalDiskMarkぽいディスクベンチマークしたい】に触発されてCrystalDiskMarkの各バージョンのデフォルト値でのベンチマークパラメータをfioで再現してみました。 是非お使いください。
コマンド一例:
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 \
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 |
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 <[email protected]>" |