I hereby claim:
- I am 0xSheepdog on github.
- I am 0xsheepdog (https://keybase.io/0xsheepdog) on keybase.
- I have a public key whose fingerprint is 3541 735F 0F6F 42E6 C742 BEAB 9C14 BCBA 7E5B 5FE9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
CIDR SUBNET MASK CHEATSHEET & ICMP TYPE CODES | |
https://oav.net/mirrors/cidr.html | |
_____________________________________________________________________________ | |
Netmask Netmask (binary) CIDR Notes | |
_____________________________________________________________________________ | |
255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr) | |
255.255.255.254 11111111.11111111.11111111.11111110 /31 Unuseable | |
255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable | |
255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable |
# Claas Heuer, November 2015 | |
# | |
# Setup Powerline on Debian and Centos for BASH, VIM and TMUX | |
# source: https://fedoramagazine.org/add-power-terminal-powerline/ | |
# install on debian | |
sudo apt-get install python-pip | |
sudo apt-get install powerline |
virt-sparsify --tmp=. --compress drive.qcow2 new-drive.qcow2 |
source info: https://access.redhat.com/solutions/641193#comment-1104651 | |
virt-customize -a rhel-guest-image-7.2-20160302.0.x86_64.qcow2 --root-password password:PASSW0RD --uninstall cloud-init |
source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-guest_virtual_machine_installation_overview-creating_guests_with_virt_install | |
The following example installs a virtual machine from an ISO image: | |
# virt-install \ | |
--name guest1-rhel7 \ | |
--memory 2048 \ | |
--vcpus 2 \ | |
--disk size=8 \ | |
--network default \ | |
--cdrom /path/to/rhel7.iso \ |
[defaults] | |
inventory = ./inventory.yml | |
vault_password_file = .vaultpass | |
retry_files_enabled = false | |
roles_path = ./roles | |
gathering = smart | |
callback_whitelist = timer, profile_tasks | |
[privilege_escalation] | |
become = true |
#!/bin/bash | |
set -xe | |
# This script takes as a parameter the name of the VM | |
# and creates a linked clone | |
# Ref: https://unix.stackexchange.com/a/33584 | |
# The scripts assumes that it runs from the same folder | |
# where the vm image is located and it coincides with the | |
# image name |
sudo systemctl enable --now [email protected] |
# add myuser and grant sudo privileges | |
useradd -m myuser | |
echo password | passwd myuser --stdin | |
echo "myuser ALL=(ALL) ALL" | tee -a /etc/sudoers.d/00-myuser | |
# enable serial console | |
systemctl enable --now [email protected] | |
# |