## Installing latest Node.js on Raspberry Pi B+

So, I've been battling with updating my node.js via apt-get, for some apparent reason seems like they've discontinued updates or maybe I've been doing it wrong all along - who knows. But I found a way to bypass apt-get and go back to the basics. Note: This assumes that the latest release is node-v7.4.0, else you can go to https://nodejs.org/dist/latest and get the required build. This assumes the Raspberry Pi... [Read More]

## Bachelor's project demo

https://www.youtube.com/playlist?list=PL_VWrf_GRsBxr38XZuRrFHBBI3EpLQJ29 So after completing my diploma, and it becoming redundant in the working industry. I had to set my eyes on a Bachelor's degree. Trust me it was not easy, in the sense of being a part-time student, full-time employee, a father, a fiance and being stuck on some island for 15 months then when you come back you're residing in Cape Town and the university in Pretoria. I think... [Read More]

## Ubuntu media server WakeOnLan

I have always been conservative when it comes to saving electricity in my household not because I want to but because 1 kWh costs me R1.87, hence I had to think of a better solution rather than running my server 24 hours per day with an average load wattage of 532W, if one does the maths it costs me roughly R23.87 per day when always on. So not cool, hence why I... [Read More]

## Move files by date into different directory using CLI

A while back I was unfortunate in such a way that my HDD that I primarily use as photo archive started having mechanical issues, and before It died on my arms I had the opportunity to backup most of my pictures, however most of them were truncated and had to be discarded and the ones I could recover their filenames where overwritten with random filenames and ascii codes. For over... [Read More]
Tags: Bash linux ubuntu

## Raspberry PI Swap partition

To resize swap partition: sudo nano /etc/dphys-swapfile sudo dphys-swapfile setup sudo dphys-swapfile swapon To check the current swap status: swapon -s To turn off all swap: sudo swapoff -a To turn on swap as defined in /etc/fstab: sudo swapon -a To turn on swap, using a specified file: sudo swapon /var/swap

## Replacing A Failed Hard Drive In A Software RAID1 Array

Credit goes to Author:falko Replacing A Failed Hard Drive In A Software RAID1 Array. This guide shows how to remove a failed hard drive from a Linux RAID1 array (software RAID), and how to add a new hard disk to the RAID1 array without losing data. NOTE: There is a new version of this tutorial available that uses gdisk instead of sfdisk to support GPT partitions. 1 Preliminary Note In this example I... [Read More]

## Cool Bash Tricks

Create ~/.inputrc and fill it with this: "\e[A": history-search-backward "\e[B": history-search-forward This allows you to search through your history using the up and down arrows … i.e. type "cd" and press the up arrow and you'll search through everything in your history that starts with "cd". It's a little bit like ctrl-r (mentioned in many of the comments below), but anchored to the start of the line, and the arrow... [Read More]

## RPi What's My IP

Do you know what really grinds my gears. Having to boot Raspberry Pi with a new image on and no HDTV to configure and find the IP in order to ssh to it, and have fun with it. Grrrrrrrrr... That's when I decided why not create a script, that when the pi boots up it sends me the internal and external IP addresses... Clever right. [sourcecode language="bash"] gedit whats_my_ip.py [/sourcecode]... [Read More]