Latest Kali Linux on Raspberry Pi with Touch Screen, Bluetooth and touch optimised interface (New: Bluetooth, Rogue AP, Remote access AP, more tools)

Sticky Finger's Kali-Pi
Sticky Fingers Kali-Pi – The pocket size, finger friendly, lean mean hacking machine.

Need practice targets?
Checkout Sticky Fingers DV-Pi



  1. Overview
  2. Installation

    1. Quick install using pre-configured  image

      Manual installation:

    2. Vanilla Kali with TFT Touch Screen
      1. Kali Linux
      2. TFT Touch Screen
      3. Applications
      4. House keeping
    3. Sticky Finger’s Menu & Accessories
      1. Boot into console
      2. Create low privilege user
      3. Setup FTP server
      4. SDR-Scanner
      5. Sticky Finger’s menu
      6. Enable auto logon
      7. Screenshot tool
      8. Snort
  3. Tips
  4. Discussion (new discussion forum available)



Sticky Finger's Kali-Pi Sticky Finger's Kali-Pi

Kali-Pi always returns to the touch menu after quitting an application or X.
After turning the screen off, just press anywhere to wake it back up.

Sticky Finger's Kali-Pi Sticky Finger's Kali-Pi
Sticky Finger's Kali-Pi Sticky Finger's Kali-Pi

When PulledPork is done, just tap anywhere on the screen and you’ll return to the main menu

Once the WWW-Server, MySQL server and Snort are running, we can access BASE:

Clicking “Open-VAS” starts the OpenVAS services and the Greenbone Security Assistant which we can access via web browser:

2015.11-Kali-Pi-Drone_small2Kali-Pi mounted on a TBS discovery providing aerial support during a pen test.


Quick Install:

You can follow this guide to download a pre-configured disk image and to configure it for your specific touch screen model in only a few short steps.

Or you can take the red pill and do the
Manual Installation:

Install Kali:

  1. Get kali linux for raspberry pi 3 here
  2. Image your sd card (run “sudo fdisk -l” to get device name):
    sudo dd if=kali-2.0.1-rpi2.img of=/dev/mmcblk1 bs=512k
  3. If you have an sd card larger than 8GB, this is the best time to extend the partition using gparted or fdisk (see fdisk howto). Don’t forget to run “resize2fs /dev/mmcblk0p2” on your Pi afterwards to extend the filesystem to match the new partition size.
  4. Boot the Pi, change the root password and generate new ssh keys:
    dpkg-reconfigure openssh-server
  5. update time zone via:
    dpkg-reconfigure tzdata
  6. If you want a swap file, it’s the quickest if you create it at this stage according to tip 4. (thanks to RFA in the forum for pointing this out).
  7. Update it:
    apt-get update && apt-get upgrade

    If you receive an error, you might want to try another mirror (see tip no 12)

  8. A recent Kali update introduced a bug causing the LightDM to not render properly resulting in a black screen with an arrow in the top left corner. The latest update should have fixed that but if the problem persists, we can resolve that by switching to SLiM:
    apt-get install slim

    This will install it and prompt you to select the new display manager.
    Just select “slim” and you are all set.
    Once the bug is fixed you can switch back via:

    dpkg-reconfigure slim
  9. Edit “/etc/hostname” and “/etc/hosts” if you wish to change the hostname

Voila – you are now running the latest and greatest version of Kali-Linux

Install the TFT touch screen:

      1. Assemble the screen, boot up and install the TFT enabled kernel with wifi injection patch and Re4son universal TFT setup tool.
        NOTE: You don’t have to reboot immediately. Just press “N” when prompted and continue setting up the screen

        sudo bash
        mount /dev/mmcblk0p1 /boot
        cd /usr/local/src
        wget  -O re4son_kali-pi-tft_kernel_current.tar.xz
        tar -xJf re4son_kali-pi-tft_kernel_current.tar.xz
        cd re4son_kali-pi-tft_kernel_4*

        For Raspberry Pi 3 and Pi Zero W:
        – Press “Y” when prompted to install bluetooth and wifi drivers (not required on Raspbian)
        – Say “Y” when prompted to enable bluetooth services (you can still disable them later)

      2. Run the Re4son Universal Pi-TFT Setup tool, located in the same directory as the kernel.
        It’s always a good idea to run an update first – I tend to update this tool frequently:

        ./re4son-pi-tft-setup -u

        Next you can run it for real to setup your screen (type “Y” when prompted).
        Example command to set up Adafruit PiTFT 3.5″:

        ./re4son-pi-tft-setup -t 35r -d /root

        Type “./re4son-pi-tft-setup -h” for a list of all supported displays:

        Usage: ./re4son-pi-tft-setup -t [pitfttype]
            -h            Print this help
            -v            Print version information
            -a [user]     Enable autologon for [user], 
                          use [user] 'disable' to disable autologon
            -b [bootpref] set boot preference:
                          'cli' for boot to command line
                          'gui' for boot to desktop
            -u            Update Re4son Pi-TFT Setup
            -r            Remove TFT configuration (undo setup)
            -d [dir] Specify path of user's home directory to back up and restore some files (defaults to /home/pi)
            -t [type]     Specify the type of TFT:
                          '28r'      (Adafruit 2.8" PID 1601)
                          '28c'      (Adafruit 2.8" PID 1983)
                          '35r'      (Adafruit 3.5")
                          '22'       (Adafruit 2.2")
                          'elec22'   (Elecfreak 2.2")
                          'hy28b'    (Hotmcu HY28B 2.8")
                          'jb35'     (JBTek 3.5")
                          'kum35'    (Kuman 3.5")
                          'pi70'     (Raspberry Pi 7")
                          'sain32'   (Sainsmart 3.2")
                          'sain35'   (Sainsmart 3.5")
                          'wave32'   (Waveshare 3.2")
                          'wave35'   (Waveshare 3.5")
                          'wave35o'  (Waveshare 3.5" Overclocked)
                          'wave35c'  (Waveshare 3.5<span class="pl-cce">"</span> Clone - Try this for clones when wave35 fails)
                          'wave40'   (Waveshare 4")
                          'wave50'   (Waveshare 5" HDMI)

        NOTE: The Universal TFT Setup tool does it’s best to fully configure all screens based on the manufacturers specifications but has only been tested extensively with Adafruit, Raspbery and Waveshare screens. For all other displays, you may have to edit the following files manually to tweak the settings according to your screen:
        You can use the xinput-calibrator tool in the tools directory to calibrate the touch screen if required.

      3. The default font is a bit chunky. Check out my tip at the bottom of this blog to change it to Terminus 6×12. Looks much better.
      4. reboot
        The screen should be working now.
      5. To get the internal bluetooth working, refer to this forum post

Install Applications:

      1. Install some additional packages:
        apt-get install aptitude curl cmake build-essential mailutils python-dev python-pip libusb-1.0-0-dev python-numpy htop ftp locate screen kismet pure-ftpd tightvncserver mysql-server darkstat ntopng mana-toolkit beef-xss resolvconf mitmf dns2proxy dnsmasq hostapd
      2. If you have a 16GB sd card or larger and want to have kali in all it’s glory, get yourself a coffee and install the full kali suite (Note: 16GB is very tight, better to use 32GB. Run df -h to make sure you didn’t forget to extend your file system earlier 😉 ):
        apt-get install kali-linux-full

        The installation might hang during the wvdial setup. It can happen whilst sitting on “setting up wvdial”. Just kill the “wvdialconf” process and follow this guide.

      3. If not, install only the metasploit edition:
        apt-get install metasploit-framework
      4. Disable autostart of MySQL (we’d rather start it manually when needed):
        systemctl disable mysql

House keeping items:

        • Update locate db:
        • Setup OpenVAS:
          apt-get install openvas
          mkdir -p /etc/systemd/system/greenbone-security-assistant.service.d/

          allow web access to gsa by creating the file “/etc/systemd/system/greenbone-security-assistant.service.d/local.conf” with this content

          ExecStart=/usr/sbin/gsad --foreground --listen= --port=9392 --mlisten= --mport=9390

          you can change the automatically generated admin password with the following commands:

          openvasmd --user=admin --new-password=<new password>
          history -c

          The “history -c” command clears the bash history – important after entering a password on the command line.

        • add to “/etc/kismet/kismet.conf”:

          This makes wlan1 the default capture device and all log files are being written to the ftp directory for easy remote retrieval (skip this if you are not installing the ftp server below).
          Use a kismet compatible USB dongle like the TP-Link TL-WN722N.
          To make thinks more predictable, you might want to assign wlan1 to your dongle permanently, e.g. via adding the following to “/etc/udev/rules.d/70-persistent-net.rules”:

          # USB device 0x:0x (ath9k_htc)
          SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"
        • Speed up booting without eth0 by adding to “/etc/dhcp/dhclient.conf”:
          timeout 10;



Boot into text mode

          1. Disable display manager with the Re4son Pi-TFT Setup tool :
            cd /usr/local/src/re4son_kali-pi-tft_kernel_*
            sudo ./re4son-pi-tft-setup -b cli
          2. To change it back, just run:
            cd /usr/local/src/re4son_kali-pi-tft_kernel_*
            sudo ./re4son-pi-tft-setup -b gui

Create a low privilege user

      1. Create standard user to drive the launcher, etc.:
        groupadd ftp
        adduser pi
        usermod -a -G sudo,ftp,kismet pi
      2. Adjust the user profile by adding to “/home/pi/.profile”:
        export FRAMEBUFFER=/dev/fb1
      3. remove sudo password from some standard commands by adding to sudoers via visudo (run “visudo” and insert the following line after “%sudo”):
        %pi	ALL=(ALL:ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown, /home/pi/Kali-Pi/menu

        If you have never worked with the legendary vi editor then you may be stuck here 😉
        Don’t fear, this is what you have to do:

        Navigate to the spot you would like to edit.
        Press “<ESC>” then “i” to switch to “insert mode”
        paste the above line
        Press “<ESC>” then “x” then “<ENTER>” to save the file and exit.
        If you’ve made a mistake, just press “<ESC>” then “q!” then “<ENTER>” to exit without saving, then try it again.

        Don’t forget to “man vi” and to get one of these if you want to become a hardcore unix hacker.

FTP Server

      1. Setup pure-ftpd :
        mkdir -p /home/ftp/pi/kismet
        chgrp ftp /home/ftp
        chown pi:pi -R /home/ftp/pi
        chown pi:kismet -R /home/ftp/pi/kismet
        pure-pw useradd pi -u pi -d /home/ftp/pi
        pure-pw mkdb
        cd /etc/pure-ftpd/auth
        ln -s ../conf/PureDB 60pdb
      2. If you ever want to change the ftp password, just type:
        pure-pw passwd pi
        pure-pw mkdb

Install SDR-Scanner:

      1. Login as user Pi and install the touch friendly SDR-Scanner:
        cd ~
        git clone git://
        cd rtl-sdr
        mkdir build
        cd build
        sudo make install
        sudo ldconfig
        sudo pip install pyrtlsdr
        cd ~
        git clone
        cd FreqShow
      2. To run the SDR-Scanner just type:
        python /home/pi/FreqShow/

Kali-Pi Launcher:

          Pygame is broken in Jessie because of libsdl1.2-15-10, so we remove it and install the one from from Wheezy.
        • Comment everything out in your /etc/apt/sources.list and temporarily add:
          deb wheezy main contrib non-free
        • Run the following commands:
          gpg --keyserver --recv-key 9165938D90FDDD2E
          gpg -a --export 9165938D90FDDD2E | sudo apt-key add -
          sudo apt-get update
        • Remove the offending packages and replace them with the ones from wheezy:
          sudo apt-get remove libsdl1.2debian python-pygame
          sudo apt-get install libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libsdl1.2debian libsmpeg0 python-pygame
          sudo apt-mark hold libsdl1.2debian
        • Restore /etc/apt/sources.list to it’s original state and re-run:
          sudo apt-get update
        • Install Kali-Pi Launcher:
          sudo apt-get install fbi
          sudo pip install pbkdf2 RPi.GPIO
          cd ~
          git clone
        • Adjust the menu launch script to fir your screen, enable PIN and screensaver if desired
          cd ~/Kali-Pi
          nano menu
        • Allow “Anybody” to start the X server:
          sudo dpkg-reconfigure xserver-xorg-legacy
        • Start Kali-Pi launcher after login by adding at the end of ~/.profile:
          /usr/bin/clear &
          sudo /home/pi/Kali-Pi/menu
        • Set a vnc server password for user pi:

Kali-Pi launcher will open automatically after you log in.

Start X as root (if desired):

          Out of the box, X is started as user root.

You can change that by editing /home/pi/pitftmenu/ and replacing the lines:

run_cmd("/usr/bin/sudo FRAMEBUFFER=/dev/fb1 startx")
run_cmd("/usr/bin/sudo FRAMEBUFFER=/dev/fb0 startx")


run_cmd("/usr/bin/sudo -u pi FRAMEBUFFER=/dev/fb1 startx")
run_cmd("/usr/bin/sudo -u pi FRAMEBUFFER=/dev/fb0 startx")

Enable Auto Login (if desired):

          1. Enable autologon with the Re4son Pi-TFT Setup tool :
            cd /usr/local/src/re4son_kali-pi-tft_kernel_*
            sudo ./re4son-pi-tft-setup -a pi
          2. To change it back, just run:
            cd /usr/local/src/re4son_kali-pi-tft_kernel_*
            sudo ./re4son-pi-tft-setup -a disable

            Reboot and enjoy.

Optionally: Install screenshot tool

      1. Login as user pi, go to terminal and install zlib:
        cd ~
        tar -xzf zlib-1.2.11.tar.gz
        cd zlib-1.2.11
        make test
        sudo make install
      2. Install libpng:
        cd ~
        tar -xf libpng-1.6.18.tar.xz
        cd libpng-1.6.18
        make check
        sudo make install
        sudo ldconfig
      3. Install fbgrab:
        cd /opt
        sudo wget
        sudo tar -zxvf fbgrab*gz
        sudo mv fbgrab-1.3 fbgrab
        cd fbgrab
        sudo make
        sudo ln -s /opt/fbgrab/fbgrab /usr/bin/fbgrab
      4. To take a screenshot and save the picture in the ftp directory, simply type (as root):
        fbgrab -d /dev/fb1 /home/ftp/pi/screenshot.png


          1. Don’t use Sandisk Extreme Pro micro SD cards -they don’t work well with kali
          2. I use Sandisk Extreme 32GB and Sandisk Extreme 32GB Plus and my Kali-Pi’s are lightning fast
          3. If you use the PiTFT screen with Vanilla Kali, you can output the GUI via HDMI by entering:
            mv /etc/X11/xorg.conf.d/99-fbdev.conf ~

            Reboot and you’ll have X on your big screen
            To switch back, just copy the file across again:

            cp ~/99-fbdev.conf /etc/X11/xorg.conf.d/
          4. Swap – Swap space on flash memory is a religious topic.
            I don’t want to get into that discussion. I use swap because I’ve got plenty of sd cards to burn but not enough memory in my Pi ;-)This is how you can enable it:

            sudo dd if=/dev/zero of=/swapfile.img bs=1M count=1024
            sudo mkswap /swapfile.img
            chmod 0600 /swapfile.img
            sudo swapon /swapfile.img

            add this at the end of /etc/fstab

            /swapfile.img none swap sw 0 0
          5. is not very reliable. Try this mirror instead when downgrading packages:
            deb wheezy main contrib non-free
          6. Persistent interfaces (was fixed in kali the last time I looked) – To avoid having persistent interface names and revert back to the classic interface naming convention (wlan0, eth0, etc.), simply add to the 1st command line in the file /boot/cmdline.txt the following keywords:
            net.ifnames=0 biosdevname=0

            Don’t forget to mount /boot first via:

            sudo mount /dev/mmcblk0p1 /boot
          7. OpenVAS interface choice
            Don’t run an OpenVAS scan via the internal WiFi interface. I would always run my scans via eth0.
            If you have both interfaces connected, specify “Network Source Interface: eth0” in the “task” settings.
          8. Raspberry Pi 3 WiFi drop outs
            Turn off power saving for the internal wifi card.
            Check the status via:

            sudo iwconfig

            to turn off power saving permanently, add the following lines to “/etc/rc.local”

            ## Fix WiFi drop out issues
            iwconfig wlan0 power off

            reboot and confirm via “sudo iwconfig” that it worked.

          9. The Kali menu items are missing because of a .png extension bug in the desktop configuration. We’ll fix that by removing that extension in all files via:
            cd /usr/share/desktop-directories/
            sed -i 's/trans.png/trans/g' *.directory
          10. The default console font looks too chunky on a small screen. I suggest running
            sudo dpkg-reconfigure console-setup

            And select UTF-8 -> Guess optimal character set -> Terminus -> 6×12 (framebuffer only)

          11. To enable the on-screen keyboard in the greeter/login screen, add to /etc/lightdm/lightdm-gtk-greeter.conf
            keyboard=florence --focus

            This will add an “On Screen Keyboard” entry to the indicator menu:


          12. The repository ‘ kali-rolling Release’ does not have a Release file.
            When getting this error during an “apt-get update”, try another mirror from this list:
            The following entry in “/etc/apt/sources.list” usually works for me:

            deb kali-rolling main non-free contrib
            deb-src kali-rolling main non-free contrib
          13. Expanding partition to fill SDCard
            The main partition can be extended to use larger cards in either a different linux system using GParted or in the Raspberry Pi itself whilst the partition is mounted. To do the later you can use fdisk:

            sudo fdisk /dev/mmcblk0
            Command (m for help): p
            Device Boot Start End Sectors Size Id Type
            /dev/mmcblk0p1 1 125000 125000 61M c W95 FAT32 (LBA)
            <em><strong>/dev/mmcblk0p2</strong></em> <strong><em>125001</em></strong> 15523839 15398839 7.4G 83 Linux

            This will give you the start of the old partition (e.g. “mmcblk0p2 125001”)

            Command (m for help): d
            Partition number (1,2, default 2): 2
            Command (m for help): n
            Select (default p): p
            Partition number (2-4, default 2): 2
            First sector (125001-31116287, default 126976): 125001 
            Last sector, +sectors or +size{K,M,G,T,P} (125001-31116287, default 31116287):
            Do you want to remove the signature? [Y]es/[N]o: N
            Command (m for help): w

            Reboot and use resize2fs to extend the filesystem

            sudo resize2fs /dev/mmcblk0p2


For those who would like to see the drone in action, following this link.

Comments, suggestions and help is very much appreciated. You can e-mail me on < re4son [at] >

Please use the discussion forums for discussions:

the comments section got a bit too long and has been transferred.


Sticky Finger’s Kali-Pi – Configuration of Snort

The Sticky Fingers Kali-Pi installation walk through did not include any detailed information about the configuration of Snort, Barnyard2 and PulledPork on the Raspberry Pi 2 running Kali.

Here are my configuration notes.


sudo bash
apt-get -y install apache2 apache2-doc autoconf automake bison ca-certificates ethtool flex g++ gcc libapache2-mod-php5 libcrypt-ssleay-perl libmysqlclient-dev libnet1 libnet1-dev libpcre3 libpcre3-dev libpcap-dev libphp-adodb libssl-dev libtool libwww-perl make mysql-client mysql-common mysql-server php5-cli php5-gd php5-mysql php-pear sysstat
cd /usr/local/src
tar xvfvz libdnet-1.12.tgz
cd libdnet-1.12
./configure "CFLAGS=-fPIC"
make && make install && make check
ln -s /usr/local/lib/libdnet.1.0.1 /usr/lib/libdnet.1

cd /usr/local/src
tar xvfz daq-2.0.6.tar.gz
cd daq-2.0.6
make && make install

cd /usr/local/src && wget --no-check-certificate -O snort.conf
tar xvfz snort-
cd snort-
./configure --enable-sourcefire; make; sudo make install

mkdir /usr/local/etc/snort /usr/local/etc/snort/rules /var/log/snort /var/log/barnyard2 /usr/local/lib/snort_dynamicrules
touch /usr/local/etc/snort/rules/white_list.rules /usr/local/etc/snort/rules/black_list.rules /usr/local/etc/snort/

groupadd snort && useradd -g snort snort

cp /usr/local/src/snort-*.conf* /usr/local/etc/snort
cp /usr/local/src/snort-*.map /usr/local/etc/snort
cp /usr/local/src/snort.conf /usr/local/etc/snort
mkdir /var/log/snort
chown snort:snort /var/log/snort
nano /usr/local/etc/snort/snort.conf


var RULE_PATH ../rules
var SO_RULE_PATH ../so_rules
var PREPROC_RULE_PATH ../preproc_rules
var WHITE_LIST_PATH ../rules
var BLACK_LIST_PATH ../rules


var RULE_PATH rules
var SO_RULE_PATH so_rules
var PREPROC_RULE_PATH preproc_rules

delete or comment out all of the “include $RULE_PATH” lines except “local.rules”

vi /usr/local/etc/snort/rules/local.rules

Enter a simple rule like this for testing:

alert icmp any any -> $HOME_NET any (msg:"ICMP test"; sid:10000001; rev:1;)

Now we can start and test snort.

/usr/local/bin/snort -A console -q -u snort -g snort -c /usr/local/etc/snort/snort.conf -i eth0

Ping the management IP address from another machine, alerts should be printed to the console like this:
02/09-11:29:43.450236 [**] [1:10000001:0] ICMP test [**] [Priority: 0] {ICMP} ->
02/09-11:29:43.450251 [**] [1:10000001:0] ICMP test [**] [Priority: 0] {ICMP} ->

Install & configure Barnyard2:

cd /usr/local/src && wget
tar -zxf master.tar.gz && cd barnyard2-*
autoreconf -fvi -I ./m4 && ./configure --with-mysql --with-mysql-libraries=/usr/lib/arm-linux-gnueabihf/ && make && make install
mv /usr/local/etc/barnyard2.conf /usr/local/etc/snort
cp schemas/create_mysql /usr/local/src
nano /usr/local/etc/snort/barnyard2.conf

Line #27 change to /usr/local/etc/snort/reference.config
Line #28 change to /usr/local/etc/snort/classification.config
Line #29 change to /usr/local/etc/snort/
Line #30 change to /usr/local/etc/snort/
Line #227 change to output alert_fast
At the end of the file add this line:

output database: log, mysql, user=snort password=<mypassword> dbname=snort host=localhost

Setup the MySQL server

service mysqld start
mysql -u root -p

Type in the root password

In the mysql console (pick a password as ‘mypassword’ that is different from root password):

create database snort;
grant CREATE, INSERT, SELECT, DELETE, UPDATE on snort.* to snort@localhost;
SET PASSWORD FOR snort@localhost=PASSWORD('mypassword');
use snort;
source /usr/local/src/create_mysql

List the newly created tables:

show tables;

Exit the mysql console



/usr/local/bin/snort -q -u snort -g snort -c /usr/local/etc/snort/snort.conf -i eth0 &
/usr/local/bin/barnyard2 -c /usr/local/etc/snort/barnyard2.conf -d /var/log/snort -f snort.log -w /usr/local/etc/snort/bylog.waldo -C /usr/local/etc/snort/classification.config &


cd /usr/local/src
git clone
cd pulledpork
cp /usr/local/bin && cp etc/*.conf /usr/local/etc/snort

To use the Sourcefire VRT Certified Rules, go to, register for an account and get an “oinkcode”, this will allow you to download their Registered User rule set.

edit “/usr/local/etc/snort/pulledpork.conf”:
Line 19: enter your “oinkcode” where appropriate or comment out the line
Line 26: enter your “oinkcode” where appropriate or comment out the line
Line 133: change to: distro=Debian-6-0

chmod +x /usr/local/bin/

mkdir /usr/local/etc/snort/rules/iplists

To run:
/usr/local/bin/ -c /usr/local/etc/snort/pulledpork.conf -T -l


cd /usr/local/src && sudo wget
sudo tar -zxf base-1.4.5.tar.gz && sudo cp -r base-1.4.5 /var/www/base
sudo chown www-data:www-data /var/www/base
sudo cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-enabled/

Add virtual directory “base” aka “/var/www/base/” to “/etc/apache2/sites-enabled/default-ssl.conf”

Alias /base "/var/www/base/"
<Directory "/var/www/base/">
  DirectoryIndex index.php

Change line #449 in “/etc/php5/apache2/php.ini” to read:

error_reporting = E_ALL & ~E_NOTICE

Enable SSL

sudo a2enmod ssl
sudo pear config-set preferred_state alpha && pear channel-update
sudo pear install --alldeps --force Image_Color2 Image_Canvas Image_Graph
sudo service apache2 restart
sudo perl -MCPAN -e 'install  Geography::Countries'
perl -MCPAN -e 'install  IP::Country'
cd /usr/share/php/Image/Graph/Images/Maps
cp /var/www/base/world_map6.* .

Start mysql server and apache2 server

Open “https://[ip-address]/base” in your favorite browser and follow steps to configure:
Click Continue, choose English
Path to adodb: /usr/share/php/adodb
Click Continue
Database Name: snort
Database Host: localhost
Database Port: [leave blank]
Database User Name: snort
Database Password:

Create admin user

Click “create baseag” which extends the DB to support BASE.

nano /var/www/base/base_conf.php
Enforce authentication
$Use_Auth_System = 1;

Towards the end, find the line:
//$IP2CC = “/usr/bin/ip2cc”;
Add instead:
$IP2CC = “/usr/local/bin/ip2cc”;

Fix the fonts:

ln -s /usr/share/fonts/truetype/dejavu /usr/share/php/Image/Canvas/Fonts

The following document from Jason Weir helped me a lot:

As always, please give me feedback in the forums so I can improve on this.

Many thanks,