DISISO="$HOME/Downloads/grml64-small_2017.05.iso"
squashfs="/live/grml64-full/grml64-full.squashfs"
mkdir ~/livecdtmp
cd ~/livecdtmp
mkdir extract-cd mnt
sudo mount -o loop "$DISISO" mnt
sudo rsync --exclude=$squashfs -a mnt/ extract-cd
sudo unsquashfs mnt$squashfs
sudo mv squashfs-root edit
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
#cloud-config | |
autoinstall: | |
refresh-installer: | |
update: true | |
apt: | |
geoip: true | |
preserve_sources_list: false | |
primary: | |
- arches: [amd64, i386] | |
uri: http://us.archive.ubuntu.com/ubuntu |
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
#cloud-config | |
autoinstall: | |
refresh-installer: | |
update: true | |
apt: | |
geoip: true | |
preserve_sources_list: false | |
primary: | |
- arches: [amd64, i386] | |
uri: http://us.archive.ubuntu.com/ubuntu |
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 | |
echo "Counting HBA SAS3 controllers ..." | |
sas_ctrl=$(sas3flash -listall | grep -e "^[0-9]"| awk '{print $1}') | |
output="/tmp/sas.txt" | |
for ctrl in ${sas_ctrl[@]}; do | |
ctrl_index=$(echo $ctrl | awk '{print $1}') | |
echo "Controller ${ctrl_index}: Identifying Model and Firmware ID" | |
sas3flash -c ${ctrl_index} -list > $output | |
model=$(awk '/Board Name/ {print $4}' $output) |
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 | |
# pproc | |
# Runs multiple subprocesses in parallel, serializing stdout. | |
# | |
# Author: Benjamin Bengfort <[email protected]> | |
# Created: Wed Jun 14 15:20:05 2017 -0400 | |
# | |
# Copyright (C) 2017 Bengfort.com | |
# For license information, see LICENSE.txt | |
# |
Hi,
I packaged a few of Intel's out of tree NIC drivers from http://sourceforge.net/projects/e1000/ as dkms based .debs and included them in a custom grml image.
I'll explain how; if there is interest, I can also share my packages (although, as you'll see, they're likely sub-par, because I did not take the time to really understand what I was doing; in particular, I fear the e1000e module may not always build correctly at grml-live time, while it builds
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/python | |
import nmap | |
target_mac = '<Enter MAC Adress>' | |
nm = nmap.PortScanner() | |
nm.scan(hosts='10.0.0.0/24', arguments='-n -sP') |
- https://bugzilla.kernel.org/show_bug.cgi?id=206873
- https://bbs.archlinux.org/viewtopic.php?pid=1897995#p1897995
- https://www.phoronix.com/forums/forum/hardware/general-hardware/1147545-realtek-alc1220-vb-usb-audio
- https://www.alsa-project.org/wiki/Matrix:Module-hda-intel
- https://debian-facile.org/viewtopic.php?pid=329215#p329215
- Read the fan speed mode:
ipmitool -H <IP> -U <USER> -P <PASSWD> raw 0x30 0x45 0x00
The values are:
- Standard: 0
- Full: 1
- Optimal: 2
- Heavy IO: 4