Docker Container for Pi-Hole

I want to learn more about Docker and whats a better way to try something new in “production” (my home).

I used this guide and so far no issues. I like using Docker Compose for the portability and I can backup and test different settings without having to memorize Docker commands.

One change I would make, till I can find a way to automate it, is to run the command below after you “docker-compose up -d” so you can set the Pi-Hole website admin password to something that you know.

$ docker exec pihole pihole -a -p supersecurepassword

Current stats

It actually works.

Host Migration – Done

I’ve changed my hosting provider and need to move my WordPress Blog along with it. I had a backup plugin that run a backup every night but the issue is that I was moving everything, even the domain DNS servers. The Plugin wanted $30 to do it and I figured why not do it myself.

I tried a few thing but in the end I took a backup of the MySQL db and the running WordPress config and duplicated it as close as possible on the new host. After importing the database backup and moving all the files back to their /blog folder I was able to login and see my posts. Pretty cool.

One issue I am having is on the wedding site I’m getting a theme error which I contacted the developer i purchased it from and hopefully he can fix it.


Warning: Declaration of wedding_Menu_Walker::start_el(&$output, $item, $depth, $args) should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /home/dh_t6tdrr/ on line 86

Fatal error: Switch statements may only contain one default clause in /home/dh_t6tdrr/ on line 298

Domain Deploy Ninja RMM with PSExec

Spent a few min trying to get NinjaRMM deployed in my lab so I figured I should write down what I did. Lucky its pretty easy and only requires you to do three things.

Also, this is on a Windows Domain and not Workgoup.

Make a share on the network eg. \\server1\ninja and add NinjaRMM msi to the folder. My path looks like below:


On a computer that has local admin rights to the remote computers download PSExec to a folder and make a text file called pcs.txt. In pcs.txt add the names of the computers you want to deploy to and save.

Run the command below and wait for the execution with error code 0. The error code “0” means its worked.

.\psexec.exe @pcs.txt -s msiexec.exe /i “\\air.local\air\Seattle\IT\ninja\ninja.msi” /quiet /norestart

Here is what my output looks like

Factorio Headless Server for Windows

I just spent a few minutes setting up a Factorio Headless Server on my VPS Window Server and I saw that the script on their Wiki is formatted wrong. Below is my modified version of their script. Make sure each statement is on it own line and move all the x64 binary folder to c:\factorio\0.14.22\ and run the .bat from the root of 0.14.22.

I like to launch it from the .bat [link to file] because I can track the saves easier and change the configuration quicker. You will also need to forward port 34197 to that server and any other port that your going to use.

@echo off
set FactorioExeLocation=C:\factorio\0.14.22\bin\x64\
set SaveLocation=C:\factorio\0.14.22\saves\game1-saves\
set ServerSettingsFileName=server-setting-server-1.json
set ServerSettingsLocation=C:\factorio\0.14.22\data\
cd %FactorioExeLocation% echo.
echo Save to be loaded: echo %SaveLocation%%SaveFileName%
echo. Server Settings to load: echo %ServerSettingsLocation%%ServerSettingsFileName%
echo *** Remember to use Ctrl+C to ensure saving when finished instead of simply closing this window ***
pause 3
factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%" pause 3

You should get the output similar to below.


Find an IP address of an APC PDU

I got a Switched PDU off of eBay a few weeks ago and the seller didn’t know the IP but knew the login username and password ( apc/apc ) so I challenged myself to find the IP of the device. After a few minutes of thinking about it I ended up plugging in the PDU to a managed switch and mirroring the port to my notebook. Once ARP requests came out I was able to see what IP address the MAC address of the PDU its was asking for and set my local IP to something in the range.

After I changed my IP address I pinged the address and was able to login to the PDU. I have a screenshot of the traffic below.


Let’s Encrypt on a Synology

I’ve been using Start SSL for a few years but in light of their practices and Chrome not supporting them in early 2017 I was looking for other options. Luckily Let’s Encrypt is available and pretty simple to setup.

One of the main tech that I use is my Synology and in DSM 6 they added Let’s Encrypt support. The best part? Its easy! I took a quick look at a guide and logged in to my Synology and within a few clicks my new SSL cert was added.

So easy
So easy

I’ll look in to using Let’s Encrypt for my blog and I hope there is a plugin so I can show some of my other friends that blog how easy it is to setup.

Move Hosting to a RPi

I’ve been using my website host for about 12 years now and slowly the costs have gone up. It started around 7 years ago when my yearly plan went from $40 to $60 or so. I shrugged it off and chalked it up to rising costs. When I got the bill this month I was actually shocked. It was around $100 and it made me think why am I paying for a hosting when I can  can do it myself on a Raspberry PI!

In the next few months I’ll look in to options and post the best three to hopefully get feedback on whats the best.

DIY Computers are Fun

I recently got my Samsung 950 NVMe drive back from Samsung since it developed some bad blocks. The RMA process was quick and I’m glad Samsung honors their warranty. I send them event logs saying bad blocks were found and use SpinRite for a backup visual of the bad blocks. Whilst in NVMe limbo I used my old 850 Evo and ran into a few issues with my motherboard that I figured I should write down so other people don’t have to loose a weekend like I did.

Bad Blocks are Bad.

Continue reading “DIY Computers are Fun”

PRTG Raspberry Pi and SNMP Walk in to a Bar

I’ve been toying with the idea of using a Arduino and Bluetooth to monitor temperature for random projects and general interest. A year or so ago I set one up, cobbled together rather, an Arduino to talk to Xively so I can chart my fermenting and cold crashing temperatures. It didn’t have Bluetooth but it worked for a month or two then freeze and all I would have to do is flash the Arduino with the code again and it would work. I was able to get information for my wedding beers and a few others but one of the many downfalls was the Arduino needed to plugged in to the network, no built in Wi-Fi, and like many other things once the cable is unplugged and no one notices the project goes by the wayside.


Now my curiosity is peeked again. Intel released the Edison which has dual core 500MHZ CPU, 1GB of running memory, 4GB of storage, Wi-Fi and Bluetooth 4.0. It’s also about the size of a quarter and works with a lot of the Arduino tech. Besides being insanely hard to solder the pinouts it makes for a powerful enough computer to run Linux for about $50, plus the cost of add-ons. This is where the Raspberry Pi comes in the picture. The Edison and Pi are about the same, for my use, and with some digging I found a video that someone did exactly what I wanted. Sadly he didn’t link to any code or have any more information about it but now I know it’s possible.

Intel Edison
Intel Edison

I won’t go into the details now but after two failed attempts and a week of giving up one late night I was able to get the temperature probe to return its temperature to the SNMP in the Pi and setup PRTG to query the OID so I can make the fancy graphs below. I’ll make a separate post about what I did, mainly so I remember, and my future plans.

PRTG and RPi working
Temperature in my office for the past two hours.
2 Day Chart
Temperature in my office for the past two days.
30 day chart
Temperature in my office for the past thirdly days.