Category Archives: Raspberry Pi

Howto setup Rasbian Buster with BATMAN Mesh networking | raspberry pi 3 rasbian mesh batman network

I wrote this article a while ago about setting up BATMAN mesh networking with Rasbian Jesse on a Raspberry Pi 3.

This worked well, but stopped working with the newer versions of Rasbian, since there have been changes to the operating system.

After testing for several days, I found adding one command into the original script gets it to work just fine.

How to below.

After a fresh install of Rasbian Buster, connect to the system via ssh and run the following command to install BATMAN.

Lets create the mesh startup script.

The script will contain the instructions for bring up the interfaces and get  mesh, just change the IP address at the bottom on the next hosts, increment by one. Copy and past the following into the mesh.sh file.

Now let make the script executable.

And add to crontab so that its executed at every reboot

Add the following

Reboot and mesh should be up and running.

Test by executing the following command.

Should see something like this.

 

Raspberry Pi 3 error IPTables | Raspberry pi error – iptables v1.4.21: can’t initialize iptables table `nat’: Table does not exist (do you need to insmod?)

Was building a RPi3 machine and got the following error after an update.

Turns out nothing to worry about, just reboot the Pi.

Raspberry Pi 3 A+ VS 3 B+ | compare the raspberry pi 3 a + to the 3 B +

The new Raspberry Pi 3 A+ was just released, basically its a cut down version of the 3 B+.

Here is a comparison between the two.

 

  RPi3A+ RPi3B+ Difference
CPU BCM2837B0 1.4GHz BCM2837B0 1.4GHz Same
Memory 512MB 1GB -512MB
Network Wifi, Bluetooth Ethernet, Wifi, Bluetooth -Ethernet
Size 65mm x 56mm 85mm X 56mm -20mm Shorter
USB Ports 4 1 -3

 

Dump1090 to MySQL Script | send flight data from dump1090 to mysql

I wanted a script which would read all the live dump1090 aircraft data and log it to a mysql database.

This base script does it, it will dump all the data to Mysql every minute.

It will start the dump1090 server and kick off a process which reads/sorts and inserts.

 

Having your Linux system email you! | How to write a script which emails you

Quite often you need to write scripts which need to email you urgent information, there is a very simply way to do this.

First we need to install an email server to transmit the emails.

Then insert the following into your script.

In the above example it will email a copy of your local host file, change be change for any file you want transmitted.

See this script for a working example.

Visibility when your IP changes and is updated by no-ip | email notification when ip changes home adsl nbn bash script

My new internet connection with NBN changes the IP on a regular basis, but I wanted visibility as to how often.

So I’ve written a bash script which records your IP and date, once it changes it records your new IP and sends you an email to notify you of the new change.

This is completed by querying your no-ip dns record.

Usage

 

Cron Entry. (runs every hour)

 

 

SD Card review on the Raspberry Pi | Improving the raspberry pis performance with different storage cd card

I was running Nextcloud on a Raspberry Pi zero w, the performance is not there.

I ran top to determine the IO Wait times, it was high. High enough that the performance would be impacted.

I ran a test on two different cards.

The is a Sandisk Ultra 16gb ($9) and the Sandisk Extreme Pro 128gb ($120), looks like the price does not improve performance on the raspberry pi Zero. I will write another article when I test the latest Raspberry Pi and see if the results change.

Sandisk Ultra

Sandisk Extreme Pro

 

Encrypting your home area for backup with Openssl | using openssl to encrypte and automate your backups to fileserver

Im currently running a Linux desktop, the other day the disk become corrupt and I lost my home area. Not a big problem as I dont store much data, but I lost all my ssh keys, configs etc. It took a few days to recover.

In an effort to stop that from happening again I want to backup all my data to the company file server, but I dont want them to have access to my keys and configs ect.

So I have scripted a backup which will encrypt on the fly. Through it into cron and you have a daily backup.

This is the command you run to create backup, notice the password is in the command. This is allow for automated backups using Cron.

And the following command is to run a restore, once executed you will be prompted for the password.

 

 

How to mount NFS in a Docker Ubuntu container | mounting nfs shares in docker containers

I had problems mounting NFS shares in my docker container, error would appear with permissions denied. This is the fix which worked for me.

Inside the container execute the following.

on the host execute the following to mount the share.