[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
mkdir /target
# list drives
fdisk -l
# find each partition, i.e, /, /boot, /boot/efi and /home
# mount them
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
# reassemble the raid | |
sudo mdadm --assemble --scan | |
sudo mdadm --detail --scan | sudo tee -a /etc/mdadm.conf | |
# Rebuild kernel to include the raid configuration | |
sudo dracut -f /boot/initramfs-$(uname -r).img $(uname -r) | |
sudo grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg | |
# Remake the file system | |
sudo sfdik --delete /dev/md0 |
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
#version=RHEL7 | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use graphical install | |
graphical | |
# Run the Setup Agent on first boot | |
firstboot --enable | |
ignoredisk --only-use=sde | |
# Keyboard layouts | |
keyboard --vckeymap=us --xlayouts='us' |
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
# The method should be set to "raid". | |
d-i partman-auto/method string raid | |
# Specify the disks to be partitioned. They will all get the same layout, | |
# so this will only work if the disks are the same size. | |
d-i partman-auto/disk string /dev/sda /dev/sdb | |
# Next you need to specify the physical partitions that will be used. | |
d-i partman-auto/expert_recipe string \ |
esxcli network firewall ruleset set -e true -r httpClient
vim-cmd /hostsvc/maintenance_mode_enter
# esxi 6
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20200604001-standard
# esxi 7.u2
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-7.0U2a-17867351-standard
vim-cmd /hostsvc/maintenance_mode_exit
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
insmod tga | |
insmod png | |
insmod gfxterm | |
insmod lspci | |
insmod vbe | |
insmod ntfs | |
insmod chain | |
insmod biosdisk | |
insmod font | |
#GRUB_HIDDEN_TIMEOUT=10 #0 par defaut |
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 json | |
import warnings | |
from collections import namedtuple | |
import requests | |
import os | |
warnings.filterwarnings("ignore") | |
URL = { |
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
sudo apt install freeipmi-tools \ | |
ipmitool \ | |
smartmontools \ | |
lm-sensors \ | |
tree \ | |
hddtemp \ | |
wmctrl \ | |
lsscsi | |
sudo inxi --memory \ |
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
#_preseed_V1 | |
## <owner> <question name> <question type> <value> | |
## Localization | |
# Preseeding only locale sets language, country and locale. | |
d-i debian-installer/language string en | |
d-i debian-installer/country string US | |
d-i debian-installer/locale string en_US.UTF-8 | |
## Clock and Timezone | |
d-i clock-setup/utc boolean true |