Running a Windows VM in Virtualbox in a VMware Gentoo VM

    11 Nov 2017
    Installing Gentoo as a VM on a VMWare/ESXi Host One might think: why would anyone do this? but the primary reason was to have a VM that I could RDP to while it’s on a VPN. And I admit that this is a bit of an overkill, but I just wanted to try it out to see how it work out :). Gentoo provides really good instructions on how to install it: Gentoo Linux amd64... Read more...

    Using Flannel with CoreOS

    22 Oct 2017
    CoreOS Update I recently updated from 1298.7.0 to 1353.6.0 and for some reason some of the bridge interfaces for my containers wouldn’t start up. I just saw the following interfaces: core ~ # ip -4 a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 2: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 inet 192.168.0.106/24 brd 192.168.0.255... Read more...

    Migrating MariaDB to Docker

    05 Oct 2017
    So a while back I moved my Mariadb instance to my FreeBSD VM. Now that I was playing around with docker, I wanted to move the mariadb install to docker and see how it fares. Update Mariabdb On FreeBSD Before the migration I wanted to update mariadb to the latest version and then export the DBs and import them to the latest docker image which was 10.1.x. The current version on the FreeBSD VM was... Read more...

    Run Elasticsearch and Kibana on Docker

    25 Sep 2017
    Elasticsearch with Docker I had a CoreOS machine and I wanted to move my ELK (elasticsearch,logstash, and kibana) stack to docker. At first I wanted to move all the machines, but then I realized that I was already using UDP port 514 for splunk on the same host so I decided to just move just the elasticsearch and kibana components. This was actually perfect, cause all the components were on the same machine before and... Read more...

    Using Splunk with Docker

    10 Sep 2017
    Splunk and Docker The instructions on the setup are covered in: How to use the Splunk Enterprise Docker image. I decided to take the docker-compose approach. Install docker-compose on CoreOS First we need to install docker-compose on CoreOS. There are a couple of sites that talk about the process: Installing Docker Compose in CoreOS Install docker-compose onto CoreOS So following the instructions I just ran this: $ curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose $... Read more...

    Using WP Scan Docker Image with CoreOS

    27 Aug 2017
    WPScan I wanted to run WPScan against my wordpress install just to make sure I don’t miss anything obvious. Looking over the prerequisites, it looks like it needs a specific version of ruby: Ruby >= 2.1.9 - Recommended: 2.3.3 I checked out my Debian and CentOS machines and I realized they didn’t have that version yet: <> ruby -v ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu] <> ruby -v ruby 2.0.0p648 (2015-12-16) [x86_64-linux] Then I remembered that I... Read more...

    SSD Performance Degradation and SCSI UNMAP Command

    12 Aug 2017
    SSD Drives So I had two sets of SSDs in my VMware setup, one on the local mac mini: [root@macm:~] esxcli storage core device list -d t10.ATA_APPLE_SSD_SM256E t10.ATA_APPLE_SSD_SM256E Display Name: Local ATA Disk (t10.ATA_APPLE_SSD_SM256E) Has Settable Display Name: true Size: 239372 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/t10.ATA_APPLE_SSD_SM256E Vendor: ATA Model: APPLE SSD SM256E Revision: 2A0Q SCSI Level: 5 Is Pseudo: false Status: on Is RDM Capable: false Is Local: true Is Removable:... Read more...

    Installing CoreOS and Shipyard

    24 Jul 2017
    I wanted to try out CoreOS, an OS that is optimized for Docker Containers. Installing to disk Most of the setup is covered in Installing CoreOS Container Linux to disk. Just download the ISO and then dd it to a USB stick: $ sudo dd if=coreos_production_iso_image.iso of=/dev/sdc bs=1M status=progress After the machine boots from the USB stick, it automatically logs in as the core user. I set the user’s password with the following command: $... Read more...

    Sophos 9 on CentOS 7

    14 Jul 2017
    Sophos As I was going through the lynis suggestions, I realized that I should install an anti-virus solution on my machine. After reading a couple of sites: AV-Test Lab tests 16 Linux antivirus products against Windows and Linux malware The 7 Best Free Linux Anti-Virus Programs I decided to try out sophos. I have used clamav in the past but apparently now it’s detection rate is pretty low: Installing Sophos The instructions are covered in... Read more...

    Setup Paperwork on Debian 8 with Apache

    25 Jun 2017
    Paperwork I wanted to find an application that helps with note taking and it wasn’t cloud based. I just wanted my own app that I could manage myself. So I ran into Paperwork and I decided to give it a try. Install Paperwork on Debian Most of the setup is covered here: Installing Paperwork on Debian 7. First install the prereqs: $ sudo apt-get install php5-mysql curl wget git php5-cli php5-gd php5-mcrypt nodejs nodejs-legacy Next... Read more...