Geoip, IPtables and Xtables v3.13 on uBuntu 20.04LTS

I still have a num­ber of places where I use geolo­ca­tion with ipt­a­bles on 20.04LTS.

One of the chal­lenges of 20.04LTS is keep­ing xta­bles up to date.

I do this by cus­tom com­pil­ing the xta­bles from source as required (such as after a ker­nel upgrade).  Here is a quick snip­pet on how I do this (sor­ry this is not a full arti­cle at this time).

Remove the default repos­i­to­ry ver­sion of xta­bles and install depen­den­cies for cus­tom compile.

$ dpkg --get-selections | grep xtables
$ lsmod | grep geo
$ sudo apt purge xtables-addons-common xtables-addons-dkms xtables-addons-source
$ sudo apt autoremove
$ sudo apt install git build-essential autoconf make libtool libxtables-dev libip6tc-dev libip4tc-dev libxtables-dev pkg-config libnet-cidr-lite-perl libtext-csv-xs-perl

Clone the source and compile

$ cd ~
$ git clone xtables-addons-xtables-addons
$ cd xtables-addons-xtables-addons
$ ./
$ ./configure
$ make
$ sudo make install
$ sudo depmod -a
$ sudo modprobe xt_geoip
$ lsmod | grep geoip

Add to dynam­ic ker­nel modules

$ sudo nano -w /etc/modules-load.d/modules.conf

Run your script for your coun­try IP codes from Max­mind, DBIP, etc.

Orig­i­nal­ly Post­ed: Jan­u­ary 12, 2021
Updat­ed: Octo­ber 3, 2021

| Arti­cle post­ed in: Bit­stream || Tagged as: , , |

Geotagr — iOS

Orig­i­nal­ly Post­ed: Octo­ber 10, 2014
Updat­ed: Sep­tem­ber 24, 2021


Geo­t­a­gr is a great appli­ca­tion for iOS that allows you to uti­lize the built in GPS func­tion­al­i­ty of your iPhone; enabling log­ging, track­ing and tag­ging of GPS data for your photos.

What I par­tic­u­lar­ly like about this tool and why I have per­son­al­ly added it to my tool­box is the abil­i­ty to export GPX style datasets which can be then uti­lized by a myr­i­ad of oth­er appli­ca­tions.  One such option is to uti­lize this data with Light­room to GPS tag pho­tos tak­en with non GPS enabled cam­eras such as my EOS-1’s.

It also allows you to visu­al­ize your track and trav­els with plu­g­ins such as WP-GPX-Maps to over­lay the data with Google Maps.  For exam­ple, on a recent trip this sum­mer to Man­i­to­ba to vis­it extend­ed fam­i­ly, I logged a dri­ve one day from Win­nipeg to Lake Man­i­to­ba, back to Lake Win­nipeg and ulti­mate­ly back to Win­nipeg itself.

The exam­ple above shows a brief exam­ple of how the data can be uti­lized for oth­er pur­pos­es than geo­t­ag­ging pho­tos.  This par­tic­u­lar trip I did not take much in the way of imagery rather this is more of a way to remem­ber the trip in the fam­i­ly scrapbook.

What I find extreme­ly inter­est­ing is the actu­al appli­ca­tion of this toolset for visu­al­iz­ing the ele­va­tion along side of the actu­al dis­tance and route tak­en.  I almost nev­er use my Garmin GPS units any more how­ev­er I always have my iPhone with me.

The downside…

This tool is con­stant­ly on and it con­sumes a great deal of bat­tery pow­er, enough that it tears down any endurance my iPhone 5S would nor­mal­ly have, thus an exter­nal pow­er source is an absolute requirement.

Oth­er links:

| Arti­cle post­ed in: Bit­stream || Tagged as: , , |

abcde — A Better CD Encoder, still rocks the audio world

Orig­i­nal­ly Post­ed: Octo­ber 21, 2011
Updat­ed: Octo­ber 21, 2021

I have always been an audio­phile, not because of the love for tech­nol­o­gy or the chase of puri­ty of sound.

Instead, I love music to the point where it needs to sound nat­ur­al, com­plete and trans­par­ent to the point that you are enjoy­ing the audio work and not wor­ry­ing about “how good” the gear sounds.

While I have gen­er­al­ly pre­ferred to obtain my music in the more tan­gi­ble for­mats such as CD, SACD, and Vinyl I have been work­ing to con­vert my audio to dig­i­tal for­mat for porta­bil­i­ty. I pre­fer FLAC and OGG Vor­bis over MP3 or AAC and ABCDE is the per­fect tool to rip and encode my disks con­sis­tent­ly and efficiently.

I have attached my abcde.conf file for ref­er­ence for those who need a ref­er­ence con­fig­u­ra­tion file for high-qual­i­ty FLAC and OGG, if you un-com­ment the MP3 line, this con­fig­u­ra­tion file will also gen­er­ate MP3 files along side.

If you would like to see the full file with com­ments, its avail­able here abcde.conf with comments

This file con­tains bidi­rec­tion­al Uni­code text that may be inter­pret­ed or com­piled dif­fer­ent­ly than what appears below. To review, open the file in an edi­tor that reveals hid­den Uni­code characters.
Learn more about bidi­rec­tion­al Uni­code characters

# abcde.conf
# — don’t keep the source .wav files once done
# — set applications
# — define options
FLACOPTS=”-8 ‑f –replay-gain”
# — define the actions
# — define the locations
# define the types to create
view raw


host­ed with ❤ by GitHub

| Arti­cle post­ed in: Bit­stream || Tagged as: , , , , |