Sep 272017
 

I wrote a little snippet to update my PXE server’s Debian netboot image so I can schedule this to run every month or so to ensure that my Netboot image is up to date.

The variables are to set the Debian mirror, architecture, and paths and filenames for the downloaded image file, and where the image file should be un-tarred to.
I have architecture in there because I had some old machines which require i386 kernels. If you don’t need i386, then you can replace all the arch variables and hardcode amd64 instead.

#!/bin/bash
debmirror=http://mirror.internode.on.net/pub/debian
arch=amd64
tmpfile=/tmp/$arch-netboot.tar.gz
tftppath=/srv/tftp/deb-stable/$arch
wget $debmirror/dists/stable/main/installer-$arch/current/images/netboot/netboot.tar.gz -O $tmppath
tar -C $tftppath -xzf $tmpfile ./debian-installer/amd64/initrd.gz ./debian-installer/amd64/linux --strip-components=3

Share
Mar 022017
 

I was poking around in a Swann NVR to see whether I could customise it to suit my needs a bit better.
The NVR was easy enough to pull apart with only 5 screws on the outside holding the case on.
Continue reading »

Share
Dec 092016
 

I’ve had my Toshiba Satellite L750D laptop for quite a few years and when I first had it, the battery would show up in the battery meter in Ubuntu. Over the years and after a few Ubuntu upgrades, the battery just disappeared. The system wouldn’t detect the battery at all anymore. I tried all sorts of things to get it to discover the battery, reinserting, restarting, reinstalling, re-everything-else too, but it just wouldn’t show up.
Continue reading »

Share
Nov 102016
 

I finally set up my NodePhone service on my FreePBX/Asterisk server after telling myself to do it for a while.
There wasn’t a lot of concrete information out there but through lots of Googling I figured out enough to set it up via the Web GUI.

The following settings are the ones I used to set up the trunk –

Trunk Name: Internode
Outbound Caller ID: Your Internode DID Number

Everything between Outbound CallerID and the Outgoing Settings can be left as default.

Under Outgoing Settings, I’ve used the following settings, however since my Asterisk server is behind a NAT, I’ve set nat=yes on both Peer details and User Details. If your Asterisk server isn’t behind a NAT, you shouldn’t need those settings.


Trunk Name: nodephone

PEER Details
context=from-trunk
type=peer
username=[YOUR NUMBER]
fromuser=[YOUR NUMBER]
secret=[YOUR SECRET]
fromdomain=sip.internode.on.net
host=sip.internode.on.net
dtmfmode=rfc2833
disallow=all
allow=alaw&ulaw
nat=yes
insecure=very

For Incoming settings:

User Context: [YOUR NUMBER]

User Details:
context=from-trunk
host=sip.internode.on.net
secret=[YOUR SECRET]
type=peer
username=[YOUR NUMBER]
insecure=invite
nat=yes

For the Registration:
Register String: [YOUR NUMBER]:[YOUR PASSWORD]@sip.internode.on.net/[YOUR NUMBER]

These settings should get your trunk up and running.

Share
Oct 242016
 

A while ago, I setup my Motion server to send me snapshots of any motion detected when a picture is saved by motion.
Continue reading »

Share