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
Oct 042016
 

I had a RAID6 array die on my recently so I wanted to start running SMART tests across all the drives that were in the RAID6 array.
This was easy for me as the RAID drives were all Seagates, so I used the following snippet to do it:


for x in /dev/sd?; do
output=$(smartctl -i $x);
if [[ $output =~ 'Seagate' ]]; then
smartctl -t long $x;
fi;
done

The snippet above checks the SMART information for the string ‘Seagate’, and if it finds it, then starts the SMART test via smartctl.

Then to monitor the progress of the SMART tests, I used the following snippet:

while true; do
clear
for x in $(
for x in /dev/sd?; do
output=$(smartctl -i $x);
if [[ $output =~ 'Seagate' ]]; then
echo $x;
fi;
done); do
echo $x
smartctl -l selftest $x
done
sleep 10
done

This snippet has a nested for statement so that it only shows the self test logs for the drives that are Seagates.

Share