PI-HOLE: Adblocking for home

I’ve came across a yet another easy and cool home project that is intended for Rapsberry Pis, but can run on any flavor of Linux (Requirements here). Its called Pi-Hole and you can set it up in 5 minutes or less. Website: https://pi-hole.net/ The idea is simple: it blocks all add traffic in your network … Read more PI-HOLE: Adblocking for home

Ubuntu ZFS Samba share

In my previous posts regarding setting up ZFS on Ubuntu 16.04, I had referred to Aaron Toponce’s website on doing additional configuration to ZFS such as sharing via NFS or SMB. In the portion for SMB here: https://pthree.org/2012/12/31/zfs-administration-part-xv-iscsi-nfs-and-samba/, it seems that there is a couple more things to do. After running zfs set sharesmb=on pool/srv  and zfs share … Read more Ubuntu ZFS Samba share

Finding an associated Cisco Fabric Interconnect in ESXi

If you have SSH access to your ESX server, smbiosDump has some very useful information. If you look in “OEM Strings: #14”, you can see some very useful information: [root@ucs-test1:~] smbiosDump | grep “OEM Strings: #14” -A 4 OEM Strings: #14 $SPI:rack-unit-13 <- Server ID $SPT:hx-nodes <- Service Profile Template $SYS:test-fi1 <- Fabric Interconnect This … Read more Finding an associated Cisco Fabric Interconnect in ESXi

Removing GPT partitions

I had one system where the disk (sde)was formatted with a GPT partition, but fdisk did not show any partitions # fdisk -l /dev/sde WARNING: GPT (GUID Partition Table) detected on ‘/dev/sde’! The util fdisk doesn’t support GPT. Use GNU Parted. Disk /dev/sde: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 … Read more Removing GPT partitions

apt-get – unable to lock the download directory

I had an issue where a system refused to do any apt-get updates. I think the user must of tried running apt-get update and canceled half-way through. My usual trick of running  apt-get clean did not work so well: E: Some index files failed to download. They have been ignored, or old ones used instead. … Read more apt-get – unable to lock the download directory

ZFS on Ubuntu Linux

This guide discusses how to setup ZFS on Ubuntu 14.04.3 LTS, based from Aaron Toponce’s guide. Environment settings: Operating System: Ubuntu 14.04 LTS Setting up your host: Installation of the ZFS repository # sudo add-apt-repository ppa:zfs-native/stable   Installation of ZFS dependencies # apt-get install spl-dkms   Installation of Ubuntu ZFS # apt-get install -y ubuntu-zfs … Read more ZFS on Ubuntu Linux

Script to monitor disk space usage

Here is a quick and easy script that you can add to your crontab to monitor disk space consumption. Once you hit 85% disk utilization, you automatically send an email to yourself # cat space-monitor.sh #!/bin/bash #This script runs nightly to check disk space usage ADMIN=”macky@supermaru.com” df -h | grep -vE ‘^Filesystem|tmpfs|cdrom’ | awk ‘{print … Read more Script to monitor disk space usage