Home » Linux » War Pi 2.0 – Raspberry Pi 3 Entire Setup

War Pi 2.0 – Raspberry Pi 3 Entire Setup

War Pi
Raspberry Pi 3 Image.

Setting up a Raspberry Pi 3 ModelB as a War Pi is not much difficult.

After reading this, you’ll be able to know every step with details.

Therefore, you will face no issues doing your work.

Team CSHAWK wishes you good luck for your further journey. KEEP SMILING!

Major Requirements For War Pi:

  1. Raspberry Pi 3 MODEL B.
  2. MicroSD Card 8GB minimum.
  3. Internet Access obviously.
  4. Power Supply.

Setup War Pi:

Setting up War Pi is a bit difficult if you didn’t follow our tutorial. Let’s Begin,

Install the Dependencies: Run the commandraspi-confiDetermine the IP address that you wanna use.

Make sure it doesn’t essentially conflict with other important static IPs.

  • Now you need to add some codes to this file, Just add these:

interface eth0

static ip_address=
static routers=
static domain_name_servers=

  • After doing it you can go for a normal reboot. Therefore, after doing it just update using the command:

sudo apt-get update

sudo apt-get upgrade

  • Install Kismet Dependencies using:

sudo apt-get install gpsd
sudo apt-get install libncurses5 libncurses5-dev
sudo apt-get install libnl1 libnl-dev
sudo apt-get install libpcap-dev libpcap0.8 libpcap0.8-dev

Downloading Kismet For War pi:

For downloading Kismet.

You need to download the latest packages from the official website of Kismet.

For doing that you can just use the following command:

wget https://www.kismetwireless.net/code/kismet-2016-07-R1.tar.xz

Files are now successfully downloaded.

Therefore, you now need to extract it.

To extract just navigate the file and open it like a folder.

You will simply get the option to unzip/extract it.

Now Open The Directory that was Extracted:

sudo tar –xf kismet-2016-07-R1.tar.xz
cd kismet-2016-07-R1/

Installing Kismet

If you are a bit familiar with normal Linux installation. Then you can simply install it. But if you are not. Then just copy the commands below.

$sudo ./configure
$sudo make dep
$sudo make
$sudo make install

Configure The Kismet – War Pi

This is the most difficult task to do as it is much complex.

Make sure not to make any mistake or entire hard work will become crap in a second or two.

All the configuration that we are gonna will be in “kismet.conf” file only.

You can find the file exactly in “/usr/local/etc.” directory.

You can use any editor of your choice.

I prefer you to use a simple editor that you are handy with.

Here, I am going to use VI text editor which is very simple to use. If you want you can just follow the same as I am doing.

$ sudo vi /usr/local/etc/kismet.conf

  1. Configure LOGGING:

After you do it, you are using home/pi/kismet. Therefore, you will need to create the same directory in order to use it.

You can even create it manually. Or just use the following commands to make your work simple.

$sudo mkdir /home/pi/kismet
$sudo chmod 777 /home/pi/kismet

2. Configure the Interfaces:

Confirm the ‘ncsource’ parameter is set as follows:   (wlan0 is used by the Pi3 internal WiFi)


3. Configuring GPSD:

It is mainly to address the Global Positioning System i.e GPS. It boots when the system is booted. Now, you need to connect the GPS which can be connected via USB. To recognize it, use:

dmesg | grep ttyUSB0

After running the command you will be able to see that the USB is successfully recognized or not. Then you can proceed further.

Now you’ll need to edit one more file at location “/etc/default“. To edit use the following command:

cd /etc/default
sudo vi gpsd

In the file you just need to edit the following parameter:


4.Configure GPS to Set Time:

Your War Pi is not gonna get System time from the network.

Therefore use, the following command:

$ sudo vi GPSTimeUpdate

#extracts time from GPS
GPSLINE=`gpspipe -w | head -10 | grep TPV | head -1`
#pull date and time from valid TPV line
GPSDATE=`echo $GPSLINE | sed -r 's/.*"time":"([^"]*).*/\1/'`
#set system time to GPS time
date -s "$GPSDATE" After doing this the script is now modified into an executable file. Now the following code is to copy the code in usr/bin directory. 

sudo chmod +x GPSTimeUpdate sudo cp GPSTimeUpdate /usr/bin/

Now we need this code to be executed when our system boots.

Therefore, for it, you’ll need to make changes in  /etc/rc.local file.

For that run the below command:

sudo vi /etc/rc.local

Editor’s Choice:

5. Configuring Kismet StartUp

Kismet is to be set up so that it will run on system boot. Now do the following,

cd /etc/init.d
sudo vi kismet

# Provides:              kismet
# Required-Start:     $all
# Required-Stop:     $local_fs $remote_fs $syslog $network
# Default-Start:         3 4 5
# Default-Stop:         0 1 6
# Short-Description:     Start kismet at boot time
# Description:         Starts kismet at boot time

case "$1" in
echo "Starting kismet"
/bin/sleep 30
/usr/local/bin/kismet_server --daemonize
echo "Stopping kismet"
killall kismet_server
echo "Usage: /etc/init.d/kismet start|stop"
exit 1

exit 0

After you save the script. Just make it as executable. For that use,

$ sudo chmod +x kismet

Activating it.

$sudo update-rc.d kismet defaults


War Pi is really an amazing tool that one need to use.

I hope you have learnt how you can setup “War Pi” and use it for your own good.

If you found value in this article make sure you leave a comment down below. If you have any queries regarding this article, just leave a comment. Our team will try to get to you as soon as possible.

Leave a Comment