Use this script via curl -L -O https://gist.github.com/dragon788/e777ba64d373210e4f6306ad40ee0e80/raw/a86f3d05fb56feb6ef01fc2d61a4feb2fd82b281/crypt-fix.sh
and sudo bash ./crypt-fix.sh
.
You may need to edit the DEVICE variable to reflect your disk and partition layout (this was created on an EFI system using LUKS and LVM).
It will prompt you for your disk password once to mount and discover the correct name for the encrypted volume mount and
then prompt again to mount with the correct name so that the update-initramfs
command succeeds with the appropriate mapping,
if this wasn't done you would get a warning and your next boot would still fail.
#!/bin/bash | |
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT | |
# Quit on first error | |
set -e | |
# Temporary directory for the build | |
TMP="/var/tmp/ubuntu-build" |
In order to securely wipe an NVME drive you can use the nvme-cli
package that provides the nvme
command
nvme
only exists in the root path so you have to use sudo nvme
.
For Debian you need to add jessie-backports (on jessie) and it may be in the newer version default repos. For Ubuntu it should be available in the default repos from Xenial onwards, there may be a PPA if you need it on earlier versions.
You can find your devices with sudo nvme list
and securely format with sudo nvme /dev/nvme0n1 --ses=1
.
You can also explicitly add a namespace but I haven't seen or setup a drive with multiple yet.
- Humans build and fix systems.
- Humans get tired and stressed, they feel happy and sad.
- Systems don't have feelings yet. They only have SLAs.
- Humans need to switch off and on again.
- The wellbeing of human operators impacts the reliability of systems.
- Alert Fatigue == Human Fatigue
- Automate as much as possible, escalate to a human as a last resort.
- Document everything. Train everyone. Save time.
- Kill the shame game.
- Human issues are system issues.
ASUS makes a pretty handy Chromebox, and it's handy not just because it's running ChromeOS, it's handy because of everything you can do to the box itself.
The ASUS Chromebox is easily upgradeable, and capable of running just about any linux distribution.
The model I picked up, the M004U has the following specs:
- Celeron 2955U (1.4GHz) 64 bit Dual core processor with 2MB L3 Cache
- 2GB DDR3 1600 RAM with 2 slots
- 16GB SSD HDD
- 802.11 b/g/n dual-band wireless, Bluetooth 4.0, and gigabit ethernet
You can use --keep --noexec
to extract the files without triggering the installer, this is useful in case you need to patch the evdi driver for a newer than LTS kernel.
See http://www.displaylink.org/forum/showthread.php?t=65389 for a case where this might be useful.
# Found from slides at http://www.lug-erding.de/vortrag/LUG_Ubuntu_Install_20170125.pdf | |
d-i partman/early_command string \ | |
USBDEV=$(list-devices usb-partition | sed "s/\(.*\)./\1/");\ | |
BOOTDEV=$(list-devices disk | grep -v "$USBDEV" | head -1);\ | |
debconf-set partman-auto/disk $BOOTDEV;\ | |
debconf-set grub-installer/bootdev $BOOTDEV; \ | |
umount /media; |
Based on info from http://peterdowns.com/posts/open-iterm-finder-service.html but with modified behavior and fixed to work with iTerm2 version 3 or later. It will not work with older versions of iTerm. The modified behavior is to open a new terminal window for each invocation instead of reusing an already open window. Update - The original author released a build script for the newer iTerm2 versions at https://github.com/peterldowns/iterm2-finder-tools that keeps the original behavior of reusing an open iTerm2 window.
- Run Automator, select a new Service
- Select Utilities -> Double click ‘Run AppleScript’
- Service receives selected 'folders' in 'finder.app'
- Paste script: