Enable HTTPS on influxdb for debian

To enable HTTPS on influxdb for debian do the following.

Get a certificate. Easy way is to let debian do it for you. The ssl-cert package will generate a self signed cert.

Now pipe the key and pem to somewhere influxdb can get to it. 

Then turn on https in your /etc/influxdb/influxdb.conf and point to your new pem.

Start up influxdb and you’re done.


Bash: Run command if exists, else echo blank

Useful if you want to only output something if a command exists.

For example, I use this on my Proxmox hypervisors with ZFS to get status. Not all my hypervisors have zfs arrays. Makes it easy to blanket ssh to all hypervisors and get zfs status if it exists. For a custom status page I wrote.


Proxmox and Quagga and OSPF

A few quick notes on getting Proxmox running with Quagga routers so they can serve up OSPF routes. I did this with Proxmox 3.1-3 and Quagga

  1. apt-get update
  2. apt-get install quagga
  3.  vi /etc/quagga/daemons
    • turn on zebra and ospfd
  4. cp /usr/share/doc/quagga/examples/vtysh.conf.sample /etc/quagga/vtysh.conf
  5. cp /usr/share/doc/quagga/examples/ospfd.conf.sample /etc/quagga/ospfd.conf
  6. cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
  7. modify above conf files if you want (can leave default)
  8. turn off annoying splash screens in vtysh
    • vi /etc/bash.bashrc
    • export VTYSH_PAGER=more
    • source /etc/bash.bashrc
  9. service quagga restart
  10. vtysh
  11. configure terminal
  12. router ospf
  13. set the ospf id name. Usually set to this machine’s IP (replace <MACHINE_IP> below)
    • router-id <MACHINE_IP>
    • eg router-id
  14. specify networks to route and for what ospf area
    • network <IP>/<CIDR> area <AREA>
    • eg. network area 1
  15. end
  16. copy running-config startup-config
  17. now start watching show ip route for the routes to show up from other ospf routers with an O in the front.
    • can also look at show ip ospf neighbor to see your ospf neighbors.

Change terminal backgrounds to identify

If you’re like me and start forgetting which terminal is which, try changing their background so it’s easier to tell. Most modern terminals can do this out of the box. In putty (and KiTTY) it’s a simple as: Screenshot_031415_095752_PM

I like to do this on terminals that have critical connections up (like a primary router). So I don’t accidentally type something wrong in there… 🙂

Fish shell and Putty

If you run into some weird characters while using Fish shell from Putty, try changing Putty’s remote character set to UTF-8:

Right Click Putty -> Change Settings -> Window -> Translation -> Remote Character Set -> UTF-8.

Before and after:

And if your Home and End keys don’t work, try putting this into your config.fish file .



dnsmasq DNS server and multiple subnets

If you run into a problem where your dnsmasq DNS server is not responding to dns queries from separate subnets than the DNS server’s subnet, try setting the listen-address to the DNS server’s IP (e.g. where you’re running dnsmasq).

On the Ubiquiti EdgeRouter Lite (which is based on mips Debian wheezy) the file to change is:

(make it if it doesn’t exist)

add this to that file:

Where <DNS-SERVER-IP> is the IP of your machine that’s running dnsmasq.

If you’re running dnsmasq from the command line, without using the conf files, add this parameter

EdgeRouter Lite Performance Tests

Starting with two laptops connected to one ERL each. ERLs both running 1.5.0.

Laptop A <-> ERL <-> ERL <-> Laptop B <-> <-> <->


I’m using OSPF to expose these two networks to each other for this test. See EdgeRouter Lite Simple OSPF Guide

iperf results from one laptop to the other:

 Near wire. Great!

 Next we’ll remove the OSPF routing and setup an IPSec tunnel between the two an retest.

I used the GUI’s IPSec site-to-site feature to set this up. Here’s what it generated:

And the results with IPSec hardware offload disabled.

And with IPSec hardware offload enabled.

Not bad!

However, even with IPSec enabled, load average increases a good bit when pushing max data through the IPSec VPN

Compared to without pushing data

While this didn’t seem to affect the usage of the router, it is a little worrying. I don’t have any firewalls or other services enabled on the router. What happens when we take this into the real world? It’s worth noting that this is a dual core router, so really that’s only 1/4 of total processing power.

EdgeRouter Lite Simple OSPF Guide

Here’s a really simple OSPF setup on two Ubiquiti Edge Router Lites.

Two ERLs hooked together via eth0.

ERL20 <-> ERL10 <->


on ERL20 get into configure and run the following:

on ERL10 get into configure and run the following.

run ‘commit’ on both them, (‘save’ if you want to) and ‘exit’ to prompt.

Now watch ospf work it’s magic.

Now you should have routes


Swann HD-820CAM

I picked up a Swann HD-820CAM (NHD-820)

SWANN SWNHD-820CAM-US 1080p HD Network Security Camera for Swann’s 1080p NVRs

Manufacturer Link: http://www.swann.com/us/swnhd-820cam

You don’t need a Swann receiver to use it.

Plug it into a switch that supports PoE. I’m using this one and can confirm it will run the IP Camera:

TP-LINK TL-SF1008P 10/100Mbps 8-Port PoE Switch, 4 POE ports, IEEE 802.3af, 53W

Set your computer to an IP in (i.e. and go to in your browser. That’s the default IP of the camera.
Username is admin
Password is 12345

You can change it’s IP in the web management to whatever you want.

To stream via VLC use RTSP:

Media->Open Network Stream
type in one of the following:

Main (1st) Stream (720p or 1080p)

Sub (2nd) Stream (240p or 480p)

I can also confirm that Wowza Streaming Engine will read in the RTSP streams above and properly converts them to RTMP (which is what Flash requires).

Here’s all the screens in the web management:

Dell Vostro 3560: Removing Base Cover

Removing the Base Cover on the Dell Vostro 3560 is quite tricky.

Here’s what the manual says to do:



Seems easy enough. In actuality it’s much harder. The cover won’t slide. You have to work your way around the edges with a small screw driver. Be very careful since the base cover is plastic.

Your goal is to get each one of these plastic lips out.



There are 13 of them as seen below.


Another view of these annoying little bastards.



Here’s what the 3560 looks like with the base cover removed.



Good luck!