November 18

Linux: Bash Script to ssh to multiple servers run a command and the seprately print the output for each server

Prerequisite: must have ssh key authentication configured

  1. Create a serverlist.txt file with a line by line list of servers.
  2. Create a shell file with the following code(eg. servicechecker.sh:

!/bin/bash

for host in $(cat serverlist.txt); do ssh “$host” “systemctl status isecespd” >”output.$host”; done

  1. chmod 755 script-filename
  2. ./script-filename
Category: Linux | Comments Off on Linux: Bash Script to ssh to multiple servers run a command and the seprately print the output for each server
November 18

Linux: Extract an ova file

tar -xvf filename.ova
This creates the following corrolating files:
parrot-security-4.6_virtual-disk001.mf
parrot-security-4.6_virtual-disk001.ovf
parrot-security-4.6_virtual-disk001.vmdk

Category: Linux | Comments Off on Linux: Extract an ova file
November 18

Linux: qemu

start cdrom image
qemu-system-x86_64 -m 2048 -cdrom kali-linux-2018.3a-amd64.iso

If no other Hypervisors are running in the background you can add the -enable-kvm option to access the computers virtualization harware.
qemu-system-x86_64 -enable-kvm -m 4096 -cdrom OI-hipster-gui-20180427.iso

Start an image file
qemu-system-x86_64 -m 4096 -hda parrot-security-4.6_virtual-disk001.vmdk

Category: Linux | Comments Off on Linux: qemu